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

Unified Diff: third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp

Issue 2594843002: Implementing promise-based commit for driving OffscreenCanvas animations (Closed)
Patch Set: rebase Created 3 years, 11 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/core/html/canvas/CanvasRenderingContext.cpp
diff --git a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp
index 999194f6db80ca28d287ec31de44d7a6a28a1e32..2ddfe27b909e4759d15e29fcb0e0e4f3733a9a88 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp
@@ -118,6 +118,10 @@ void CanvasRenderingContext::dispose() {
canvas()->detachContext();
m_canvas = nullptr;
}
+ if (offscreenCanvas()) {
+ offscreenCanvas()->detachContext();
+ m_offscreenCanvas = nullptr;
+ }
}
CanvasRenderingContext::ContextType CanvasRenderingContext::contextTypeFromId(

Powered by Google App Engine
This is Rietveld 408576698