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

Unified Diff: third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp

Issue 2389973002: Use std::unique_ptr to signal ownership transfer in WebCompositorSupport (Closed)
Patch Set: rebase Created 4 years, 2 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
Index: third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
index 724208bd954bec602346ec3b68b45e85eb157156..6b34991a8eb68a27cb479d77672bbca1d72c10ea 100644
--- a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
+++ b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
@@ -562,9 +562,9 @@ SkSurface* Canvas2DLayerBridge::getOrCreateSurface(AccelerationHint hint) {
}
if (m_surface && surfaceIsAccelerated && !m_layer) {
- m_layer = wrapUnique(
+ m_layer =
Platform::current()->compositorSupport()->createExternalTextureLayer(
- this));
+ this);
jbroman 2016/10/12 22:18:40 nit: this wrapping is kinda gross. I guess clang-f
dcheng 2016/10/12 22:27:03 I don't know the specifics, but I'm guessing clang
m_layer->setOpaque(m_opacityMode == Opaque);
m_layer->setBlendBackgroundColor(m_opacityMode != Opaque);
GraphicsLayer::registerContentsLayer(m_layer->layer());

Powered by Google App Engine
This is Rietveld 408576698