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

Unified Diff: skia/ext/platform_canvas.h

Issue 6064007: Allow the creation of a skia::PlatformCanvas from a CGContextRef. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 10 years 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 | « no previous file | skia/ext/platform_canvas_mac.cc » ('j') | webkit/glue/webmediaplayer_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/platform_canvas.h
diff --git a/skia/ext/platform_canvas.h b/skia/ext/platform_canvas.h
index b602ed46ca3e3aa3417ec7761c0eb9a617c1701d..1be7acf011a68da8656d03de0650f71fa1dc633f 100644
--- a/skia/ext/platform_canvas.h
+++ b/skia/ext/platform_canvas.h
@@ -48,6 +48,7 @@ class PlatformCanvas : public SkCanvas {
// For two-part init, call if you use the no-argument constructor above
bool initialize(int width, int height, bool is_opaque, uint8_t* data = NULL);
+ bool initialize(CGContextRef context, int width, int height, bool is_opaque);
brettw 2010/12/29 21:03:52 Can you move this before the other one to match th
sjl 2010/12/31 05:55:49 Done.
#elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || \
defined(__Solaris__)
@@ -106,6 +107,9 @@ class PlatformCanvas : public SkCanvas {
// CoreGraphics.
virtual SkDevice* setBitmapDevice(const SkBitmap& bitmap);
+ // Internal helper.
+ bool initialize(SkDevice* device);
brettw 2010/12/29 21:03:52 We should avoid overloading the initialize functio
sjl 2010/12/31 05:55:49 Done.
+
// Disallow copy and assign.
PlatformCanvas(const PlatformCanvas&);
PlatformCanvas& operator=(const PlatformCanvas&);
« no previous file with comments | « no previous file | skia/ext/platform_canvas_mac.cc » ('j') | webkit/glue/webmediaplayer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698