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

Unified Diff: third_party/WebKit/Source/core/html/HTMLVideoElement.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/HTMLVideoElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLVideoElement.h b/third_party/WebKit/Source/core/html/HTMLVideoElement.h
index d1ab80cc4c4a113e7b3f2610ea78311959270ca5..f6c45f29827b8f278dc04bfb2ff2518925a8485b 100644
--- a/third_party/WebKit/Source/core/html/HTMLVideoElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLVideoElement.h
@@ -84,8 +84,9 @@ public:
bool wouldTaintOrigin(SecurityOrigin*) const override;
FloatSize elementSize(const FloatSize&) const override;
const KURL& sourceURL() const override { return currentSrc(); }
-
bool isHTMLVideoElement() const override { return true; }
+ int sourceWidth() override { return videoWidth(); }
+ int sourceHeight() override { return videoHeight(); }
// ImageBitmapSource implementation
IntSize bitmapSourceSize() const override;

Powered by Google App Engine
This is Rietveld 408576698