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

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

Issue 2720503008: Add cc::SurfaceInfo::is_valid() (Closed)
Patch Set: Check is_valid() during deserialization Created 3 years, 10 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 b6c16fc124d9ec15f7a44ac692d510a272ab9c43..58267947179cd1e34f834c772161d74313ca677a 100644
--- a/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp
+++ b/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp
@@ -92,7 +92,7 @@ void CanvasSurfaceLayerBridge::createSolidColorLayer() {
void CanvasSurfaceLayerBridge::OnSurfaceCreated(
const cc::SurfaceInfo& surfaceInfo) {
- if (!m_currentSurfaceId.is_valid() && surfaceInfo.id().is_valid()) {
+ if (!m_currentSurfaceId.is_valid() && surfaceInfo.is_valid()) {
// First time a SurfaceId is received
m_currentSurfaceId = surfaceInfo.id();
GraphicsLayer::unregisterContentsLayer(m_webLayer.get());

Powered by Google App Engine
This is Rietveld 408576698