• Home
  • Raw
  • Download

Lines Matching refs:canvas

28     SkDeferredCanvas canvas(&device);  in TestDeferredCanvasBitmapAccess()  local
30 canvas.clear(0x00000000); in TestDeferredCanvasBitmapAccess()
34 SkBitmap accessed = canvas.getDevice()->accessBitmap(false); in TestDeferredCanvasBitmapAccess()
44 SkDeferredCanvas canvas(&device); in TestDeferredCanvasFlush() local
46 canvas.clear(0x00000000); in TestDeferredCanvasFlush()
50 canvas.flush(); in TestDeferredCanvasFlush()
64 SkDeferredCanvas canvas(&device); in TestDeferredCanvasFreshFrame() local
67 REPORTER_ASSERT(reporter, canvas.getDeferredDevice()->isFreshFrame()); in TestDeferredCanvasFreshFrame()
69 REPORTER_ASSERT(reporter, !canvas.getDeferredDevice()->isFreshFrame()); in TestDeferredCanvasFreshFrame()
72 canvas.clear(0x00000000); in TestDeferredCanvasFreshFrame()
73 REPORTER_ASSERT(reporter, canvas.getDeferredDevice()->isFreshFrame()); in TestDeferredCanvasFreshFrame()
76 canvas.save(SkCanvas::kMatrixClip_SaveFlag); in TestDeferredCanvasFreshFrame()
77 canvas.clear(0x00000000); in TestDeferredCanvasFreshFrame()
78 canvas.restore(); in TestDeferredCanvasFreshFrame()
79 REPORTER_ASSERT(reporter, canvas.getDeferredDevice()->isFreshFrame()); in TestDeferredCanvasFreshFrame()
82 canvas.saveLayer(NULL, NULL, SkCanvas::kARGB_ClipLayer_SaveFlag); in TestDeferredCanvasFreshFrame()
83 canvas.clear(0x00000000); in TestDeferredCanvasFreshFrame()
84 canvas.restore(); in TestDeferredCanvasFreshFrame()
85 REPORTER_ASSERT(reporter, !canvas.getDeferredDevice()->isFreshFrame()); in TestDeferredCanvasFreshFrame()
89 canvas.save(SkCanvas::kMatrixClip_SaveFlag); in TestDeferredCanvasFreshFrame()
90 canvas.clipRect(partialRect, SkRegion::kIntersect_Op, false); in TestDeferredCanvasFreshFrame()
91 canvas.clear(0x00000000); in TestDeferredCanvasFreshFrame()
92 canvas.restore(); in TestDeferredCanvasFreshFrame()
93 REPORTER_ASSERT(reporter, canvas.getDeferredDevice()->isFreshFrame()); in TestDeferredCanvasFreshFrame()
101 canvas.drawRect(fullRect, paint); in TestDeferredCanvasFreshFrame()
102 REPORTER_ASSERT(reporter, canvas.getDeferredDevice()->isFreshFrame()); in TestDeferredCanvasFreshFrame()
113 canvas.drawRect(fullRect, paint); in TestDeferredCanvasFreshFrame()
114 REPORTER_ASSERT(reporter, canvas.getDeferredDevice()->isFreshFrame()); in TestDeferredCanvasFreshFrame()
123 canvas.drawRect(fullRect, paint); in TestDeferredCanvasFreshFrame()
124 REPORTER_ASSERT(reporter, !canvas.getDeferredDevice()->isFreshFrame()); in TestDeferredCanvasFreshFrame()
135 canvas.drawRect(fullRect, paint); in TestDeferredCanvasFreshFrame()
136 REPORTER_ASSERT(reporter, !canvas.getDeferredDevice()->isFreshFrame()); in TestDeferredCanvasFreshFrame()
144 canvas.drawRect(partialRect, paint); in TestDeferredCanvasFreshFrame()
145 REPORTER_ASSERT(reporter, !canvas.getDeferredDevice()->isFreshFrame()); in TestDeferredCanvasFreshFrame()
151 canvas.save(SkCanvas::kMatrixClip_SaveFlag); in TestDeferredCanvasFreshFrame()
152 canvas.clipRect(partialRect, SkRegion::kIntersect_Op, false); in TestDeferredCanvasFreshFrame()
156 canvas.drawRect(fullRect, paint); in TestDeferredCanvasFreshFrame()
157 REPORTER_ASSERT(reporter, !canvas.getDeferredDevice()->isFreshFrame()); in TestDeferredCanvasFreshFrame()
165 canvas.drawRect(fullRect, paint); in TestDeferredCanvasFreshFrame()
166 REPORTER_ASSERT(reporter, !canvas.getDeferredDevice()->isFreshFrame()); in TestDeferredCanvasFreshFrame()
175 canvas.drawRect(fullRect, paint); in TestDeferredCanvasFreshFrame()
176 REPORTER_ASSERT(reporter, !canvas.getDeferredDevice()->isFreshFrame()); in TestDeferredCanvasFreshFrame()