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

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: address kbr@'s comments 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..8713294679e6cd202e547f990c75160e8a79d29c 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() = 0;
+ virtual int sourceHeight() = 0;
+
protected:
virtual ~CanvasImageSource() { }
};

Powered by Google App Engine
This is Rietveld 408576698