OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 14 matching lines...) Expand all Loading... |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 #include "V8WebGLRenderingContext.h" | 32 #include "V8WebGLRenderingContext.h" |
33 | 33 |
34 #include "V8ANGLEInstancedArrays.h" | 34 #include "V8ANGLEInstancedArrays.h" |
| 35 #include "V8EXTBlendMinMax.h" |
35 #include "V8EXTFragDepth.h" | 36 #include "V8EXTFragDepth.h" |
36 #include "V8EXTShaderTextureLOD.h" | 37 #include "V8EXTShaderTextureLOD.h" |
37 #include "V8EXTTextureFilterAnisotropic.h" | 38 #include "V8EXTTextureFilterAnisotropic.h" |
38 #include "V8HTMLCanvasElement.h" | 39 #include "V8HTMLCanvasElement.h" |
39 #include "V8HTMLImageElement.h" | 40 #include "V8HTMLImageElement.h" |
40 #include "V8HTMLVideoElement.h" | 41 #include "V8HTMLVideoElement.h" |
41 #include "V8ImageData.h" | 42 #include "V8ImageData.h" |
42 #include "V8OESElementIndexUint.h" | 43 #include "V8OESElementIndexUint.h" |
43 #include "V8OESStandardDerivatives.h" | 44 #include "V8OESStandardDerivatives.h" |
44 #include "V8OESTextureFloat.h" | 45 #include "V8OESTextureFloat.h" |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 { | 183 { |
183 if (!extension) | 184 if (!extension) |
184 return v8::Null(isolate); | 185 return v8::Null(isolate); |
185 v8::Handle<v8::Value> extensionObject; | 186 v8::Handle<v8::Value> extensionObject; |
186 const char* referenceName = 0; | 187 const char* referenceName = 0; |
187 switch (extension->name()) { | 188 switch (extension->name()) { |
188 case ANGLEInstancedArraysName: | 189 case ANGLEInstancedArraysName: |
189 extensionObject = toV8(static_cast<ANGLEInstancedArrays*>(extension), co
ntextObject, isolate); | 190 extensionObject = toV8(static_cast<ANGLEInstancedArrays*>(extension), co
ntextObject, isolate); |
190 referenceName = "angleInstancedArraysName"; | 191 referenceName = "angleInstancedArraysName"; |
191 break; | 192 break; |
| 193 case EXTBlendMinMaxName: |
| 194 extensionObject = toV8(static_cast<EXTBlendMinMax*>(extension), contextO
bject, isolate); |
| 195 referenceName = "extBlendMinMaxName"; |
| 196 break; |
192 case EXTFragDepthName: | 197 case EXTFragDepthName: |
193 extensionObject = toV8(static_cast<EXTFragDepth*>(extension), contextObj
ect, isolate); | 198 extensionObject = toV8(static_cast<EXTFragDepth*>(extension), contextObj
ect, isolate); |
194 referenceName = "extFragDepthName"; | 199 referenceName = "extFragDepthName"; |
195 break; | 200 break; |
196 case EXTShaderTextureLODName: | 201 case EXTShaderTextureLODName: |
197 extensionObject = toV8(static_cast<EXTShaderTextureLOD*>(extension), con
textObject, isolate); | 202 extensionObject = toV8(static_cast<EXTShaderTextureLOD*>(extension), con
textObject, isolate); |
198 referenceName = "extShaderTextureLODName"; | 203 referenceName = "extShaderTextureLODName"; |
199 break; | 204 break; |
200 case EXTTextureFilterAnisotropicName: | 205 case EXTTextureFilterAnisotropicName: |
201 extensionObject = toV8(static_cast<EXTTextureFilterAnisotropic*>(extensi
on), contextObject, isolate); | 206 extensionObject = toV8(static_cast<EXTTextureFilterAnisotropic*>(extensi
on), contextObject, isolate); |
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
852 vertexAttribAndUniformHelperf(info, kVertexAttrib3v, exceptionState); | 857 vertexAttribAndUniformHelperf(info, kVertexAttrib3v, exceptionState); |
853 } | 858 } |
854 | 859 |
855 void V8WebGLRenderingContext::vertexAttrib4fvMethodCustom(const v8::FunctionCall
backInfo<v8::Value>& info) | 860 void V8WebGLRenderingContext::vertexAttrib4fvMethodCustom(const v8::FunctionCall
backInfo<v8::Value>& info) |
856 { | 861 { |
857 ExceptionState exceptionState(ExceptionState::ExecutionContext, "vertexAttri
b4fv", "WebGLRenderingContext", info.Holder(), info.GetIsolate()); | 862 ExceptionState exceptionState(ExceptionState::ExecutionContext, "vertexAttri
b4fv", "WebGLRenderingContext", info.Holder(), info.GetIsolate()); |
858 vertexAttribAndUniformHelperf(info, kVertexAttrib4v, exceptionState); | 863 vertexAttribAndUniformHelperf(info, kVertexAttrib4v, exceptionState); |
859 } | 864 } |
860 | 865 |
861 } // namespace WebCore | 866 } // namespace WebCore |
OLD | NEW |