diff options
Diffstat (limited to 'skia/ext/platform_canvas_unittest.cc')
-rw-r--r-- | skia/ext/platform_canvas_unittest.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/skia/ext/platform_canvas_unittest.cc b/skia/ext/platform_canvas_unittest.cc index f98a0e9..7595bca 100644 --- a/skia/ext/platform_canvas_unittest.cc +++ b/skia/ext/platform_canvas_unittest.cc @@ -196,7 +196,7 @@ const SkScalar kRadius = 2.0; // regular skia primitives. TEST(PlatformCanvas, SkLayer) { // Create the canvas initialized to opaque white. - ScopedPlatformCanvas canvas(16, 16, true); + RefPtr<SkCanvas> canvas = AdoptRef(CreatePlatformCanvas(16, 16, true)); canvas->drawColor(SK_ColorWHITE); // Make a layer and fill it completely to make sure that the bounds are @@ -213,7 +213,7 @@ TEST(PlatformCanvas, SkLayer) { // Test native clipping. TEST(PlatformCanvas, ClipRegion) { // Initialize a white canvas - ScopedPlatformCanvas canvas(16, 16, true); + RefPtr<SkCanvas> canvas = AdoptRef(CreatePlatformCanvas(16, 16, true)); canvas->drawColor(SK_ColorWHITE); EXPECT_TRUE(VerifyCanvasColor(*canvas, SK_ColorWHITE)); @@ -240,7 +240,7 @@ TEST(PlatformCanvas, ClipRegion) { // Test the layers get filled properly by native rendering. TEST(PlatformCanvas, FillLayer) { // Create the canvas initialized to opaque white. - ScopedPlatformCanvas canvas(16, 16, true); + RefPtr<SkCanvas> canvas = AdoptRef(CreatePlatformCanvas(16, 16, true)); // Make a layer and fill it completely to make sure that the bounds are // correct. @@ -299,7 +299,7 @@ TEST(PlatformCanvas, FillLayer) { // Test that translation + make layer works properly. TEST(PlatformCanvas, TranslateLayer) { // Create the canvas initialized to opaque white. - ScopedPlatformCanvas canvas(16, 16, true); + RefPtr<SkCanvas> canvas = AdoptRef(CreatePlatformCanvas(16, 16, true)); // Make a layer and fill it completely to make sure that the bounds are // correct. |