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

Unified Diff: Source/platform/graphics/Canvas2DImageBufferSurface.h

Issue 186023003: Speculative fix for crash in Canvas2DLayerBridge::freeReleasedMailbox (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: built a shed for my bike Created 6 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
« no previous file with comments | « no previous file | Source/platform/graphics/Canvas2DLayerBridge.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/Canvas2DImageBufferSurface.h
diff --git a/Source/platform/graphics/Canvas2DImageBufferSurface.h b/Source/platform/graphics/Canvas2DImageBufferSurface.h
index 215230ef4d623de4ae7b0c70c661887d450dc8d5..5773765be50306f53e7fdac4273fd3e5925defdb 100644
--- a/Source/platform/graphics/Canvas2DImageBufferSurface.h
+++ b/Source/platform/graphics/Canvas2DImageBufferSurface.h
@@ -55,7 +55,7 @@ public:
// ImageBufferSurface implementation
virtual void willUse() OVERRIDE { m_layerBridge->willUse(); }
virtual SkCanvas* canvas() const OVERRIDE { return m_layerBridge->canvas(); }
- virtual bool isValid() const OVERRIDE { return m_layerBridge && m_layerBridge->isValid(); }
+ virtual bool isValid() const OVERRIDE { return m_layerBridge && (m_layerBridge->surfaceIsValid() || m_layerBridge->recoverSurface()); }
virtual blink::WebLayer* layer() const OVERRIDE { return m_layerBridge->layer(); }
virtual Platform3DObject getBackingTexture() const OVERRIDE { return m_layerBridge->getBackingTexture(); }
virtual bool isAccelerated() const OVERRIDE { return m_layerBridge->isAccelerated(); }
« no previous file with comments | « no previous file | Source/platform/graphics/Canvas2DLayerBridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698