From 6610d56ab0db07cc3487d0cc6e0b8015fe676c93 Mon Sep 17 00:00:00 2001 From: "brettw@google.com" Date: Fri, 7 Nov 2008 16:37:31 +0000 Subject: Fix Linux build bustage by making the ImageBufferSkia code compilable on all Skia platforms. I do this by making the calling of PlatformCanvas.initialize() able to be the same by using an evil default parameter. Review URL: http://codereview.chromium.org/9695 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4990 0039d316-1c4b-4281-b951-d872f2087c98 --- base/gfx/platform_canvas_win.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'base/gfx') 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. -- cgit v1.1