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

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

Issue 2911643004: Ignore calls to SatisfySequence if CanvasSurfaceLayerBridge is gone (Closed)
Patch Set: Created 3 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 02c63f865374ab1faae6fc7074fc11be8e81bad9..961d72829ed9aff481ceb4b2000ce1f2b55a6443 100644
--- a/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp
+++ b/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp
@@ -44,8 +44,8 @@ class OffscreenCanvasSurfaceReferenceFactory
}
void SatisfySequence(const cc::SurfaceSequence& sequence) const override {
- DCHECK(bridge_);
- bridge_->SatisfyCallback(sequence);
+ if (bridge_)
+ bridge_->SatisfyCallback(sequence);
Fady Samuel 2017/05/26 20:47:57 maybe do this for require too?
Saman Sami 2017/05/29 17:48:22 I expect bridge_ to exist in RequireSequence. Sati
}
base::WeakPtr<CanvasSurfaceLayerBridge> bridge_;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698