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

Unified Diff: Source/core/html/canvas/Canvas2DContextAttributes.idl

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: Rebased to ToT; test cleanup 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/Canvas2DContextAttributes.idl
diff --git a/Source/core/html/canvas/WebGLShaderPrecisionFormat.idl b/Source/core/html/canvas/Canvas2DContextAttributes.idl
similarity index 83%
copy from Source/core/html/canvas/WebGLShaderPrecisionFormat.idl
copy to Source/core/html/canvas/Canvas2DContextAttributes.idl
index b31a58d614047c672bf228793b3219a6d1cf81c2..f266a5786e04a06983bf8942b40918c456d096d7 100644
--- a/Source/core/html/canvas/WebGLShaderPrecisionFormat.idl
+++ b/Source/core/html/canvas/Canvas2DContextAttributes.idl
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, Google Inc. All rights reserved.
+ * Copyright (c) 2013, Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -24,12 +24,6 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-[
- Conditional=WEBGL,
- ImplementationLacksVTable
-] interface WebGLShaderPrecisionFormat {
- readonly attribute long rangeMin;
- readonly attribute long rangeMax;
- readonly attribute long precision;
+[EnabledAtRuntime=experimentalCanvasFeatures] interface Canvas2DContextAttributes {
+ attribute boolean alpha;
};
-
« no previous file with comments | « Source/core/html/canvas/Canvas2DContextAttributes.cpp ('k') | Source/core/html/canvas/CanvasContextAttributes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698