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

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

Issue 795833004: Use dictionaries for context creation attributes. Eliminate custom bindings. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. Created 6 years 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/ContextAttributeHelpers.h
diff --git a/Source/core/html/canvas/ContextAttributeHelpers.h b/Source/core/html/canvas/ContextAttributeHelpers.h
new file mode 100644
index 0000000000000000000000000000000000000000..8db1f191a3ec52692ef54a76457592ba33181114
--- /dev/null
+++ b/Source/core/html/canvas/ContextAttributeHelpers.h
@@ -0,0 +1,27 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ContextAttributeHelpers_h
+#define ContextAttributeHelpers_h
+
+#include "core/html/canvas/Canvas2DContextAttributes.h"
+#include "core/html/canvas/CanvasContextCreationAttributes.h"
+#include "core/html/canvas/WebGLContextAttributes.h"
+#include "public/platform/WebGraphicsContext3D.h"
+
+namespace blink {
+
+class Settings;
+
+Canvas2DContextAttributes to2DContextAttributes(const CanvasContextCreationAttributes&);
+WebGLContextAttributes toWebGLContextAttributes(const CanvasContextCreationAttributes&);
+
+// Set up the attributes that can be used to initialize a WebGraphicsContext3D.
+// It's mostly based on WebGLContextAttributes, but may be adjusted based
+// on settings.
+WebGraphicsContext3D::Attributes toWebGraphicsContext3DAttributes(const WebGLContextAttributes&, const blink::WebString&, Settings*, unsigned webGLVersion);
+
+} // namespace blink
+
+#endif // ContextAttributeHelpers_h
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | Source/core/html/canvas/ContextAttributeHelpers.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698