OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 12 matching lines...) Expand all Loading... |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #include "config.h" | 26 #include "config.h" |
27 | 27 |
28 #include "core/html/canvas/OESVertexArrayObject.h" | 28 #include "core/html/canvas/OESVertexArrayObject.h" |
29 | 29 |
30 #include "bindings/v8/ExceptionState.h" | 30 #include "bindings/v8/ExceptionState.h" |
31 #include "core/html/canvas/WebGLRenderingContext.h" | 31 #include "core/html/canvas/WebGLRenderingContext.h" |
32 #include "core/html/canvas/WebGLVertexArrayObjectOES.h" | 32 #include "core/html/canvas/WebGLVertexArrayObjectOES.h" |
33 #include "core/platform/graphics/Extensions3D.h" | 33 #include "platform/graphics/Extensions3D.h" |
34 | 34 |
35 namespace WebCore { | 35 namespace WebCore { |
36 | 36 |
37 OESVertexArrayObject::OESVertexArrayObject(WebGLRenderingContext* context) | 37 OESVertexArrayObject::OESVertexArrayObject(WebGLRenderingContext* context) |
38 : WebGLExtension(context) | 38 : WebGLExtension(context) |
39 { | 39 { |
40 ScriptWrappable::init(this); | 40 ScriptWrappable::init(this); |
41 context->graphicsContext3D()->extensions()->ensureEnabled("GL_OES_vertex_arr
ay_object"); | 41 context->graphicsContext3D()->extensions()->ensureEnabled("GL_OES_vertex_arr
ay_object"); |
42 } | 42 } |
43 | 43 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 Extensions3D* extensions = context->graphicsContext3D()->extensions(); | 115 Extensions3D* extensions = context->graphicsContext3D()->extensions(); |
116 return extensions->supports("GL_OES_vertex_array_object"); | 116 return extensions->supports("GL_OES_vertex_array_object"); |
117 } | 117 } |
118 | 118 |
119 const char* OESVertexArrayObject::extensionName() | 119 const char* OESVertexArrayObject::extensionName() |
120 { | 120 { |
121 return "OES_vertex_array_object"; | 121 return "OES_vertex_array_object"; |
122 } | 122 } |
123 | 123 |
124 } // namespace WebCore | 124 } // namespace WebCore |
OLD | NEW |