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

Unified Diff: third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h

Issue 2362363002: Cancel GPU acceleration for 2D canvas when drawing very large images (Closed)
Patch Set: fix sqrt Created 4 years, 3 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/offscreencanvas/OffscreenCanvas.h
diff --git a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
index c303aaed41b88b7aab5ce44adcbbfd909c34d234..daed80bf5373099eb07835f69930683af230b787 100644
--- a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
+++ b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
@@ -69,6 +69,7 @@ public:
bool isOffscreenCanvas() const final { return true; }
FloatSize elementSize(const FloatSize& defaultObjectSize) const final { return FloatSize(width(), height()); }
bool isOpaque() const final;
+ bool isAccelerated() const final;
int sourceWidth() final { return width(); }
int sourceHeight() final { return height(); }

Powered by Google App Engine
This is Rietveld 408576698