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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ContextAttributeHelpers_h
6 #define ContextAttributeHelpers_h
7
8 #include "core/html/canvas/Canvas2DContextAttributes.h"
9 #include "core/html/canvas/CanvasContextCreationAttributes.h"
10 #include "core/html/canvas/WebGLContextAttributes.h"
11 #include "public/platform/WebGraphicsContext3D.h"
12
13 namespace blink {
14
15 class Settings;
16
17 Canvas2DContextAttributes to2DContextAttributes(const CanvasContextCreationAttri butes&);
18 WebGLContextAttributes toWebGLContextAttributes(const CanvasContextCreationAttri butes&);
19
20 // Set up the attributes that can be used to initialize a WebGraphicsContext3D.
21 // It's mostly based on WebGLContextAttributes, but may be adjusted based
22 // on settings.
23 WebGraphicsContext3D::Attributes toWebGraphicsContext3DAttributes(const WebGLCon textAttributes&, const blink::WebString&, Settings*, unsigned webGLVersion);
24
25 } // namespace blink
26
27 #endif // ContextAttributeHelpers_h
OLDNEW
« 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