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 15 matching lines...) Expand all Loading... |
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 "V8EXTFragDepth.h" | 35 #include "V8EXTFragDepth.h" |
| 36 #include "V8EXTShaderTextureLOD.h" |
36 #include "V8EXTTextureFilterAnisotropic.h" | 37 #include "V8EXTTextureFilterAnisotropic.h" |
37 #include "V8HTMLCanvasElement.h" | 38 #include "V8HTMLCanvasElement.h" |
38 #include "V8HTMLImageElement.h" | 39 #include "V8HTMLImageElement.h" |
39 #include "V8HTMLVideoElement.h" | 40 #include "V8HTMLVideoElement.h" |
40 #include "V8ImageData.h" | 41 #include "V8ImageData.h" |
41 #include "V8OESElementIndexUint.h" | 42 #include "V8OESElementIndexUint.h" |
42 #include "V8OESStandardDerivatives.h" | 43 #include "V8OESStandardDerivatives.h" |
43 #include "V8OESTextureFloat.h" | 44 #include "V8OESTextureFloat.h" |
44 #include "V8OESTextureFloatLinear.h" | 45 #include "V8OESTextureFloatLinear.h" |
45 #include "V8OESTextureHalfFloat.h" | 46 #include "V8OESTextureHalfFloat.h" |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 const char* referenceName = 0; | 185 const char* referenceName = 0; |
185 switch (extension->name()) { | 186 switch (extension->name()) { |
186 case ANGLEInstancedArraysName: | 187 case ANGLEInstancedArraysName: |
187 extensionObject = toV8(static_cast<ANGLEInstancedArrays*>(extension), co
ntextObject, isolate); | 188 extensionObject = toV8(static_cast<ANGLEInstancedArrays*>(extension), co
ntextObject, isolate); |
188 referenceName = "angleInstancedArraysName"; | 189 referenceName = "angleInstancedArraysName"; |
189 break; | 190 break; |
190 case EXTFragDepthName: | 191 case EXTFragDepthName: |
191 extensionObject = toV8(static_cast<EXTFragDepth*>(extension), contextObj
ect, isolate); | 192 extensionObject = toV8(static_cast<EXTFragDepth*>(extension), contextObj
ect, isolate); |
192 referenceName = "extFragDepthName"; | 193 referenceName = "extFragDepthName"; |
193 break; | 194 break; |
| 195 case EXTShaderTextureLODName: |
| 196 extensionObject = toV8(static_cast<EXTShaderTextureLOD*>(extension), con
textObject, isolate); |
| 197 referenceName = "extShaderTextureLODName"; |
| 198 break; |
194 case EXTTextureFilterAnisotropicName: | 199 case EXTTextureFilterAnisotropicName: |
195 extensionObject = toV8(static_cast<EXTTextureFilterAnisotropic*>(extensi
on), contextObject, isolate); | 200 extensionObject = toV8(static_cast<EXTTextureFilterAnisotropic*>(extensi
on), contextObject, isolate); |
196 referenceName = "extTextureFilterAnisotropicName"; | 201 referenceName = "extTextureFilterAnisotropicName"; |
197 break; | 202 break; |
198 case OESElementIndexUintName: | 203 case OESElementIndexUintName: |
199 extensionObject = toV8(static_cast<OESElementIndexUint*>(extension), con
textObject, isolate); | 204 extensionObject = toV8(static_cast<OESElementIndexUint*>(extension), con
textObject, isolate); |
200 referenceName = "oesElementIndexUintName"; | 205 referenceName = "oesElementIndexUintName"; |
201 break; | 206 break; |
202 case OESStandardDerivativesName: | 207 case OESStandardDerivativesName: |
203 extensionObject = toV8(static_cast<OESStandardDerivatives*>(extension),
contextObject, isolate); | 208 extensionObject = toV8(static_cast<OESStandardDerivatives*>(extension),
contextObject, isolate); |
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
842 vertexAttribAndUniformHelperf(info, kVertexAttrib3v, exceptionState); | 847 vertexAttribAndUniformHelperf(info, kVertexAttrib3v, exceptionState); |
843 } | 848 } |
844 | 849 |
845 void V8WebGLRenderingContext::vertexAttrib4fvMethodCustom(const v8::FunctionCall
backInfo<v8::Value>& info) | 850 void V8WebGLRenderingContext::vertexAttrib4fvMethodCustom(const v8::FunctionCall
backInfo<v8::Value>& info) |
846 { | 851 { |
847 ExceptionState exceptionState(ExceptionState::ExecutionContext, "vertexAttri
b4fv", "WebGLRenderingContext", info.Holder(), info.GetIsolate()); | 852 ExceptionState exceptionState(ExceptionState::ExecutionContext, "vertexAttri
b4fv", "WebGLRenderingContext", info.Holder(), info.GetIsolate()); |
848 vertexAttribAndUniformHelperf(info, kVertexAttrib4v, exceptionState); | 853 vertexAttribAndUniformHelperf(info, kVertexAttrib4v, exceptionState); |
849 } | 854 } |
850 | 855 |
851 } // namespace WebCore | 856 } // namespace WebCore |
OLD | NEW |