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

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

Issue 2420203002: Implement convertToBlob() in OffscreenCanvas (Closed)
Patch Set: fix layout test and reviewer feedback Created 4 years, 2 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 5da3199bae3be16c86076a0262e3e856357a6e7a..ffdeca2e7e19a6a5dcaa05c22d0ef14285c22be1 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h
@@ -88,6 +88,9 @@ class CORE_EXPORT CanvasRenderingContext
virtual PassRefPtr<Image> getImage(AccelerationHint,
SnapshotReason) const = 0;
+ virtual ImageData* toImageData(SnapshotReason reason) const {
Justin Novosad 2016/10/20 16:18:53 Having this is a good idea. Please create a crbug
xlai (Olivia) 2016/10/20 16:26:27 Thanks! Creating crbug.com/657870 for record.
+ return nullptr;
+ }
virtual ContextType getContextType() const = 0;
virtual bool isAccelerated() const { return false; }
virtual bool shouldAntialias() const { return false; }

Powered by Google App Engine
This is Rietveld 408576698