summaryrefslogtreecommitdiffstats
path: root/base/gfx
diff options
context:
space:
mode:
Diffstat (limited to 'base/gfx')
-rw-r--r--base/gfx/platform_canvas_win.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/base/gfx/platform_canvas_win.h b/base/gfx/platform_canvas_win.h
index b5f1e73..95ae856 100644
--- a/base/gfx/platform_canvas_win.h
+++ b/base/gfx/platform_canvas_win.h
@@ -28,8 +28,11 @@ class PlatformCanvasWin : public SkCanvas {
HANDLE shared_section);
virtual ~PlatformCanvasWin();
- // For two-part init, call if you use the no-argument constructor above
- bool initialize(int width, int height, bool is_opaque, HANDLE shared_section);
+ // For two-part init, call if you use the no-argument constructor above. Note
+ // that we want this to optionally match the Linux initialize if you only
+ // pass 3 arguments, hence the evil default argument.
+ bool initialize(int width, int height, bool is_opaque,
+ HANDLE shared_section = NULL);
// These calls should surround calls to platform drawing routines, the DC
// returned by beginPlatformPaint is the DC that can be used to draw into.