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

Unified Diff: skia/ext/platform_canvas_unittest.cc

Issue 2400873002: keep only one typedef for the native drawing context (Closed)
Patch Set: native_drawing_context.h Created 4 years, 2 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/platform_canvas.cc ('k') | skia/ext/platform_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/platform_canvas_unittest.cc
diff --git a/skia/ext/platform_canvas_unittest.cc b/skia/ext/platform_canvas_unittest.cc
index 699466ea3805e70117228321eaa8e98c8f18649e..86556b33cff9fb20336ae80f4b4b25f6b2c41589 100644
--- a/skia/ext/platform_canvas_unittest.cc
+++ b/skia/ext/platform_canvas_unittest.cc
@@ -137,7 +137,7 @@ bool VerifyCanvasColor(const SkCanvas& canvas, uint32_t canvas_color) {
#if defined(OS_WIN)
void DrawNativeRect(SkCanvas& canvas, int x, int y, int w, int h) {
skia::ScopedPlatformPaint scoped_platform_paint(&canvas);
- HDC dc = scoped_platform_paint.GetPlatformSurface();
+ HDC dc = scoped_platform_paint.GetNativeDrawingContext();
RECT inner_rc;
inner_rc.left = x;
@@ -149,7 +149,7 @@ void DrawNativeRect(SkCanvas& canvas, int x, int y, int w, int h) {
#elif defined(OS_MACOSX)
void DrawNativeRect(SkCanvas& canvas, int x, int y, int w, int h) {
skia::ScopedPlatformPaint scoped_platform_paint(&canvas);
- CGContextRef context = scoped_platform_paint.GetPlatformSurface();
+ CGContextRef context = scoped_platform_paint.GetNativeDrawingContext();
CGRect inner_rc = CGRectMake(x, y, w, h);
// RGBA opaque black
@@ -161,7 +161,7 @@ void DrawNativeRect(SkCanvas& canvas, int x, int y, int w, int h) {
#elif defined(USE_CAIRO)
void DrawNativeRect(SkCanvas& canvas, int x, int y, int w, int h) {
skia::ScopedPlatformPaint scoped_platform_paint(&canvas);
- cairo_t* context = scoped_platform_paint.GetPlatformSurface();
+ cairo_t* context = scoped_platform_paint.GetNativeDrawingContext();
cairo_rectangle(context, x, y, w, h);
cairo_set_source_rgb(context, 0.0, 0.0, 0.0);
« no previous file with comments | « skia/ext/platform_canvas.cc ('k') | skia/ext/platform_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698