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

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

Issue 2093603002: Wrap non-GCed raw pointer parameters of WTF::bind with WTF::unretained (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@unretained_wrapper
Patch Set: rebase Created 4 years, 6 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 60c6f76b6ecff1f614f478bf112befa82bdecfce..e94427b7473a050d38dd14fb47679e8f325caa67 100644
--- a/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp
+++ b/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp
@@ -33,8 +33,8 @@ bool CanvasSurfaceLayerBridge::createSurfaceLayer(int canvasWidth, int canvasHei
return false;
m_client->asyncRequestSurfaceCreation(m_surfaceId);
- cc::SurfaceLayer::SatisfyCallback satisfyCallback = createBaseCallback(bind(&CanvasSurfaceLayerBridge::satisfyCallback, this));
- cc::SurfaceLayer::RequireCallback requireCallback = createBaseCallback(bind(&CanvasSurfaceLayerBridge::requireCallback, this));
+ cc::SurfaceLayer::SatisfyCallback satisfyCallback = createBaseCallback(bind(&CanvasSurfaceLayerBridge::satisfyCallback, WTF::unretained(this)));
+ cc::SurfaceLayer::RequireCallback requireCallback = createBaseCallback(bind(&CanvasSurfaceLayerBridge::requireCallback, WTF::unretained(this)));
m_surfaceLayer = cc::SurfaceLayer::Create(std::move(satisfyCallback), std::move(requireCallback));
m_surfaceLayer->SetSurfaceId(m_surfaceId, 1.f, gfx::Size(canvasWidth, canvasHeight));

Powered by Google App Engine
This is Rietveld 408576698