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

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

Issue 1891473002: WTF: Implement explicit RefPtr::operator bool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 aac5c704343fc41443e40e17f9897671c8088344..d273a9ac21ca53fa1f6a597c6f3cfda0d12cb296 100644
--- a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
+++ b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
@@ -731,7 +731,7 @@ bool Canvas2DLayerBridge::checkSurfaceValid()
m_imageBuffer->notifySurfaceInvalid();
CanvasMetrics::countCanvasContextUsage(CanvasMetrics::Accelerated2DCanvasGPUContextLost);
}
- return m_surface;
+ return m_surface.get();
}
bool Canvas2DLayerBridge::restoreSurface()
@@ -766,7 +766,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