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

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

Issue 2063773002: Reland: WTF: Implement explicit RefPtr::operator bool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/Canvas2DLayerBridge.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
index 8a4c4e7d4d85691c7079a5003403eedf80462b1c..ac68bf4c138c0548f789d6917d3d50a6ba703323 100644
--- a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
+++ b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
@@ -736,7 +736,7 @@ bool Canvas2DLayerBridge::checkSurfaceValid()
m_imageBuffer->notifySurfaceInvalid();
CanvasMetrics::countCanvasContextUsage(CanvasMetrics::Accelerated2DCanvasGPUContextLost);
}
- return m_surface;
+ return m_surface.get();
}
bool Canvas2DLayerBridge::restoreSurface()
@@ -771,7 +771,7 @@ bool Canvas2DLayerBridge::restoreSurface()
if (m_imageBuffer)
m_imageBuffer->updateGPUMemoryUsage();
- return m_surface;
+ return m_surface.get();
}
bool Canvas2DLayerBridge::prepareMailbox(WebExternalTextureMailbox* outMailbox, WebExternalBitmap* bitmap)

Powered by Google App Engine
This is Rietveld 408576698