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

Unified Diff: Source/core/html/canvas/CanvasRenderingContext.h

Issue 14298018: This CL implements the first draft of Canvas 2D Context Attributes, aka getContext('2d', { alpha: f… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixes from review comments; remove WebPreferences.h changes; fix comment. Created 7 years, 8 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: Source/core/html/canvas/CanvasRenderingContext.h
diff --git a/Source/core/html/canvas/CanvasRenderingContext.h b/Source/core/html/canvas/CanvasRenderingContext.h
index 6057e02cd67e74b0f5f8021106b7b6018c6bcc74..180b2e4530cee6b174112b676f2d5aa4137913ac 100644
--- a/Source/core/html/canvas/CanvasRenderingContext.h
+++ b/Source/core/html/canvas/CanvasRenderingContext.h
@@ -54,6 +54,7 @@ public:
virtual bool is2d() const { return false; }
virtual bool is3d() const { return false; }
virtual bool isAccelerated() const { return false; }
+ virtual bool hasAlpha() const { return true; }
virtual void paintRenderingResultsToCanvas() {}

Powered by Google App Engine
This is Rietveld 408576698