OLD | NEW |
(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 |
OLD | NEW |