Home
last modified time | relevance | path

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

12

/external/skia/docs/examples/
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()
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()
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.cpp304 int saveCount = c->getSaveCount(); in __anonf60bc11e0d02()
309 REPORTER_ASSERT(r, c->getSaveCount() == saveCount); in __anonf60bc11e0d02()
314 int saveCount = c->getSaveCount(); in __anonf60bc11e0e02()
317 REPORTER_ASSERT(r, c->getSaveCount() == saveCount); in __anonf60bc11e0e02()
320 int saveCount = c->getSaveCount(); in __anonf60bc11e0f02()
323 REPORTER_ASSERT(r, c->getSaveCount() == saveCount); in __anonf60bc11e0f02()
326 int saveCount = c->getSaveCount(); in __anonf60bc11e1002()
330 REPORTER_ASSERT(r, c->getSaveCount() == saveCount); in __anonf60bc11e1002()
364 int baseSaveCount = c->getSaveCount(); in __anonf60bc11e1402()
367 REPORTER_ASSERT(r, baseSaveCount + 1 == c->getSaveCount()); in __anonf60bc11e1402()
[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.cpp55 REPORTER_ASSERT(reporter, 0 == s.getSaveCount()); in test_assign_and_comparison()
59 REPORTER_ASSERT(reporter, 1 == s.getSaveCount()); in test_assign_and_comparison()
69 REPORTER_ASSERT(reporter, 2 == s.getSaveCount()); in test_assign_and_comparison()
77 REPORTER_ASSERT(reporter, 3 == s.getSaveCount()); in test_assign_and_comparison()
88 REPORTER_ASSERT(reporter, 2 == s.getSaveCount()); in test_assign_and_comparison()
93 REPORTER_ASSERT(reporter, 3 == s.getSaveCount()); in test_assign_and_comparison()
100 REPORTER_ASSERT(reporter, 2 == s.getSaveCount()); in test_assign_and_comparison()
102 REPORTER_ASSERT(reporter, 3 == s.getSaveCount()); in test_assign_and_comparison()
117 REPORTER_ASSERT(reporter, 2 == s.getSaveCount()); in test_assign_and_comparison()
119 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()
/external/skia/src/core/
DSkClipStack.h102 int getSaveCount() const { return fSaveCount; } in getSaveCount() function
307 int getSaveCount() const { return fSaveCount; } in getSaveCount() function
314 : fCS(cs), fSaveCount(cs->getSaveCount()) in AutoRestore()
321 SkASSERT(fCS->getSaveCount() >= fSaveCount); // no underflow in ~AutoRestore()
322 while (fCS->getSaveCount() > fSaveCount) { in ~AutoRestore()
DSkCanvasPriv.cpp20 , fSaveCount(canvas->getSaveCount()) in SkAutoCanvasMatrixPaint()
DSkCanvas.cpp352 SkDEBUGCODE(fSaveCount = canvas->getSaveCount();) in AutoLayerForImageFilter()
389 SkASSERT(fCanvas->getSaveCount() == fSaveCount); in ~AutoLayerForImageFilter()
610 int SkCanvas::getSaveCount() const { in getSaveCount() function in SkCanvas
629 return this->getSaveCount() - 1; // return our prev value in save()
663 int n = this->getSaveCount() - count; in restoreToCount()
760 return this->getSaveCount() - 1; in saveLayer()
776 return this->getSaveCount() - 1; in only_axis_aligned_saveBehind()
/external/skia/gm/
Dsavelayer.cpp114 SkDEBUGCODE(int sc0 =) canvas->getSaveCount(); in draw_cell()
116 SkDEBUGCODE(int sc2 =) canvas->getSaveCount(); in draw_cell()
139 SkDEBUGCODE(int sc3 =) canvas->getSaveCount(); in draw_cell()
/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/skqp/modules/sksg/src/
DSkSGRenderNode.cpp39 , fRestoreCount(canvas->getSaveCount()) {} in ScopedRenderContext()
/external/skia/experimental/skrive/src/
DComponent.cpp65 , fRestoreCount(canvas->getSaveCount()) { in ScopedTransformContext()
/external/skia/modules/svg/src/
DSkSVGRenderContext.cpp159 , fCanvasSaveCount(canvas->getSaveCount()) in SkSVGRenderContext()
317 if (fCanvas->getSaveCount() == fCanvasSaveCount) { in saveOnce()
321 SkASSERT(fCanvas->getSaveCount() > fCanvasSaveCount); in saveOnce()
/external/skia/modules/canvaskit/tests/
Dcanvas.spec.js101 expect(canvas.getSaveCount()).toEqual(1);
107 expect(canvas.getSaveCount()).toEqual(4);
110 expect(canvas.getSaveCount()).toEqual(4);
112 expect(canvas.getSaveCount()).toEqual(3);
115 expect(canvas.getSaveCount()).toEqual(2);
/external/skia/modules/sksg/src/
DSkSGRenderNode.cpp117 , fRestoreCount(canvas->getSaveCount()) {} in ScopedRenderContext()

12