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

Unified Diff: third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.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/compositing/PaintArtifactCompositor.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp b/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp
index a9927e99f8e35ebc9095a118ee46e1ab56bbf9cc..66a8962baec090b66a1eb61e1dcf1c401cc411db 100644
--- a/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp
+++ b/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp
@@ -163,9 +163,8 @@ PaintArtifactCompositor::PaintArtifactCompositor() {
if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled())
return;
m_rootLayer = cc::Layer::Create();
- m_webLayer = wrapUnique(
- Platform::current()->compositorSupport()->createLayerFromCCLayer(
- m_rootLayer.get()));
+ m_webLayer = Platform::current()->compositorSupport()->createLayerFromCCLayer(
+ m_rootLayer.get());
m_isTrackingRasterInvalidations = false;
}

Powered by Google App Engine
This is Rietveld 408576698