summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--base/gfx/platform_canvas_win.h7
-rw-r--r--webkit/port/platform/graphics/ImageBufferSkia.cpp2
2 files changed, 6 insertions, 3 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.
diff --git a/webkit/port/platform/graphics/ImageBufferSkia.cpp b/webkit/port/platform/graphics/ImageBufferSkia.cpp
index 80056f4..9b14c05 100644
--- a/webkit/port/platform/graphics/ImageBufferSkia.cpp
+++ b/webkit/port/platform/graphics/ImageBufferSkia.cpp
@@ -56,7 +56,7 @@ ImageBuffer::ImageBuffer(const IntSize& size, bool grayScale, bool& success)
: m_data(size)
, m_size(size)
{
- if (!m_data.m_canvas.initialize(size.width(), size.height(), false, NULL)) {
+ if (!m_data.m_canvas.initialize(size.width(), size.height(), false)) {
success = false;
return;
}