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

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 months 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "modules/webgl/WebGL2RenderingContext.h" 5 #include "modules/webgl/WebGL2RenderingContext.h"
6 6
7 #include <memory>
7 #include "bindings/modules/v8/OffscreenCanvasRenderingContext2DOrWebGLRenderingC ontextOrWebGL2RenderingContext.h" 8 #include "bindings/modules/v8/OffscreenCanvasRenderingContext2DOrWebGLRenderingC ontextOrWebGL2RenderingContext.h"
8 #include "bindings/modules/v8/RenderingContext.h" 9 #include "bindings/modules/v8/RenderingContext.h"
9 #include "core/frame/LocalFrame.h" 10 #include "core/frame/LocalFrame.h"
10 #include "core/frame/Settings.h" 11 #include "core/frame/Settings.h"
11 #include "core/loader/FrameLoader.h" 12 #include "core/loader/FrameLoader.h"
12 #include "core/loader/FrameLoaderClient.h" 13 #include "core/loader/FrameLoaderClient.h"
13 #include "gpu/command_buffer/client/gles2_interface.h" 14 #include "gpu/command_buffer/client/gles2_interface.h"
14 #include "modules/webgl/EXTColorBufferFloat.h" 15 #include "modules/webgl/EXTColorBufferFloat.h"
15 #include "modules/webgl/EXTDisjointTimerQueryWebGL2.h" 16 #include "modules/webgl/EXTDisjointTimerQueryWebGL2.h"
16 #include "modules/webgl/EXTTextureFilterAnisotropic.h" 17 #include "modules/webgl/EXTTextureFilterAnisotropic.h"
17 #include "modules/webgl/OESTextureFloatLinear.h" 18 #include "modules/webgl/OESTextureFloatLinear.h"
18 #include "modules/webgl/WebGLCompressedTextureASTC.h" 19 #include "modules/webgl/WebGLCompressedTextureASTC.h"
19 #include "modules/webgl/WebGLCompressedTextureATC.h" 20 #include "modules/webgl/WebGLCompressedTextureATC.h"
20 #include "modules/webgl/WebGLCompressedTextureETC.h" 21 #include "modules/webgl/WebGLCompressedTextureETC.h"
21 #include "modules/webgl/WebGLCompressedTextureETC1.h" 22 #include "modules/webgl/WebGLCompressedTextureETC1.h"
22 #include "modules/webgl/WebGLCompressedTexturePVRTC.h" 23 #include "modules/webgl/WebGLCompressedTexturePVRTC.h"
23 #include "modules/webgl/WebGLCompressedTextureS3TC.h" 24 #include "modules/webgl/WebGLCompressedTextureS3TC.h"
24 #include "modules/webgl/WebGLCompressedTextureS3TCsRGB.h" 25 #include "modules/webgl/WebGLCompressedTextureS3TCsRGB.h"
25 #include "modules/webgl/WebGLContextAttributeHelpers.h" 26 #include "modules/webgl/WebGLContextAttributeHelpers.h"
26 #include "modules/webgl/WebGLContextEvent.h" 27 #include "modules/webgl/WebGLContextEvent.h"
27 #include "modules/webgl/WebGLDebugRendererInfo.h" 28 #include "modules/webgl/WebGLDebugRendererInfo.h"
28 #include "modules/webgl/WebGLDebugShaders.h" 29 #include "modules/webgl/WebGLDebugShaders.h"
29 #include "modules/webgl/WebGLGetBufferSubDataAsync.h" 30 #include "modules/webgl/WebGLGetBufferSubDataAsync.h"
30 #include "modules/webgl/WebGLLoseContext.h" 31 #include "modules/webgl/WebGLLoseContext.h"
31 #include "platform/graphics/gpu/DrawingBuffer.h" 32 #include "platform/graphics/gpu/DrawingBuffer.h"
32 #include "public/platform/Platform.h" 33 #include "public/platform/Platform.h"
33 #include "public/platform/WebGraphicsContext3DProvider.h" 34 #include "public/platform/WebGraphicsContext3DProvider.h"
34 #include <memory>
35 35
36 namespace blink { 36 namespace blink {
37 37
38 // An helper function for the two create() methods. The return value is an 38 // An helper function for the two create() methods. The return value is an
39 // indicate of whether the create() should return nullptr or not. 39 // indicate of whether the create() should return nullptr or not.
40 static bool shouldCreateContext(WebGraphicsContext3DProvider* contextProvider, 40 static bool shouldCreateContext(WebGraphicsContext3DProvider* contextProvider,
41 HTMLCanvasElement* canvas, 41 HTMLCanvasElement* canvas,
42 OffscreenCanvas* offscreenCanvas) { 42 OffscreenCanvas* offscreenCanvas) {
43 if (!contextProvider) { 43 if (!contextProvider) {
44 if (canvas) { 44 if (canvas) {
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 visitor->trace(m_webglLoseContext); 191 visitor->trace(m_webglLoseContext);
192 WebGL2RenderingContextBase::trace(visitor); 192 WebGL2RenderingContextBase::trace(visitor);
193 } 193 }
194 194
195 DEFINE_TRACE_WRAPPERS(WebGL2RenderingContext) { 195 DEFINE_TRACE_WRAPPERS(WebGL2RenderingContext) {
196 // Extensions are managed by WebGL2RenderingContextBase. 196 // Extensions are managed by WebGL2RenderingContextBase.
197 WebGL2RenderingContextBase::traceWrappers(visitor); 197 WebGL2RenderingContextBase::traceWrappers(visitor);
198 } 198 }
199 199
200 } // namespace blink 200 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698