| 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 13 matching lines...) Expand all Loading... |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 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 "bindings/core/v8/V8WebGLRenderingContext.h" | 32 #include "bindings/core/v8/V8WebGLRenderingContext.h" |
| 33 | 33 |
| 34 #include "bindings/core/v8/ExceptionMessages.h" |
| 34 #include "bindings/core/v8/V8ANGLEInstancedArrays.h" | 35 #include "bindings/core/v8/V8ANGLEInstancedArrays.h" |
| 36 #include "bindings/core/v8/V8Binding.h" |
| 35 #include "bindings/core/v8/V8EXTBlendMinMax.h" | 37 #include "bindings/core/v8/V8EXTBlendMinMax.h" |
| 36 #include "bindings/core/v8/V8EXTFragDepth.h" | 38 #include "bindings/core/v8/V8EXTFragDepth.h" |
| 37 #include "bindings/core/v8/V8EXTShaderTextureLOD.h" | 39 #include "bindings/core/v8/V8EXTShaderTextureLOD.h" |
| 38 #include "bindings/core/v8/V8EXTTextureFilterAnisotropic.h" | 40 #include "bindings/core/v8/V8EXTTextureFilterAnisotropic.h" |
| 39 #include "bindings/core/v8/V8HTMLCanvasElement.h" | 41 #include "bindings/core/v8/V8HTMLCanvasElement.h" |
| 40 #include "bindings/core/v8/V8HTMLImageElement.h" | 42 #include "bindings/core/v8/V8HTMLImageElement.h" |
| 41 #include "bindings/core/v8/V8HTMLVideoElement.h" | 43 #include "bindings/core/v8/V8HTMLVideoElement.h" |
| 44 #include "bindings/core/v8/V8HiddenValue.h" |
| 42 #include "bindings/core/v8/V8ImageData.h" | 45 #include "bindings/core/v8/V8ImageData.h" |
| 43 #include "bindings/core/v8/V8OESElementIndexUint.h" | 46 #include "bindings/core/v8/V8OESElementIndexUint.h" |
| 44 #include "bindings/core/v8/V8OESStandardDerivatives.h" | 47 #include "bindings/core/v8/V8OESStandardDerivatives.h" |
| 45 #include "bindings/core/v8/V8OESTextureFloat.h" | 48 #include "bindings/core/v8/V8OESTextureFloat.h" |
| 46 #include "bindings/core/v8/V8OESTextureFloatLinear.h" | 49 #include "bindings/core/v8/V8OESTextureFloatLinear.h" |
| 47 #include "bindings/core/v8/V8OESTextureHalfFloat.h" | 50 #include "bindings/core/v8/V8OESTextureHalfFloat.h" |
| 48 #include "bindings/core/v8/V8OESTextureHalfFloatLinear.h" | 51 #include "bindings/core/v8/V8OESTextureHalfFloatLinear.h" |
| 49 #include "bindings/core/v8/V8OESVertexArrayObject.h" | 52 #include "bindings/core/v8/V8OESVertexArrayObject.h" |
| 50 #include "bindings/core/v8/V8WebGLBuffer.h" | 53 #include "bindings/core/v8/V8WebGLBuffer.h" |
| 51 #include "bindings/core/v8/V8WebGLCompressedTextureATC.h" | 54 #include "bindings/core/v8/V8WebGLCompressedTextureATC.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 65 #include "bindings/core/v8/V8WebGLUniformLocation.h" | 68 #include "bindings/core/v8/V8WebGLUniformLocation.h" |
| 66 #include "bindings/core/v8/V8WebGLVertexArrayObjectOES.h" | 69 #include "bindings/core/v8/V8WebGLVertexArrayObjectOES.h" |
| 67 #include "bindings/core/v8/custom/V8ArrayBufferViewCustom.h" | 70 #include "bindings/core/v8/custom/V8ArrayBufferViewCustom.h" |
| 68 #include "bindings/core/v8/custom/V8Float32ArrayCustom.h" | 71 #include "bindings/core/v8/custom/V8Float32ArrayCustom.h" |
| 69 #include "bindings/core/v8/custom/V8Int16ArrayCustom.h" | 72 #include "bindings/core/v8/custom/V8Int16ArrayCustom.h" |
| 70 #include "bindings/core/v8/custom/V8Int32ArrayCustom.h" | 73 #include "bindings/core/v8/custom/V8Int32ArrayCustom.h" |
| 71 #include "bindings/core/v8/custom/V8Int8ArrayCustom.h" | 74 #include "bindings/core/v8/custom/V8Int8ArrayCustom.h" |
| 72 #include "bindings/core/v8/custom/V8Uint16ArrayCustom.h" | 75 #include "bindings/core/v8/custom/V8Uint16ArrayCustom.h" |
| 73 #include "bindings/core/v8/custom/V8Uint32ArrayCustom.h" | 76 #include "bindings/core/v8/custom/V8Uint32ArrayCustom.h" |
| 74 #include "bindings/core/v8/custom/V8Uint8ArrayCustom.h" | 77 #include "bindings/core/v8/custom/V8Uint8ArrayCustom.h" |
| 75 #include "bindings/v8/ExceptionMessages.h" | |
| 76 #include "bindings/v8/V8Binding.h" | |
| 77 #include "bindings/v8/V8HiddenValue.h" | |
| 78 #include "core/dom/ExceptionCode.h" | 78 #include "core/dom/ExceptionCode.h" |
| 79 #include "core/html/canvas/WebGLRenderingContext.h" | 79 #include "core/html/canvas/WebGLRenderingContext.h" |
| 80 #include "platform/NotImplemented.h" | 80 #include "platform/NotImplemented.h" |
| 81 #include "wtf/FastMalloc.h" | 81 #include "wtf/FastMalloc.h" |
| 82 #include <limits> | 82 #include <limits> |
| 83 | 83 |
| 84 namespace WebCore { | 84 namespace WebCore { |
| 85 | 85 |
| 86 // Allocates new storage via fastMalloc. | 86 // Allocates new storage via fastMalloc. |
| 87 // Returns 0 if array failed to convert for any reason. | 87 // Returns 0 if array failed to convert for any reason. |
| (...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 857 vertexAttribAndUniformHelperf(info, kVertexAttrib3v, exceptionState); | 857 vertexAttribAndUniformHelperf(info, kVertexAttrib3v, exceptionState); |
| 858 } | 858 } |
| 859 | 859 |
| 860 void V8WebGLRenderingContext::vertexAttrib4fvMethodCustom(const v8::FunctionCall
backInfo<v8::Value>& info) | 860 void V8WebGLRenderingContext::vertexAttrib4fvMethodCustom(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 861 { | 861 { |
| 862 ExceptionState exceptionState(ExceptionState::ExecutionContext, "vertexAttri
b4fv", "WebGLRenderingContext", info.Holder(), info.GetIsolate()); | 862 ExceptionState exceptionState(ExceptionState::ExecutionContext, "vertexAttri
b4fv", "WebGLRenderingContext", info.Holder(), info.GetIsolate()); |
| 863 vertexAttribAndUniformHelperf(info, kVertexAttrib4v, exceptionState); | 863 vertexAttribAndUniformHelperf(info, kVertexAttrib4v, exceptionState); |
| 864 } | 864 } |
| 865 | 865 |
| 866 } // namespace WebCore | 866 } // namespace WebCore |
| OLD | NEW |