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

Unified Diff: third_party/WebKit/Source/core/html/HTMLCanvasElement.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/HTMLCanvasElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.h b/third_party/WebKit/Source/core/html/HTMLCanvasElement.h
index ff94d8b8f50ba02c98058d94a0caa2a61f38e8dc..37c79ec851a2c8a9cf5b8d3b057ce0cb3554f6fd 100644
--- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.h
@@ -169,6 +169,8 @@ public:
FloatSize elementSize(const FloatSize&) const override;
bool isCanvasElement() const override { return true; }
bool isOpaque() const override;
+ int sourceWidth() override { return m_size.width(); }
+ int sourceHeight() override { return m_size.height(); }
// ImageBufferClient implementation
void notifySurfaceInvalid() override;

Powered by Google App Engine
This is Rietveld 408576698