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

Unified Diff: skia/ext/platform_surface.h

Issue 2400873002: keep only one typedef for the native drawing context (Closed)
Patch Set: 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_device_win.cc ('k') | skia/ext/skia_utils_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/platform_surface.h
diff --git a/skia/ext/platform_surface.h b/skia/ext/platform_surface.h
index 793bf649b64ba85f72968a51ef82e2205d01ea5d..fa69c05fe1544961594865821a26f8c8ab5a8819 100644
--- a/skia/ext/platform_surface.h
+++ b/skia/ext/platform_surface.h
@@ -23,16 +23,16 @@ typedef struct CGRect CGRect;
namespace skia {
#if defined(OS_WIN)
-typedef HDC PlatformSurface;
+typedef HDC NativeDrawingContext;
typedef RECT PlatformRect;
#elif defined(USE_CAIRO)
-typedef cairo_t* PlatformSurface;
+typedef cairo_t* NativeDrawingContext;
tomhudson 2016/10/07 06:10:14 Misspelled - this shouldn't build on Linux?
tomhudson 2016/10/07 06:12:34 Never mind, my laptop screen was dirty. No wonder
typedef cairo_rectangle_t PlatformRect;
#elif defined(OS_MACOSX)
-typedef CGContextRef PlatformSurface;
+typedef CGContextRef NativeDrawingContext;
typedef CGRect PlatformRect;
#else
-typedef void* PlatformSurface;
+typedef void* NativeDrawingContext;
typedef SkIRect* PlatformRect;
#endif
« no previous file with comments | « skia/ext/platform_device_win.cc ('k') | skia/ext/skia_utils_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698