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

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

Issue 2594843002: Implementing promise-based commit for driving OffscreenCanvas animations (Closed)
Patch Set: test fix Created 4 years 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.h
diff --git a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h
index e6a3d891690dac78be7e67d2e3f819c4864500dc..1ed2c308af28b918d176fd8a4f4d49fd7f6adb7b 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h
@@ -166,13 +166,14 @@ class CORE_EXPORT CanvasRenderingContext
virtual bool paint(GraphicsContext&, const IntRect&) { return false; }
// OffscreenCanvas-specific methods
- OffscreenCanvas* getOffscreenCanvas() const { return m_offscreenCanvas; }
+ OffscreenCanvas* offscreenCanvas() const { return m_offscreenCanvas; }
virtual ImageBitmap* transferToImageBitmap(ScriptState*) { return nullptr; }
bool wouldTaintOrigin(CanvasImageSource*, SecurityOrigin* = nullptr);
void didMoveToNewDocument(Document*);
void detachCanvas() { m_canvas = nullptr; }
+ void detachOffscreenCanvas() { m_offscreenCanvas = nullptr; }
const CanvasContextCreationAttributes& creationAttributes() const {
return m_creationAttributes;

Powered by Google App Engine
This is Rietveld 408576698