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 18 matching lines...) Expand all Loading... |
29 | 29 |
30 #include "bindings/core/v8/ExceptionState.h" | 30 #include "bindings/core/v8/ExceptionState.h" |
31 #include "core/html/canvas/WebGLRenderingContextBase.h" | 31 #include "core/html/canvas/WebGLRenderingContextBase.h" |
32 #include "core/html/canvas/WebGLVertexArrayObjectOES.h" | 32 #include "core/html/canvas/WebGLVertexArrayObjectOES.h" |
33 | 33 |
34 namespace blink { | 34 namespace blink { |
35 | 35 |
36 OESVertexArrayObject::OESVertexArrayObject(WebGLRenderingContextBase* context) | 36 OESVertexArrayObject::OESVertexArrayObject(WebGLRenderingContextBase* context) |
37 : WebGLExtension(context) | 37 : WebGLExtension(context) |
38 { | 38 { |
39 ScriptWrappable::init(this); | |
40 context->extensionsUtil()->ensureExtensionEnabled("GL_OES_vertex_array_objec
t"); | 39 context->extensionsUtil()->ensureExtensionEnabled("GL_OES_vertex_array_objec
t"); |
41 } | 40 } |
42 | 41 |
43 OESVertexArrayObject::~OESVertexArrayObject() | 42 OESVertexArrayObject::~OESVertexArrayObject() |
44 { | 43 { |
45 } | 44 } |
46 | 45 |
47 WebGLExtensionName OESVertexArrayObject::name() const | 46 WebGLExtensionName OESVertexArrayObject::name() const |
48 { | 47 { |
49 return OESVertexArrayObjectName; | 48 return OESVertexArrayObjectName; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 { | 110 { |
112 return context->extensionsUtil()->supportsExtension("GL_OES_vertex_array_obj
ect"); | 111 return context->extensionsUtil()->supportsExtension("GL_OES_vertex_array_obj
ect"); |
113 } | 112 } |
114 | 113 |
115 const char* OESVertexArrayObject::extensionName() | 114 const char* OESVertexArrayObject::extensionName() |
116 { | 115 { |
117 return "OES_vertex_array_object"; | 116 return "OES_vertex_array_object"; |
118 } | 117 } |
119 | 118 |
120 } // namespace blink | 119 } // namespace blink |
OLD | NEW |