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

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

Issue 2738573002: Streamline the presentation of ImageBitmapRenderingContext (Closed)
Patch Set: Created 3 years, 9 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 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;

Powered by Google App Engine
This is Rietveld 408576698