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

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

Issue 2738573002: Streamline the presentation of ImageBitmapRenderingContext (Closed)
Patch Set: Fixed expectations Created 3 years, 8 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 7991a2bfa1749da54b98ad524b07383136c66aea..d29d286f2409e30c9cfd3699fd4f87698bc5116c 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) {

Powered by Google App Engine
This is Rietveld 408576698