diff options
author | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-29 18:32:44 +0000 |
---|---|---|
committer | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-29 18:32:44 +0000 |
commit | 50f4ee805127dd5b4e1b1065eda77389b7293a84 (patch) | |
tree | fb508f191e9acc1373ee1669093419d10b6e50f9 /skia/ext/platform_canvas_mac.cc | |
parent | ff31667e93c2f61ff9f7d7b1ea9ddb0c6686505b (diff) | |
download | chromium_src-50f4ee805127dd5b4e1b1065eda77389b7293a84.zip chromium_src-50f4ee805127dd5b4e1b1065eda77389b7293a84.tar.gz chromium_src-50f4ee805127dd5b4e1b1065eda77389b7293a84.tar.bz2 |
Update Chrome's Skia Device to use the new device factory interface (http://code.google.com/p/skia/source/detail?r=1180).
Remove valgrind suppression.
BUG=80836
TEST=NONE
Review URL: http://codereview.chromium.org/6883255
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83555 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/platform_canvas_mac.cc')
-rw-r--r-- | skia/ext/platform_canvas_mac.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/skia/ext/platform_canvas_mac.cc b/skia/ext/platform_canvas_mac.cc index 64603a8..bf6843f 100644 --- a/skia/ext/platform_canvas_mac.cc +++ b/skia/ext/platform_canvas_mac.cc @@ -9,24 +9,24 @@ namespace skia { -PlatformCanvas::PlatformCanvas(int width, int height, bool is_opaque) - : SkCanvas(SkNEW(BitmapPlatformDeviceFactory)) { +PlatformCanvas::PlatformCanvas(int width, int height, bool is_opaque) { + setDeviceFactory(SkNEW(BitmapPlatformDeviceFactory))->unref(); initialize(width, height, is_opaque); } PlatformCanvas::PlatformCanvas(int width, int height, bool is_opaque, - CGContextRef context) - : SkCanvas(SkNEW(BitmapPlatformDeviceFactory)) { + CGContextRef context) { + setDeviceFactory(SkNEW(BitmapPlatformDeviceFactory))->unref(); initialize(context, width, height, is_opaque); } PlatformCanvas::PlatformCanvas(int width, int height, bool is_opaque, - uint8_t* data) - : SkCanvas(SkNEW(BitmapPlatformDeviceFactory)) { + uint8_t* data) { + setDeviceFactory(SkNEW(BitmapPlatformDeviceFactory))->unref(); initialize(width, height, is_opaque, data); } |