OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010, Google Inc. All rights reserved. | 2 * Copyright (c) 2010, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * * Redistributions of source code must retain the above copyright | 7 * * Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * * Redistributions in binary form must reproduce the above | 9 * * Redistributions in binary form must reproduce the above |
10 * copyright notice, this list of conditions and the following disclaimer | 10 * copyright notice, this list of conditions and the following disclaimer |
(...skipping 11 matching lines...) Expand all Loading... |
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 */ | 25 */ |
26 | 26 |
27 #ifndef WebGLContextAttributes_h | 27 #ifndef WebGLContextAttributes_h |
28 #define WebGLContextAttributes_h | 28 #define WebGLContextAttributes_h |
29 | 29 |
30 #include "bindings/v8/ScriptWrappable.h" | 30 #include "bindings/v8/ScriptWrappable.h" |
31 #include "core/html/canvas/CanvasContextAttributes.h" | 31 #include "core/html/canvas/CanvasContextAttributes.h" |
32 #include "core/platform/graphics/GraphicsContext3D.h" | 32 #include "platform/graphics/GraphicsContext3D.h" |
33 #include "wtf/PassRefPtr.h" | 33 #include "wtf/PassRefPtr.h" |
34 | 34 |
35 namespace WebCore { | 35 namespace WebCore { |
36 | 36 |
37 class WebGLContextAttributes : public CanvasContextAttributes, public ScriptWrap
pable { | 37 class WebGLContextAttributes : public CanvasContextAttributes, public ScriptWrap
pable { |
38 public: | 38 public: |
39 virtual ~WebGLContextAttributes(); | 39 virtual ~WebGLContextAttributes(); |
40 | 40 |
41 // Create a new attributes object | 41 // Create a new attributes object |
42 static PassRefPtr<WebGLContextAttributes> create(); | 42 static PassRefPtr<WebGLContextAttributes> create(); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 WebGLContextAttributes(); | 84 WebGLContextAttributes(); |
85 WebGLContextAttributes(GraphicsContext3D::Attributes attributes); | 85 WebGLContextAttributes(GraphicsContext3D::Attributes attributes); |
86 | 86 |
87 private: | 87 private: |
88 GraphicsContext3D::Attributes m_attrs; | 88 GraphicsContext3D::Attributes m_attrs; |
89 }; | 89 }; |
90 | 90 |
91 } // namespace WebCore | 91 } // namespace WebCore |
92 | 92 |
93 #endif // WebGLContextAttributes_h | 93 #endif // WebGLContextAttributes_h |
OLD | NEW |