| 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 aacbab6fe6c0ab89fea5adfa1e52a6978db6e155..df4386b18a4d4b2e89fac20a638133d98d6c464d 100644
|
| --- a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h
|
| +++ b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h
|
| @@ -122,7 +122,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; }
|
| @@ -132,6 +133,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) {
|
| @@ -223,6 +225,7 @@ class CORE_EXPORT CanvasRenderingContext
|
|
|
| private:
|
| void dispose();
|
| + void scheduleFinalizeFrameIfNeeded();
|
|
|
| Member<HTMLCanvasElement> m_canvas;
|
| Member<OffscreenCanvas> m_offscreenCanvas;
|
|
|