diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-19 21:59:38 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-19 21:59:38 +0000 |
commit | cb9812cc4f38134df73d1252a6a96ced87d2d9a1 (patch) | |
tree | 8f341c348e8b1966c833a53348e0352c27b3a699 /webkit/port | |
parent | 7a0bb4bf6f68c401e176c592d8d52ac20474deb8 (diff) | |
download | chromium_src-cb9812cc4f38134df73d1252a6a96ced87d2d9a1.zip chromium_src-cb9812cc4f38134df73d1252a6a96ced87d2d9a1.tar.gz chromium_src-cb9812cc4f38134df73d1252a6a96ced87d2d9a1.tar.bz2 |
Reapply http://codereview.chromium.org/11225
This was lost by Brett's move this morning.
Review URL: http://codereview.chromium.org/11605
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5713 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port')
-rw-r--r-- | webkit/port/platform/graphics/skia/public/PlatformCanvasLinux.cpp | 7 | ||||
-rw-r--r-- | webkit/port/platform/graphics/skia/public/PlatformCanvasLinux.h | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/webkit/port/platform/graphics/skia/public/PlatformCanvasLinux.cpp b/webkit/port/platform/graphics/skia/public/PlatformCanvasLinux.cpp index 5ebeb27..b579536 100644 --- a/webkit/port/platform/graphics/skia/public/PlatformCanvasLinux.cpp +++ b/webkit/port/platform/graphics/skia/public/PlatformCanvasLinux.cpp @@ -38,8 +38,11 @@ PlatformDeviceLinux& PlatformCanvasLinux::getTopPlatformDevice() const { return *static_cast<PlatformDeviceLinux*>(iter.device()); } -SkDevice* PlatformCanvasLinux::createDevice(SkBitmap::Config, int width, - int height, bool is_opaque) { +SkDevice* PlatformCanvasLinux::createDevice(SkBitmap::Config config, + int width, + int height, + bool is_opaque, bool isForLayer) { + DCHECK(config == SkBitmap::kARGB_8888_Config); return createPlatformDevice(width, height, is_opaque); } diff --git a/webkit/port/platform/graphics/skia/public/PlatformCanvasLinux.h b/webkit/port/platform/graphics/skia/public/PlatformCanvasLinux.h index 6c92ad5..6eefee8 100644 --- a/webkit/port/platform/graphics/skia/public/PlatformCanvasLinux.h +++ b/webkit/port/platform/graphics/skia/public/PlatformCanvasLinux.h @@ -36,7 +36,7 @@ class PlatformCanvasLinux : public SkCanvas { // the device is always our own so we know that we can use GDI operations // on it. Simply calls into createPlatformDevice(). virtual SkDevice* createDevice(SkBitmap::Config, int width, int height, - bool is_opaque); + bool is_opaque, bool isForLayer); // Creates a device store for use by the canvas. By default, it creates a // BitmapPlatformDevice object. Can be overridden to change the object type. |