Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Unified Diff: skia/ext/bitmap_platform_device_mac_unittest.cc

Issue 2613583002: Remove skia::ScopedPlatformPaint (Closed)
Patch Set: Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « skia/ext/bitmap_platform_device_cairo.h ('k') | skia/ext/bitmap_platform_device_skia.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/bitmap_platform_device_mac_unittest.cc
diff --git a/skia/ext/bitmap_platform_device_mac_unittest.cc b/skia/ext/bitmap_platform_device_mac_unittest.cc
index 9d8020b0d6990aa23986119523380538bb52b9d9..05d508950e67efcb63edab28a3bb27e18c27560c 100644
--- a/skia/ext/bitmap_platform_device_mac_unittest.cc
+++ b/skia/ext/bitmap_platform_device_mac_unittest.cc
@@ -36,8 +36,7 @@ TEST_F(BitmapPlatformDeviceMacTest, ClipRectTransformWithTranslate) {
skia::CreateCanvas(bitmap_, CRASH_ON_FAILURE);
canvas->setMatrix(transform);
- ScopedPlatformPaint p(canvas.get());
- CGContextRef context = p.GetNativeDrawingContext();
+ CGContextRef context = skia::GetNativeDrawingContext(canvas.get());
SkRect clip_rect = skia::CGRectToSkRect(CGContextGetClipBoundingBox(context));
transform.mapRect(&clip_rect);
@@ -55,8 +54,7 @@ TEST_F(BitmapPlatformDeviceMacTest, ClipRectTransformWithScale) {
skia::CreateCanvas(bitmap_, CRASH_ON_FAILURE);
canvas->setMatrix(transform);
- ScopedPlatformPaint p(canvas.get());
- CGContextRef context = p.GetNativeDrawingContext();
+ CGContextRef context = skia::GetNativeDrawingContext(canvas.get());
SkRect clip_rect = skia::CGRectToSkRect(CGContextGetClipBoundingBox(context));
transform.mapRect(&clip_rect);
« no previous file with comments | « skia/ext/bitmap_platform_device_cairo.h ('k') | skia/ext/bitmap_platform_device_skia.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698