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 6186c7fb4f96970c7bfb35630ae4827bcae6c621..2f04492ed86817a9fb7d4cbe5595588c3412f398 100644 |
--- a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h |
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h |
@@ -112,7 +112,8 @@ class CORE_EXPORT CanvasRenderingContext |
SnapshotReason) const = 0; |
virtual ImageData* toImageData(SnapshotReason reason) { return nullptr; } |
virtual ContextType getContextType() const = 0; |
- virtual bool isAccelerated() const { return false; } |
+ virtual bool isComposited() const = 0; |
+ virtual bool isAccelerated() const = 0; |
virtual bool shouldAntialias() const { return false; } |
virtual void setIsHidden(bool) = 0; |
virtual bool isContextLost() const { return true; } |
@@ -122,6 +123,7 @@ class CORE_EXPORT CanvasRenderingContext |
} |
virtual bool isPaintable() const = 0; |
virtual void didDraw(const SkIRect& dirtyRect); |
+ virtual void didDraw(); |
// Return true if the content is updated. |
virtual bool paintRenderingResultsToCanvas(SourceDrawingBuffer) { |
@@ -213,6 +215,7 @@ class CORE_EXPORT CanvasRenderingContext |
private: |
void dispose(); |
+ void scheduleFinalizeFrameIfNeeded(); |
Member<HTMLCanvasElement> m_canvas; |
Member<OffscreenCanvas> m_offscreenCanvas; |