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

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

Issue 2026803002: Avoid GPU readback in tex(Sub)Image2D(ImageBitmap) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: should work Created 4 years, 6 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/CanvasImageSource.h
diff --git a/third_party/WebKit/Source/core/html/canvas/CanvasImageSource.h b/third_party/WebKit/Source/core/html/canvas/CanvasImageSource.h
index 2c00cb1defd8e613800d59c614b8f6ed97d05165..fa635722d2007c2c9221a57cb12692b5e16b46df 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasImageSource.h
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasImageSource.h
@@ -68,6 +68,9 @@ public:
virtual const KURL& sourceURL() const { return blankURL(); }
virtual bool isOpaque() const { return false; }
+ virtual int sourceWidth() { return 0; }
Justin Novosad 2016/06/23 14:48:43 This should be pure virtual IMHO. The default beha
+ virtual int sourceHeight() { return 0; }
+
protected:
virtual ~CanvasImageSource() { }
};

Powered by Google App Engine
This is Rietveld 408576698