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 28 matching lines...) Expand all Loading... |
39 #include "V8HTMLCanvasElement.h" | 39 #include "V8HTMLCanvasElement.h" |
40 #include "V8HTMLImageElement.h" | 40 #include "V8HTMLImageElement.h" |
41 #include "V8HTMLVideoElement.h" | 41 #include "V8HTMLVideoElement.h" |
42 #include "V8ImageData.h" | 42 #include "V8ImageData.h" |
43 #include "V8Int16Array.h" | 43 #include "V8Int16Array.h" |
44 #include "V8Int32Array.h" | 44 #include "V8Int32Array.h" |
45 #include "V8Int8Array.h" | 45 #include "V8Int8Array.h" |
46 #include "V8OESElementIndexUint.h" | 46 #include "V8OESElementIndexUint.h" |
47 #include "V8OESStandardDerivatives.h" | 47 #include "V8OESStandardDerivatives.h" |
48 #include "V8OESTextureFloat.h" | 48 #include "V8OESTextureFloat.h" |
| 49 #include "V8OESTextureFloatLinear.h" |
49 #include "V8OESTextureHalfFloat.h" | 50 #include "V8OESTextureHalfFloat.h" |
| 51 #include "V8OESTextureHalfFloatLinear.h" |
50 #include "V8OESVertexArrayObject.h" | 52 #include "V8OESVertexArrayObject.h" |
51 #include "V8Uint16Array.h" | 53 #include "V8Uint16Array.h" |
52 #include "V8Uint32Array.h" | 54 #include "V8Uint32Array.h" |
53 #include "V8Uint8Array.h" | 55 #include "V8Uint8Array.h" |
54 #include "V8WebGLBuffer.h" | 56 #include "V8WebGLBuffer.h" |
55 #include "V8WebGLCompressedTextureATC.h" | 57 #include "V8WebGLCompressedTextureATC.h" |
56 #include "V8WebGLCompressedTexturePVRTC.h" | 58 #include "V8WebGLCompressedTexturePVRTC.h" |
57 #include "V8WebGLCompressedTextureS3TC.h" | 59 #include "V8WebGLCompressedTextureS3TC.h" |
58 #include "V8WebGLDebugRendererInfo.h" | 60 #include "V8WebGLDebugRendererInfo.h" |
59 #include "V8WebGLDebugShaders.h" | 61 #include "V8WebGLDebugShaders.h" |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 referenceName = "extTextureFilterAnisotropicName"; | 190 referenceName = "extTextureFilterAnisotropicName"; |
189 break; | 191 break; |
190 case WebGLExtension::OESStandardDerivativesName: | 192 case WebGLExtension::OESStandardDerivativesName: |
191 extensionObject = toV8(static_cast<OESStandardDerivatives*>(extension),
contextObject, isolate); | 193 extensionObject = toV8(static_cast<OESStandardDerivatives*>(extension),
contextObject, isolate); |
192 referenceName = "oesStandardDerivativesName"; | 194 referenceName = "oesStandardDerivativesName"; |
193 break; | 195 break; |
194 case WebGLExtension::OESTextureFloatName: | 196 case WebGLExtension::OESTextureFloatName: |
195 extensionObject = toV8(static_cast<OESTextureFloat*>(extension), context
Object, isolate); | 197 extensionObject = toV8(static_cast<OESTextureFloat*>(extension), context
Object, isolate); |
196 referenceName = "oesTextureFloatName"; | 198 referenceName = "oesTextureFloatName"; |
197 break; | 199 break; |
| 200 case WebGLExtension::OESTextureFloatLinearName: |
| 201 extensionObject = toV8(static_cast<OESTextureFloatLinear*>(extension), c
ontextObject, isolate); |
| 202 referenceName = "oesTextureFloatLinearName"; |
| 203 break; |
198 case WebGLExtension::OESTextureHalfFloatName: | 204 case WebGLExtension::OESTextureHalfFloatName: |
199 extensionObject = toV8(static_cast<OESTextureHalfFloat*>(extension), con
textObject, isolate); | 205 extensionObject = toV8(static_cast<OESTextureHalfFloat*>(extension), con
textObject, isolate); |
200 referenceName = "oesTextureHalfFloatName"; | 206 referenceName = "oesTextureHalfFloatName"; |
201 break; | 207 break; |
| 208 case WebGLExtension::OESTextureHalfFloatLinearName: |
| 209 extensionObject = toV8(static_cast<OESTextureHalfFloatLinear*>(extension
), contextObject, isolate); |
| 210 referenceName = "oesTextureHalfFloatLinearName"; |
| 211 break; |
202 case WebGLExtension::OESVertexArrayObjectName: | 212 case WebGLExtension::OESVertexArrayObjectName: |
203 extensionObject = toV8(static_cast<OESVertexArrayObject*>(extension), co
ntextObject, isolate); | 213 extensionObject = toV8(static_cast<OESVertexArrayObject*>(extension), co
ntextObject, isolate); |
204 referenceName = "oesVertexArrayObjectName"; | 214 referenceName = "oesVertexArrayObjectName"; |
205 break; | 215 break; |
206 case WebGLExtension::OESElementIndexUintName: | 216 case WebGLExtension::OESElementIndexUintName: |
207 extensionObject = toV8(static_cast<OESElementIndexUint*>(extension), con
textObject, isolate); | 217 extensionObject = toV8(static_cast<OESElementIndexUint*>(extension), con
textObject, isolate); |
208 referenceName = "oesElementIndexUintName"; | 218 referenceName = "oesElementIndexUintName"; |
209 break; | 219 break; |
210 case WebGLExtension::WebGLDebugRendererInfoName: | 220 case WebGLExtension::WebGLDebugRendererInfoName: |
211 extensionObject = toV8(static_cast<WebGLDebugRendererInfo*>(extension),
contextObject, isolate); | 221 extensionObject = toV8(static_cast<WebGLDebugRendererInfo*>(extension),
contextObject, isolate); |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
736 { | 746 { |
737 return vertexAttribAndUniformHelperf(args, kVertexAttrib3v); | 747 return vertexAttribAndUniformHelperf(args, kVertexAttrib3v); |
738 } | 748 } |
739 | 749 |
740 v8::Handle<v8::Value> V8WebGLRenderingContext::vertexAttrib4fvMethodCustom(const
v8::Arguments& args) | 750 v8::Handle<v8::Value> V8WebGLRenderingContext::vertexAttrib4fvMethodCustom(const
v8::Arguments& args) |
741 { | 751 { |
742 return vertexAttribAndUniformHelperf(args, kVertexAttrib4v); | 752 return vertexAttribAndUniformHelperf(args, kVertexAttrib4v); |
743 } | 753 } |
744 | 754 |
745 } // namespace WebCore | 755 } // namespace WebCore |
OLD | NEW |