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