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

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

Issue 1598923002: Add ImageBitmapRenderingContext (experimental) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: another missing adoptRef Created 4 years, 10 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 92fe4995903d3e7d61ba21d23fc0412cebdb3914..c798c97ebba90cb6bdf5a8114c073bd5bba64662 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h
@@ -59,6 +59,7 @@ public:
ContextExperimentalWebgl = 2,
ContextWebgl = 3,
ContextWebgl2 = 4,
+ ContextImageBitmap = 5,
ContextTypeCount,
};
@@ -116,6 +117,9 @@ public:
virtual ImageData* paintRenderingResultsToImageData(SourceDrawingBuffer) { ASSERT_NOT_REACHED(); return nullptr; }
virtual int externallyAllocatedBytesPerPixel() { ASSERT_NOT_REACHED(); return 0; }
+ // ImageBitmap-specific interface
+ virtual bool paint(GraphicsContext&, const IntRect&) { return false; }
+
bool wouldTaintOrigin(CanvasImageSource*);
void didMoveToNewDocument(Document*);

Powered by Google App Engine
This is Rietveld 408576698