Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: sky/engine/bindings/core/v8/custom/V8WebGLRenderingContextCustom.cpp

Issue 746023002: Make absolute and sort all Sky headers (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 10 matching lines...) Expand all
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
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 "sky/engine/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 <limits>
35 #include "bindings/core/v8/V8ANGLEInstancedArrays.h" 35 #include "bindings/core/v8/V8ANGLEInstancedArrays.h"
36 #include "bindings/core/v8/V8Binding.h"
37 #include "bindings/core/v8/V8EXTBlendMinMax.h" 36 #include "bindings/core/v8/V8EXTBlendMinMax.h"
38 #include "bindings/core/v8/V8EXTFragDepth.h" 37 #include "bindings/core/v8/V8EXTFragDepth.h"
39 #include "bindings/core/v8/V8EXTShaderTextureLOD.h" 38 #include "bindings/core/v8/V8EXTShaderTextureLOD.h"
40 #include "bindings/core/v8/V8EXTTextureFilterAnisotropic.h" 39 #include "bindings/core/v8/V8EXTTextureFilterAnisotropic.h"
41 #include "bindings/core/v8/V8HTMLCanvasElement.h" 40 #include "bindings/core/v8/V8HTMLCanvasElement.h"
42 #include "bindings/core/v8/V8HTMLImageElement.h" 41 #include "bindings/core/v8/V8HTMLImageElement.h"
43 #include "bindings/core/v8/V8HiddenValue.h"
44 #include "bindings/core/v8/V8ImageData.h" 42 #include "bindings/core/v8/V8ImageData.h"
45 #include "bindings/core/v8/V8OESElementIndexUint.h" 43 #include "bindings/core/v8/V8OESElementIndexUint.h"
46 #include "bindings/core/v8/V8OESStandardDerivatives.h" 44 #include "bindings/core/v8/V8OESStandardDerivatives.h"
47 #include "bindings/core/v8/V8OESTextureFloat.h" 45 #include "bindings/core/v8/V8OESTextureFloat.h"
48 #include "bindings/core/v8/V8OESTextureFloatLinear.h" 46 #include "bindings/core/v8/V8OESTextureFloatLinear.h"
49 #include "bindings/core/v8/V8OESTextureHalfFloat.h" 47 #include "bindings/core/v8/V8OESTextureHalfFloat.h"
50 #include "bindings/core/v8/V8OESTextureHalfFloatLinear.h" 48 #include "bindings/core/v8/V8OESTextureHalfFloatLinear.h"
51 #include "bindings/core/v8/V8OESVertexArrayObject.h" 49 #include "bindings/core/v8/V8OESVertexArrayObject.h"
52 #include "bindings/core/v8/V8WebGLBuffer.h" 50 #include "bindings/core/v8/V8WebGLBuffer.h"
53 #include "bindings/core/v8/V8WebGLCompressedTextureATC.h" 51 #include "bindings/core/v8/V8WebGLCompressedTextureATC.h"
54 #include "bindings/core/v8/V8WebGLCompressedTextureETC1.h" 52 #include "bindings/core/v8/V8WebGLCompressedTextureETC1.h"
55 #include "bindings/core/v8/V8WebGLCompressedTexturePVRTC.h" 53 #include "bindings/core/v8/V8WebGLCompressedTexturePVRTC.h"
56 #include "bindings/core/v8/V8WebGLCompressedTextureS3TC.h" 54 #include "bindings/core/v8/V8WebGLCompressedTextureS3TC.h"
57 #include "bindings/core/v8/V8WebGLDebugRendererInfo.h" 55 #include "bindings/core/v8/V8WebGLDebugRendererInfo.h"
58 #include "bindings/core/v8/V8WebGLDebugShaders.h" 56 #include "bindings/core/v8/V8WebGLDebugShaders.h"
59 #include "bindings/core/v8/V8WebGLDepthTexture.h" 57 #include "bindings/core/v8/V8WebGLDepthTexture.h"
60 #include "bindings/core/v8/V8WebGLDrawBuffers.h" 58 #include "bindings/core/v8/V8WebGLDrawBuffers.h"
61 #include "bindings/core/v8/V8WebGLFramebuffer.h" 59 #include "bindings/core/v8/V8WebGLFramebuffer.h"
62 #include "bindings/core/v8/V8WebGLLoseContext.h" 60 #include "bindings/core/v8/V8WebGLLoseContext.h"
63 #include "bindings/core/v8/V8WebGLProgram.h" 61 #include "bindings/core/v8/V8WebGLProgram.h"
64 #include "bindings/core/v8/V8WebGLRenderbuffer.h" 62 #include "bindings/core/v8/V8WebGLRenderbuffer.h"
65 #include "bindings/core/v8/V8WebGLShader.h" 63 #include "bindings/core/v8/V8WebGLShader.h"
66 #include "bindings/core/v8/V8WebGLTexture.h" 64 #include "bindings/core/v8/V8WebGLTexture.h"
67 #include "bindings/core/v8/V8WebGLUniformLocation.h" 65 #include "bindings/core/v8/V8WebGLUniformLocation.h"
68 #include "bindings/core/v8/V8WebGLVertexArrayObjectOES.h" 66 #include "bindings/core/v8/V8WebGLVertexArrayObjectOES.h"
69 #include "bindings/core/v8/custom/V8ArrayBufferViewCustom.h" 67 #include "sky/engine/bindings/core/v8/ExceptionMessages.h"
70 #include "bindings/core/v8/custom/V8Float32ArrayCustom.h" 68 #include "sky/engine/bindings/core/v8/V8Binding.h"
71 #include "bindings/core/v8/custom/V8Int16ArrayCustom.h" 69 #include "sky/engine/bindings/core/v8/V8HiddenValue.h"
72 #include "bindings/core/v8/custom/V8Int32ArrayCustom.h" 70 #include "sky/engine/bindings/core/v8/custom/V8ArrayBufferViewCustom.h"
73 #include "bindings/core/v8/custom/V8Int8ArrayCustom.h" 71 #include "sky/engine/bindings/core/v8/custom/V8Float32ArrayCustom.h"
74 #include "bindings/core/v8/custom/V8Uint16ArrayCustom.h" 72 #include "sky/engine/bindings/core/v8/custom/V8Int16ArrayCustom.h"
75 #include "bindings/core/v8/custom/V8Uint32ArrayCustom.h" 73 #include "sky/engine/bindings/core/v8/custom/V8Int32ArrayCustom.h"
76 #include "bindings/core/v8/custom/V8Uint8ArrayCustom.h" 74 #include "sky/engine/bindings/core/v8/custom/V8Int8ArrayCustom.h"
77 #include "core/dom/ExceptionCode.h" 75 #include "sky/engine/bindings/core/v8/custom/V8Uint16ArrayCustom.h"
78 #include "core/html/canvas/WebGLRenderingContext.h" 76 #include "sky/engine/bindings/core/v8/custom/V8Uint32ArrayCustom.h"
79 #include "platform/NotImplemented.h" 77 #include "sky/engine/bindings/core/v8/custom/V8Uint8ArrayCustom.h"
80 #include "wtf/FastMalloc.h" 78 #include "sky/engine/core/dom/ExceptionCode.h"
81 #include <limits> 79 #include "sky/engine/core/html/canvas/WebGLRenderingContext.h"
80 #include "sky/engine/platform/NotImplemented.h"
81 #include "sky/engine/wtf/FastMalloc.h"
82 82
83 namespace blink { 83 namespace blink {
84 84
85 // Allocates new storage via fastMalloc. 85 // Allocates new storage via fastMalloc.
86 // Returns 0 if array failed to convert for any reason. 86 // Returns 0 if array failed to convert for any reason.
87 static float* jsArrayToFloatArray(v8::Handle<v8::Array> array, uint32_t len, Exc eptionState& exceptionState) 87 static float* jsArrayToFloatArray(v8::Handle<v8::Array> array, uint32_t len, Exc eptionState& exceptionState)
88 { 88 {
89 // Convert the data element-by-element. 89 // Convert the data element-by-element.
90 if (len > std::numeric_limits<uint32_t>::max() / sizeof(float)) { 90 if (len > std::numeric_limits<uint32_t>::max() / sizeof(float)) {
91 exceptionState.throwTypeError("Array length exceeds supported limit."); 91 exceptionState.throwTypeError("Array length exceeds supported limit.");
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 vertexAttribAndUniformHelperf(info, kVertexAttrib3v, exceptionState); 821 vertexAttribAndUniformHelperf(info, kVertexAttrib3v, exceptionState);
822 } 822 }
823 823
824 void V8WebGLRenderingContext::vertexAttrib4fvMethodCustom(const v8::FunctionCall backInfo<v8::Value>& info) 824 void V8WebGLRenderingContext::vertexAttrib4fvMethodCustom(const v8::FunctionCall backInfo<v8::Value>& info)
825 { 825 {
826 ExceptionState exceptionState(ExceptionState::ExecutionContext, "vertexAttri b4fv", "WebGLRenderingContext", info.Holder(), info.GetIsolate()); 826 ExceptionState exceptionState(ExceptionState::ExecutionContext, "vertexAttri b4fv", "WebGLRenderingContext", info.Holder(), info.GetIsolate());
827 vertexAttribAndUniformHelperf(info, kVertexAttrib4v, exceptionState); 827 vertexAttribAndUniformHelperf(info, kVertexAttrib4v, exceptionState);
828 } 828 }
829 829
830 } // namespace blink 830 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/bindings/core/v8/custom/V8Uint8ClampedArrayCustom.h ('k') | sky/engine/bindings/core/v8/custom/V8WindowCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698