Home
last modified time | relevance | path

Searched refs:skiaCanvas (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/libs/hwui/tests/unit/
DCanvasFrontendTests.cpp52 SkNoDrawCanvas skiaCanvas(100, 100); in TEST() local
56 EXPECT_EQ(1, skiaCanvas.getSaveCount()); in TEST()
59 skiaCanvas.save(); in TEST()
61 EXPECT_EQ(2, skiaCanvas.getSaveCount()); in TEST()
64 skiaCanvas.restore(); in TEST()
66 EXPECT_EQ(1, skiaCanvas.getSaveCount()); in TEST()
69 skiaCanvas.restore(); in TEST()
71 EXPECT_EQ(1, skiaCanvas.getSaveCount()); in TEST()
79 SkNoDrawCanvas skiaCanvas(100, 100); in TEST() local
82 skiaCanvas.translate(10, 10); in TEST()
[all …]
DCanvasOpTests.cpp625 SkNoDrawCanvas skiaCanvas(100, 100); in TEST() local
629 EXPECT_EQ(1, skiaCanvas.getSaveCount()); in TEST()
632 skiaCanvas.save(); in TEST()
634 EXPECT_EQ(2, skiaCanvas.getSaveCount()); in TEST()
637 skiaCanvas.restore(); in TEST()
639 EXPECT_EQ(1, skiaCanvas.getSaveCount()); in TEST()
642 skiaCanvas.restore(); in TEST()
644 EXPECT_EQ(1, skiaCanvas.getSaveCount()); in TEST()
/frameworks/base/libs/hwui/
DSkiaCanvas.cpp118 Canvas* Canvas::create_canvas(SkCanvas* skiaCanvas) { in create_canvas() argument
119 return new SkiaCanvas(skiaCanvas); in create_canvas()
133 void SkiaCanvas::reset(SkCanvas* skiaCanvas) { in reset() argument
134 if (mCanvas != skiaCanvas) { in reset()
135 mCanvas = skiaCanvas; in reset()
DSkiaCanvas.h171 void reset(SkCanvas* skiaCanvas);
/frameworks/base/libs/hwui/hwui/
DCanvas.h109 static Canvas* create_canvas(SkCanvas* skiaCanvas);