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

Unified Diff: skia/ext/platform_canvas.h

Issue 1618703006: Remove duplicate typedef (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try to remove spurious dependency Created 4 years, 11 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
Index: skia/ext/platform_canvas.h
diff --git a/skia/ext/platform_canvas.h b/skia/ext/platform_canvas.h
index 89b8c326ebba9cf4946142457450ac2670f826c2..5b8849bf69ab1fa0fb09a6fa89fa2ab0a15b30a2 100644
--- a/skia/ext/platform_canvas.h
+++ b/skia/ext/platform_canvas.h
@@ -20,9 +20,11 @@
class SkBaseDevice;
-namespace skia {
+// A PlatformCanvas is a software-rasterized SkCanvas which is *also*
+// addressable by the platform-specific drawing API (GDI, Core Graphics,
+// Cairo...).
-typedef SkCanvas PlatformCanvas;
+namespace skia {
//
// Note about error handling.
@@ -51,7 +53,7 @@ enum OnFailureType {
OnFailureType failure_type);
// Draws the top layer of the canvas into the specified HDC. Only works
- // with a PlatformCanvas with a BitmapPlatformDevice.
+ // with a SkCanvas with a BitmapPlatformDevice.
SK_API void DrawToNativeContext(SkCanvas* canvas,
HDC hdc,
int x,

Powered by Google App Engine
This is Rietveld 408576698