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

Side by Side Diff: sky/engine/core/html/canvas/WebGLRenderingContext.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 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution. 11 * documentation and/or other materials provided with the distribution.
12 * 12 *
13 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY 13 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR 16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #include "config.h" 26 #include "sky/engine/config.h"
27 #include "core/html/canvas/WebGLRenderingContext.h" 27 #include "sky/engine/core/html/canvas/WebGLRenderingContext.h"
28 28
29 #include "core/frame/LocalFrame.h" 29 #include "sky/engine/core/frame/LocalFrame.h"
30 #include "core/html/canvas/ANGLEInstancedArrays.h" 30 #include "sky/engine/core/frame/Settings.h"
31 #include "core/html/canvas/EXTBlendMinMax.h" 31 #include "sky/engine/core/html/canvas/ANGLEInstancedArrays.h"
32 #include "core/html/canvas/EXTFragDepth.h" 32 #include "sky/engine/core/html/canvas/EXTBlendMinMax.h"
33 #include "core/html/canvas/EXTShaderTextureLOD.h" 33 #include "sky/engine/core/html/canvas/EXTFragDepth.h"
34 #include "core/html/canvas/EXTTextureFilterAnisotropic.h" 34 #include "sky/engine/core/html/canvas/EXTShaderTextureLOD.h"
35 #include "core/html/canvas/OESElementIndexUint.h" 35 #include "sky/engine/core/html/canvas/EXTTextureFilterAnisotropic.h"
36 #include "core/html/canvas/OESStandardDerivatives.h" 36 #include "sky/engine/core/html/canvas/OESElementIndexUint.h"
37 #include "core/html/canvas/OESTextureFloat.h" 37 #include "sky/engine/core/html/canvas/OESStandardDerivatives.h"
38 #include "core/html/canvas/OESTextureFloatLinear.h" 38 #include "sky/engine/core/html/canvas/OESTextureFloat.h"
39 #include "core/html/canvas/OESTextureHalfFloat.h" 39 #include "sky/engine/core/html/canvas/OESTextureFloatLinear.h"
40 #include "core/html/canvas/OESTextureHalfFloatLinear.h" 40 #include "sky/engine/core/html/canvas/OESTextureHalfFloat.h"
41 #include "core/html/canvas/OESVertexArrayObject.h" 41 #include "sky/engine/core/html/canvas/OESTextureHalfFloatLinear.h"
42 #include "core/html/canvas/WebGLCompressedTextureATC.h" 42 #include "sky/engine/core/html/canvas/OESVertexArrayObject.h"
43 #include "core/html/canvas/WebGLCompressedTextureETC1.h" 43 #include "sky/engine/core/html/canvas/WebGLCompressedTextureATC.h"
44 #include "core/html/canvas/WebGLCompressedTexturePVRTC.h" 44 #include "sky/engine/core/html/canvas/WebGLCompressedTextureETC1.h"
45 #include "core/html/canvas/WebGLCompressedTextureS3TC.h" 45 #include "sky/engine/core/html/canvas/WebGLCompressedTexturePVRTC.h"
46 #include "core/html/canvas/WebGLContextAttributes.h" 46 #include "sky/engine/core/html/canvas/WebGLCompressedTextureS3TC.h"
47 #include "core/html/canvas/WebGLContextEvent.h" 47 #include "sky/engine/core/html/canvas/WebGLContextAttributes.h"
48 #include "core/html/canvas/WebGLDebugRendererInfo.h" 48 #include "sky/engine/core/html/canvas/WebGLContextEvent.h"
49 #include "core/html/canvas/WebGLDebugShaders.h" 49 #include "sky/engine/core/html/canvas/WebGLDebugRendererInfo.h"
50 #include "core/html/canvas/WebGLDepthTexture.h" 50 #include "sky/engine/core/html/canvas/WebGLDebugShaders.h"
51 #include "core/html/canvas/WebGLDrawBuffers.h" 51 #include "sky/engine/core/html/canvas/WebGLDepthTexture.h"
52 #include "core/html/canvas/WebGLLoseContext.h" 52 #include "sky/engine/core/html/canvas/WebGLDrawBuffers.h"
53 #include "core/loader/FrameLoaderClient.h" 53 #include "sky/engine/core/html/canvas/WebGLLoseContext.h"
54 #include "core/frame/Settings.h" 54 #include "sky/engine/core/loader/FrameLoaderClient.h"
55 #include "core/rendering/RenderBox.h" 55 #include "sky/engine/core/rendering/RenderBox.h"
56 #include "platform/CheckedInt.h" 56 #include "sky/engine/platform/CheckedInt.h"
57 #include "platform/NotImplemented.h" 57 #include "sky/engine/platform/NotImplemented.h"
58 #include "platform/graphics/gpu/DrawingBuffer.h" 58 #include "sky/engine/platform/graphics/gpu/DrawingBuffer.h"
59 #include "public/platform/Platform.h" 59 #include "sky/engine/public/platform/Platform.h"
60 60
61 namespace blink { 61 namespace blink {
62 62
63 PassOwnPtr<WebGLRenderingContext> WebGLRenderingContext::create(HTMLCanvasElemen t* canvas, WebGLContextAttributes* attrs) 63 PassOwnPtr<WebGLRenderingContext> WebGLRenderingContext::create(HTMLCanvasElemen t* canvas, WebGLContextAttributes* attrs)
64 { 64 {
65 Document& document = canvas->document(); 65 Document& document = canvas->document();
66 LocalFrame* frame = document.frame(); 66 LocalFrame* frame = document.frame();
67 if (!frame) { 67 if (!frame) {
68 canvas->dispatchEvent(WebGLContextEvent::create(EventTypeNames::webglcon textcreationerror, false, true, "Web page was not allowed to create a WebGL cont ext.")); 68 canvas->dispatchEvent(WebGLContextEvent::create(EventTypeNames::webglcon textcreationerror, false, true, "Web page was not allowed to create a WebGL cont ext."));
69 return nullptr; 69 return nullptr;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 registerExtension<WebGLCompressedTexturePVRTC>(m_webglCompressedTexturePVRTC , ApprovedExtension, bothPrefixes); 132 registerExtension<WebGLCompressedTexturePVRTC>(m_webglCompressedTexturePVRTC , ApprovedExtension, bothPrefixes);
133 registerExtension<WebGLCompressedTextureS3TC>(m_webglCompressedTextureS3TC, ApprovedExtension, bothPrefixes); 133 registerExtension<WebGLCompressedTextureS3TC>(m_webglCompressedTextureS3TC, ApprovedExtension, bothPrefixes);
134 registerExtension<WebGLDebugRendererInfo>(m_webglDebugRendererInfo); 134 registerExtension<WebGLDebugRendererInfo>(m_webglDebugRendererInfo);
135 registerExtension<WebGLDebugShaders>(m_webglDebugShaders); 135 registerExtension<WebGLDebugShaders>(m_webglDebugShaders);
136 registerExtension<WebGLDepthTexture>(m_webglDepthTexture, ApprovedExtension, bothPrefixes); 136 registerExtension<WebGLDepthTexture>(m_webglDepthTexture, ApprovedExtension, bothPrefixes);
137 registerExtension<WebGLDrawBuffers>(m_webglDrawBuffers); 137 registerExtension<WebGLDrawBuffers>(m_webglDrawBuffers);
138 registerExtension<WebGLLoseContext>(m_webglLoseContext, ApprovedExtension, b othPrefixes); 138 registerExtension<WebGLLoseContext>(m_webglLoseContext, ApprovedExtension, b othPrefixes);
139 } 139 }
140 140
141 } // namespace blink 141 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/html/canvas/WebGLRenderingContext.h ('k') | sky/engine/core/html/canvas/WebGLRenderingContextBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698