Home
last modified time | relevance | path

Searched refs:getSaveCount (Results 1 – 25 of 36) sorted by relevance

12

/external/skia/docs/examples/
DCanvas_restoreToCount.cpp7 SkDebugf("depth = %d\n", canvas->getSaveCount()); in draw()
10 SkDebugf("depth = %d\n", canvas->getSaveCount()); in draw()
12 SkDebugf("depth = %d\n", canvas->getSaveCount()); in draw()
DCanvas_getSaveCount.cpp8 SkDebugf("depth = %d\n", simple.getSaveCount()); in draw()
10 SkDebugf("depth = %d\n", simple.getSaveCount()); in draw()
12 SkDebugf("depth = %d\n", simple.getSaveCount()); in draw()
DAutoCanvasRestore_restore.cpp14 saveCanvas ? "true" : "false", canvas->getSaveCount()); in draw()
17 saveCanvas ? "true" : "false", canvas->getSaveCount()); in draw()
20 SkDebugf("final count: %d\n", canvas->getSaveCount()); in draw()
DCanvas_restore.cpp8 SkDebugf("depth = %d\n", simple.getSaveCount()); in draw()
10 SkDebugf("depth = %d\n", simple.getSaveCount()); in draw()
/external/skia/tests/
DCanvasTest.cpp266 int saveCount = c->getSaveCount(); in __anonb5963dc20d02()
271 REPORTER_ASSERT(r, c->getSaveCount() == saveCount); in __anonb5963dc20d02()
276 int saveCount = c->getSaveCount(); in __anonb5963dc20e02()
279 REPORTER_ASSERT(r, c->getSaveCount() == saveCount); in __anonb5963dc20e02()
282 int saveCount = c->getSaveCount(); in __anonb5963dc20f02()
285 REPORTER_ASSERT(r, c->getSaveCount() == saveCount); in __anonb5963dc20f02()
288 int saveCount = c->getSaveCount(); in __anonb5963dc21002()
292 REPORTER_ASSERT(r, c->getSaveCount() == saveCount); in __anonb5963dc21002()
326 int baseSaveCount = c->getSaveCount(); in __anonb5963dc21402()
329 REPORTER_ASSERT(r, baseSaveCount + 1 == c->getSaveCount()); in __anonb5963dc21402()
[all …]
DPictureTest.cpp134 unsigned int getSaveCount() const { return fSaveCount; } in getSaveCount() function in SaveCountingCanvas
158 REPORTER_ASSERT(reporter, numSaves >= canvas.getSaveCount()); in check_save_state()
197 int beforeSaveCount = canvas.getSaveCount(); in check_balance()
205 REPORTER_ASSERT(reporter, beforeSaveCount == canvas.getSaveCount()); in check_balance()
245 int expectedSaveCount = canvas->getSaveCount(); in DEF_TEST()
250 REPORTER_ASSERT(reporter, expectedSaveCount = canvas->getSaveCount()); in DEF_TEST()
262 REPORTER_ASSERT(reporter, 4 == testCanvas.getSaveCount()); in test_unbalanced_save_restores()
281 REPORTER_ASSERT(reporter, 4 == testCanvas.getSaveCount()); in test_unbalanced_save_restores()
302 REPORTER_ASSERT(reporter, 4 == testCanvas.getSaveCount()); in test_unbalanced_save_restores()
314 REPORTER_ASSERT(reporter, 4 == testCanvas.getSaveCount()); in test_unbalanced_save_restores()
[all …]
DClipStackTest.cpp54 REPORTER_ASSERT(reporter, 0 == s.getSaveCount()); in test_assign_and_comparison()
58 REPORTER_ASSERT(reporter, 1 == s.getSaveCount()); in test_assign_and_comparison()
68 REPORTER_ASSERT(reporter, 2 == s.getSaveCount()); in test_assign_and_comparison()
76 REPORTER_ASSERT(reporter, 3 == s.getSaveCount()); in test_assign_and_comparison()
87 REPORTER_ASSERT(reporter, 2 == s.getSaveCount()); in test_assign_and_comparison()
92 REPORTER_ASSERT(reporter, 3 == s.getSaveCount()); in test_assign_and_comparison()
99 REPORTER_ASSERT(reporter, 2 == s.getSaveCount()); in test_assign_and_comparison()
101 REPORTER_ASSERT(reporter, 3 == s.getSaveCount()); in test_assign_and_comparison()
116 REPORTER_ASSERT(reporter, 2 == s.getSaveCount()); in test_assign_and_comparison()
118 REPORTER_ASSERT(reporter, 3 == s.getSaveCount()); in test_assign_and_comparison()
[all …]
/external/skqp/tests/
DCanvasTest.cpp410 int saveCount = canvas->getSaveCount(); in SaveMatrixClipStep()
415 REPORTER_ASSERT(reporter, canvas->getSaveCount() == saveCount, testStep->assertMessage()); in SaveMatrixClipStep()
424 int saveCount = canvas->getSaveCount(); in SaveLayerStep()
427 REPORTER_ASSERT(reporter, canvas->getSaveCount() == saveCount, testStep->assertMessage()); in SaveLayerStep()
433 int saveCount = canvas->getSaveCount(); in BoundedSaveLayerStep()
436 REPORTER_ASSERT(reporter, canvas->getSaveCount() == saveCount, testStep->assertMessage()); in BoundedSaveLayerStep()
442 int saveCount = canvas->getSaveCount(); in PaintSaveLayerStep()
445 REPORTER_ASSERT(reporter, canvas->getSaveCount() == saveCount, testStep->assertMessage()); in PaintSaveLayerStep()
504 int baseSaveCount = canvas->getSaveCount(); in SaveRestoreTestStep()
507 REPORTER_ASSERT(reporter, baseSaveCount + 1 == canvas->getSaveCount(), in SaveRestoreTestStep()
[all …]
DSkLiteDLTest.cpp38 REPORTER_ASSERT(r, 1 == rec.getSaveCount()); in DEF_TEST()
40 REPORTER_ASSERT(r, 1 == rec.getSaveCount()); in DEF_TEST()
DPictureTest.cpp135 unsigned int getSaveCount() const { return fSaveCount; } in getSaveCount() function in SaveCountingCanvas
159 REPORTER_ASSERT(reporter, numSaves >= canvas.getSaveCount()); in check_save_state()
198 int beforeSaveCount = canvas.getSaveCount(); in check_balance()
206 REPORTER_ASSERT(reporter, beforeSaveCount == canvas.getSaveCount()); in check_balance()
246 int expectedSaveCount = canvas->getSaveCount(); in DEF_TEST()
251 REPORTER_ASSERT(reporter, expectedSaveCount = canvas->getSaveCount()); in DEF_TEST()
263 REPORTER_ASSERT(reporter, 4 == testCanvas.getSaveCount()); in test_unbalanced_save_restores()
282 REPORTER_ASSERT(reporter, 4 == testCanvas.getSaveCount()); in test_unbalanced_save_restores()
303 REPORTER_ASSERT(reporter, 4 == testCanvas.getSaveCount()); in test_unbalanced_save_restores()
315 REPORTER_ASSERT(reporter, 4 == testCanvas.getSaveCount()); in test_unbalanced_save_restores()
[all …]
DClipStackTest.cpp52 REPORTER_ASSERT(reporter, 0 == s.getSaveCount()); in test_assign_and_comparison()
56 REPORTER_ASSERT(reporter, 1 == s.getSaveCount()); in test_assign_and_comparison()
66 REPORTER_ASSERT(reporter, 2 == s.getSaveCount()); in test_assign_and_comparison()
74 REPORTER_ASSERT(reporter, 3 == s.getSaveCount()); in test_assign_and_comparison()
85 REPORTER_ASSERT(reporter, 2 == s.getSaveCount()); in test_assign_and_comparison()
90 REPORTER_ASSERT(reporter, 3 == s.getSaveCount()); in test_assign_and_comparison()
97 REPORTER_ASSERT(reporter, 2 == s.getSaveCount()); in test_assign_and_comparison()
99 REPORTER_ASSERT(reporter, 3 == s.getSaveCount()); in test_assign_and_comparison()
114 REPORTER_ASSERT(reporter, 2 == s.getSaveCount()); in test_assign_and_comparison()
116 REPORTER_ASSERT(reporter, 3 == s.getSaveCount()); in test_assign_and_comparison()
[all …]
/external/skqp/docs/
DSkAutoCanvasRestore_Reference.bmh62 saveCanvas ? "true" : "false", canvas->getSaveCount());
65 saveCanvas ? "true" : "false", canvas->getSaveCount());
68 SkDebugf("final count: %d\n", canvas->getSaveCount());
/external/skqp/src/core/
DSkClipStack.h95 int getSaveCount() const { return fSaveCount; } in getSaveCount() function
286 int getSaveCount() const { return fSaveCount; } in getSaveCount() function
293 : fCS(cs), fSaveCount(cs->getSaveCount()) in AutoRestore()
300 SkASSERT(fCS->getSaveCount() >= fSaveCount); // no underflow in ~AutoRestore()
301 while (fCS->getSaveCount() > fSaveCount) { in ~AutoRestore()
DSkCanvasPriv.cpp16 , fSaveCount(canvas->getSaveCount()) in SkAutoCanvasMatrixPaint()
DSkCanvas.cpp377 fSaveCount = canvas->getSaveCount(); in AutoDrawLooper()
433 SkASSERT(fCanvas->getSaveCount() == fSaveCount); in ~AutoDrawLooper()
770 int SkCanvas::getSaveCount() const { in getSaveCount() function in SkCanvas
789 return this->getSaveCount() - 1; // return our prev value in save()
823 int n = this->getSaveCount() - count; in restoreToCount()
923 return this->getSaveCount() - 1; in saveLayer()
939 return this->getSaveCount() - 1; in only_axis_aligned_saveBehind()
/external/skia/src/core/
DSkClipStack.h95 int getSaveCount() const { return fSaveCount; } in getSaveCount() function
286 int getSaveCount() const { return fSaveCount; } in getSaveCount() function
293 : fCS(cs), fSaveCount(cs->getSaveCount()) in AutoRestore()
300 SkASSERT(fCS->getSaveCount() >= fSaveCount); // no underflow in ~AutoRestore()
301 while (fCS->getSaveCount() > fSaveCount) { in ~AutoRestore()
DSkCanvasPriv.cpp16 , fSaveCount(canvas->getSaveCount()) in SkAutoCanvasMatrixPaint()
DSkCanvas.cpp377 fSaveCount = canvas->getSaveCount(); in AutoLayerForImageFilter()
431 SkASSERT(fCanvas->getSaveCount() == fSaveCount); in ~AutoLayerForImageFilter()
707 int SkCanvas::getSaveCount() const { in getSaveCount() function in SkCanvas
726 return this->getSaveCount() - 1; // return our prev value in save()
776 int n = this->getSaveCount() - count; in restoreToCount()
890 return this->getSaveCount() - 1; in saveLayer()
906 return this->getSaveCount() - 1; in only_axis_aligned_saveBehind()
/external/skia/modules/canvaskit/tests/
Dcanvas.spec.js108 expect(canvas.getSaveCount()).toEqual(1);
114 expect(canvas.getSaveCount()).toEqual(4);
117 expect(canvas.getSaveCount()).toEqual(4);
119 expect(canvas.getSaveCount()).toEqual(3);
122 expect(canvas.getSaveCount()).toEqual(2);
/external/skqp/gm/
Dsavelayer.cpp296 SkDEBUGCODE(int sc0 =) canvas->getSaveCount(); in draw_cell()
298 SkDEBUGCODE(int sc2 =) canvas->getSaveCount(); in draw_cell()
316 SkDEBUGCODE(int sc3 =) canvas->getSaveCount(); in draw_cell()
/external/skqp/experimental/svg/model/
DSkSVGRenderContext.cpp297 , fCanvasSaveCount(canvas->getSaveCount()) {} in SkSVGRenderContext()
396 if (fCanvas->getSaveCount() == fCanvasSaveCount) { in saveOnce()
400 SkASSERT(fCanvas->getSaveCount() > fCanvasSaveCount); in saveOnce()
/external/skia/experimental/svg/model/
DSkSVGRenderContext.cpp297 , fCanvasSaveCount(canvas->getSaveCount()) {} in SkSVGRenderContext()
396 if (fCanvas->getSaveCount() == fCanvasSaveCount) { in saveOnce()
400 SkASSERT(fCanvas->getSaveCount() > fCanvasSaveCount); in saveOnce()
/external/skqp/modules/sksg/src/
DSkSGRenderNode.cpp39 , fRestoreCount(canvas->getSaveCount()) {} in ScopedRenderContext()
/external/skia/gm/
Dsavelayer.cpp355 SkDEBUGCODE(int sc0 =) canvas->getSaveCount(); in draw_cell()
357 SkDEBUGCODE(int sc2 =) canvas->getSaveCount(); in draw_cell()
380 SkDEBUGCODE(int sc3 =) canvas->getSaveCount(); in draw_cell()
/external/skia/modules/sksg/src/
DSkSGRenderNode.cpp103 , fRestoreCount(canvas->getSaveCount()) {} in ScopedRenderContext()

12