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 WebGLContextAttributeHelpers_h | 5 #ifndef WebGLContextAttributeHelpers_h |
6 #define WebGLContextAttributeHelpers_h | 6 #define WebGLContextAttributeHelpers_h |
7 | 7 |
8 #include "core/html/canvas/CanvasContextCreationAttributes.h" | 8 #include "core/html/canvas/CanvasContextCreationAttributes.h" |
9 #include "modules/webgl/WebGLContextAttributes.h" | 9 #include "modules/webgl/WebGLContextAttributes.h" |
10 #include "public/platform/Platform.h" | 10 #include "public/platform/Platform.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 WebGLContextAttributes toWebGLContextAttributes( | 14 WebGLContextAttributes toWebGLContextAttributes( |
15 const CanvasContextCreationAttributes&); | 15 const CanvasContextCreationAttributes&); |
16 | 16 |
17 // Set up the attributes that can be used to create a GL context via the | 17 // Set up the attributes that can be used to create a GL context via the |
18 // Platform API. | 18 // Platform API. |
19 Platform::ContextAttributes toPlatformContextAttributes( | 19 Platform::ContextAttributes toPlatformContextAttributes( |
20 const CanvasContextCreationAttributes&, | 20 const CanvasContextCreationAttributes&, |
21 unsigned webGLVersion); | 21 unsigned webGLVersion, |
| 22 bool supportOwnOffscreenSurface); |
22 | 23 |
23 } // namespace blink | 24 } // namespace blink |
24 | 25 |
25 #endif // WebGLContextAttributeHelpers_h | 26 #endif // WebGLContextAttributeHelpers_h |
OLD | NEW |