Chromium Code Reviews| Index: Source/core/platform/graphics/chromium/Canvas2DLayerBridge.cpp |
| diff --git a/Source/core/platform/graphics/chromium/Canvas2DLayerBridge.cpp b/Source/core/platform/graphics/chromium/Canvas2DLayerBridge.cpp |
| index 3e9a705859bed05d9177823dc8e2cc40cb2aba9d..b1822ad6475fa139fe828ea848b1b6d322d9ed8a 100644 |
| --- a/Source/core/platform/graphics/chromium/Canvas2DLayerBridge.cpp |
| +++ b/Source/core/platform/graphics/chromium/Canvas2DLayerBridge.cpp |
| @@ -65,7 +65,7 @@ PassOwnPtr<Canvas2DLayerBridge> Canvas2DLayerBridge::create(PassRefPtr<GraphicsC |
| SkAutoTUnref<SkSurface> surface(createSurface(context.get(), size)); |
| if (!surface.get()) |
| return PassOwnPtr<Canvas2DLayerBridge>(); |
| - SkDeferredCanvas* canvas = new SkDeferredCanvas(surface); |
| + SkDeferredCanvas* canvas = SkDeferredCanvas::Create(surface.get()); |
| OwnPtr<Canvas2DLayerBridge> layerBridge = adoptPtr(new Canvas2DLayerBridge(context, canvas, opacityMode)); |
|
Stephen White
2013/08/08 18:04:59
Not new to this patch, but the ownership semantics
|
| return layerBridge.release(); |
| } |