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 "V8ArrayBufferView.h" | |
36 #include "V8EXTFragDepth.h" | 35 #include "V8EXTFragDepth.h" |
37 #include "V8EXTTextureFilterAnisotropic.h" | 36 #include "V8EXTTextureFilterAnisotropic.h" |
38 #include "V8Float32Array.h" | |
39 #include "V8HTMLCanvasElement.h" | 37 #include "V8HTMLCanvasElement.h" |
40 #include "V8HTMLImageElement.h" | 38 #include "V8HTMLImageElement.h" |
41 #include "V8HTMLVideoElement.h" | 39 #include "V8HTMLVideoElement.h" |
42 #include "V8ImageData.h" | 40 #include "V8ImageData.h" |
43 #include "V8Int16Array.h" | |
44 #include "V8Int32Array.h" | |
45 #include "V8Int8Array.h" | |
46 #include "V8OESElementIndexUint.h" | 41 #include "V8OESElementIndexUint.h" |
47 #include "V8OESStandardDerivatives.h" | 42 #include "V8OESStandardDerivatives.h" |
48 #include "V8OESTextureFloat.h" | 43 #include "V8OESTextureFloat.h" |
49 #include "V8OESTextureFloatLinear.h" | 44 #include "V8OESTextureFloatLinear.h" |
50 #include "V8OESTextureHalfFloat.h" | 45 #include "V8OESTextureHalfFloat.h" |
51 #include "V8OESTextureHalfFloatLinear.h" | 46 #include "V8OESTextureHalfFloatLinear.h" |
52 #include "V8OESVertexArrayObject.h" | 47 #include "V8OESVertexArrayObject.h" |
53 #include "V8Uint16Array.h" | |
54 #include "V8Uint32Array.h" | |
55 #include "V8Uint8Array.h" | |
56 #include "V8WebGLBuffer.h" | 48 #include "V8WebGLBuffer.h" |
57 #include "V8WebGLCompressedTextureATC.h" | 49 #include "V8WebGLCompressedTextureATC.h" |
58 #include "V8WebGLCompressedTexturePVRTC.h" | 50 #include "V8WebGLCompressedTexturePVRTC.h" |
59 #include "V8WebGLCompressedTextureS3TC.h" | 51 #include "V8WebGLCompressedTextureS3TC.h" |
60 #include "V8WebGLDebugRendererInfo.h" | 52 #include "V8WebGLDebugRendererInfo.h" |
61 #include "V8WebGLDebugShaders.h" | 53 #include "V8WebGLDebugShaders.h" |
62 #include "V8WebGLDepthTexture.h" | 54 #include "V8WebGLDepthTexture.h" |
63 #include "V8WebGLDrawBuffers.h" | 55 #include "V8WebGLDrawBuffers.h" |
64 #include "V8WebGLFramebuffer.h" | 56 #include "V8WebGLFramebuffer.h" |
65 #include "V8WebGLLoseContext.h" | 57 #include "V8WebGLLoseContext.h" |
66 #include "V8WebGLProgram.h" | 58 #include "V8WebGLProgram.h" |
67 #include "V8WebGLRenderbuffer.h" | 59 #include "V8WebGLRenderbuffer.h" |
68 #include "V8WebGLShader.h" | 60 #include "V8WebGLShader.h" |
69 #include "V8WebGLTexture.h" | 61 #include "V8WebGLTexture.h" |
70 #include "V8WebGLUniformLocation.h" | 62 #include "V8WebGLUniformLocation.h" |
71 #include "V8WebGLVertexArrayObjectOES.h" | 63 #include "V8WebGLVertexArrayObjectOES.h" |
72 #include "bindings/v8/V8Binding.h" | 64 #include "bindings/v8/V8Binding.h" |
73 #include "bindings/v8/V8HiddenPropertyName.h" | 65 #include "bindings/v8/V8HiddenPropertyName.h" |
| 66 #include "bindings/v8/custom/V8ArrayBufferViewCustom.h" |
| 67 #include "bindings/v8/custom/V8Float32ArrayCustom.h" |
| 68 #include "bindings/v8/custom/V8Int16ArrayCustom.h" |
| 69 #include "bindings/v8/custom/V8Int32ArrayCustom.h" |
| 70 #include "bindings/v8/custom/V8Int8ArrayCustom.h" |
| 71 #include "bindings/v8/custom/V8Uint16ArrayCustom.h" |
| 72 #include "bindings/v8/custom/V8Uint32ArrayCustom.h" |
| 73 #include "bindings/v8/custom/V8Uint8ArrayCustom.h" |
74 #include "core/dom/ExceptionCode.h" | 74 #include "core/dom/ExceptionCode.h" |
75 #include "core/html/canvas/WebGLRenderingContext.h" | 75 #include "core/html/canvas/WebGLRenderingContext.h" |
76 #include "core/platform/NotImplemented.h" | 76 #include "core/platform/NotImplemented.h" |
77 #include <limits> | 77 #include <limits> |
78 #include "wtf/FastMalloc.h" | 78 #include "wtf/FastMalloc.h" |
79 | 79 |
80 namespace WebCore { | 80 namespace WebCore { |
81 | 81 |
82 // Allocates new storage via fastMalloc. | 82 // Allocates new storage via fastMalloc. |
83 // Returns NULL if array failed to convert for any reason. | 83 // Returns NULL if array failed to convert for any reason. |
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
761 { | 761 { |
762 vertexAttribAndUniformHelperf(args, kVertexAttrib3v); | 762 vertexAttribAndUniformHelperf(args, kVertexAttrib3v); |
763 } | 763 } |
764 | 764 |
765 void V8WebGLRenderingContext::vertexAttrib4fvMethodCustom(const v8::FunctionCall
backInfo<v8::Value>& args) | 765 void V8WebGLRenderingContext::vertexAttrib4fvMethodCustom(const v8::FunctionCall
backInfo<v8::Value>& args) |
766 { | 766 { |
767 vertexAttribAndUniformHelperf(args, kVertexAttrib4v); | 767 vertexAttribAndUniformHelperf(args, kVertexAttrib4v); |
768 } | 768 } |
769 | 769 |
770 } // namespace WebCore | 770 } // namespace WebCore |
OLD | NEW |