Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1136)

Unified Diff: Source/core/platform/graphics/chromium/Canvas2DLayerBridge.cpp

Issue 22634006: Switching to SkDeferredCanvas factory API in preparation for constructor deprecation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/platform/graphics/chromium/Canvas2DLayerBridgeTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « no previous file | Source/core/platform/graphics/chromium/Canvas2DLayerBridgeTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698