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

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.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/WebGL2RenderingContextBase.h" 5 #include "modules/webgl/WebGL2RenderingContextBase.h"
6 6
7 #include <memory>
7 #include "bindings/modules/v8/WebGLAny.h" 8 #include "bindings/modules/v8/WebGLAny.h"
8 #include "core/frame/ImageBitmap.h" 9 #include "core/frame/ImageBitmap.h"
9 #include "core/html/HTMLCanvasElement.h" 10 #include "core/html/HTMLCanvasElement.h"
10 #include "core/html/HTMLImageElement.h" 11 #include "core/html/HTMLImageElement.h"
11 #include "core/html/HTMLVideoElement.h" 12 #include "core/html/HTMLVideoElement.h"
12 #include "core/html/ImageData.h" 13 #include "core/html/ImageData.h"
13 #include "gpu/command_buffer/client/gles2_interface.h" 14 #include "gpu/command_buffer/client/gles2_interface.h"
14 #include "modules/webgl/WebGLActiveInfo.h" 15 #include "modules/webgl/WebGLActiveInfo.h"
15 #include "modules/webgl/WebGLBuffer.h" 16 #include "modules/webgl/WebGLBuffer.h"
16 #include "modules/webgl/WebGLFenceSync.h" 17 #include "modules/webgl/WebGLFenceSync.h"
17 #include "modules/webgl/WebGLFramebuffer.h" 18 #include "modules/webgl/WebGLFramebuffer.h"
18 #include "modules/webgl/WebGLGetBufferSubDataAsync.h" 19 #include "modules/webgl/WebGLGetBufferSubDataAsync.h"
19 #include "modules/webgl/WebGLProgram.h" 20 #include "modules/webgl/WebGLProgram.h"
20 #include "modules/webgl/WebGLQuery.h" 21 #include "modules/webgl/WebGLQuery.h"
21 #include "modules/webgl/WebGLRenderbuffer.h" 22 #include "modules/webgl/WebGLRenderbuffer.h"
22 #include "modules/webgl/WebGLSampler.h" 23 #include "modules/webgl/WebGLSampler.h"
23 #include "modules/webgl/WebGLSync.h" 24 #include "modules/webgl/WebGLSync.h"
24 #include "modules/webgl/WebGLTexture.h" 25 #include "modules/webgl/WebGLTexture.h"
25 #include "modules/webgl/WebGLTransformFeedback.h" 26 #include "modules/webgl/WebGLTransformFeedback.h"
26 #include "modules/webgl/WebGLUniformLocation.h" 27 #include "modules/webgl/WebGLUniformLocation.h"
27 #include "modules/webgl/WebGLVertexArrayObject.h" 28 #include "modules/webgl/WebGLVertexArrayObject.h"
28 #include "public/platform/WebGraphicsContext3DProvider.h" 29 #include "public/platform/WebGraphicsContext3DProvider.h"
29 #include "wtf/CheckedNumeric.h" 30 #include "wtf/CheckedNumeric.h"
30 #include "wtf/PtrUtil.h" 31 #include "wtf/PtrUtil.h"
31 #include "wtf/text/WTFString.h" 32 #include "wtf/text/WTFString.h"
32 #include <memory>
33 33
34 using WTF::String; 34 using WTF::String;
35 35
36 namespace blink { 36 namespace blink {
37 37
38 namespace { 38 namespace {
39 39
40 const GLuint64 kMaxClientWaitTimeout = 0u; 40 const GLuint64 kMaxClientWaitTimeout = 0u;
41 41
42 GLsync syncObjectOrZero(const WebGLSync* object) { 42 GLsync syncObjectOrZero(const WebGLSync* object) {
(...skipping 5550 matching lines...) Expand 10 before | Expand all | Expand 10 after
5593 5593
5594 void WebGL2RenderingContextBase:: 5594 void WebGL2RenderingContextBase::
5595 DrawingBufferClientRestorePixelUnpackBufferBinding() { 5595 DrawingBufferClientRestorePixelUnpackBufferBinding() {
5596 if (!contextGL()) 5596 if (!contextGL())
5597 return; 5597 return;
5598 contextGL()->BindBuffer(GL_PIXEL_UNPACK_BUFFER, 5598 contextGL()->BindBuffer(GL_PIXEL_UNPACK_BUFFER,
5599 objectOrZero(m_boundPixelUnpackBuffer.get())); 5599 objectOrZero(m_boundPixelUnpackBuffer.get()));
5600 } 5600 }
5601 5601
5602 } // namespace blink 5602 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698