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

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

Issue 2267653005: Resolving drawImage issue with canvases that contain bitmap images (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolving the conflict with DCHECK on canvas type. Created 4 years, 4 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 178bddbc54231d730fd04ce1cc3654523d8fae9b..7ab03585c0b4df9ea1dea9f3860a042cb3be5c99 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h
@@ -127,6 +127,7 @@ public:
// ImageBitmap-specific interface
virtual bool paint(GraphicsContext&, const IntRect&) { return false; }
+ virtual PassRefPtr<Image> getImage() const { return nullptr; }
bool wouldTaintOrigin(CanvasImageSource*, SecurityOrigin* = nullptr);
void didMoveToNewDocument(Document*);

Powered by Google App Engine
This is Rietveld 408576698