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

Unified Diff: skia/ext/bitmap_platform_device_win.cc

Issue 11138024: Simplify platform_canvas.h by recognizing that PlatformCanvas does not actually extend (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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/bitmap_platform_device_win.cc
===================================================================
--- skia/ext/bitmap_platform_device_win.cc (revision 165342)
+++ skia/ext/bitmap_platform_device_win.cc (working copy)
@@ -268,6 +268,15 @@
return bitmap_device;
}
+// PlatformCanvas impl
+
+SkCanvas* CreatePlatformCanvas(int width, int height, bool is_opaque,
+ HANDLE shared_section, OnFailureType failureType) {
sky 2012/11/05 14:43:10 nit: indentation. Also, when you wrap each param s
reed1 2012/11/05 19:14:13 Done.
+ SkDevice* dev = BitmapPlatformDevice::Create(width, height, is_opaque,
+ shared_section);
+ return CreateCanvas(dev, failureType);
+}
+
// Port of PlatformBitmap to win
PlatformBitmap::~PlatformBitmap() {

Powered by Google App Engine
This is Rietveld 408576698