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