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

Unified Diff: third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.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/CanvasSurfaceLayerBridge.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp b/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp
index 9f075884a4b3b9ae2255f8c8d4fdf01e17af9615..4355caed2a27dd712a886705e5bd9e97539d3cf5 100644
--- a/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp
+++ b/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp
@@ -14,7 +14,6 @@
#include "public/platform/WebLayer.h"
#include "ui/gfx/geometry/size.h"
#include "wtf/Functional.h"
-#include "wtf/PtrUtil.h"
namespace blink {
@@ -40,9 +39,8 @@ bool CanvasSurfaceLayerBridge::createSurfaceLayer(int canvasWidth,
m_surfaceLayer->SetSurfaceId(m_surfaceId, 1.f,
gfx::Size(canvasWidth, canvasHeight));
- m_webLayer = wrapUnique(
- Platform::current()->compositorSupport()->createLayerFromCCLayer(
- m_surfaceLayer.get()));
+ m_webLayer = Platform::current()->compositorSupport()->createLayerFromCCLayer(
+ m_surfaceLayer.get());
GraphicsLayer::registerContentsLayer(m_webLayer.get());
return true;
}

Powered by Google App Engine
This is Rietveld 408576698