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

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

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.h
diff --git a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h
index 7aa08157f07768500b08bc2b83ff063010c057a1..cb61c23899c6c8d6c2516a75d80e9c477f1ccc3c 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h
@@ -164,13 +164,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