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

Side by Side Diff: gpu/blink/webgraphicscontext3d_impl.cc

Issue 972713002: gpu/blink: Cleanup - Remove 'using' declarations from webgraphicscontext3d_impl.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review + REBASE Created 5 years, 9 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "gpu/blink/webgraphicscontext3d_impl.h" 5 #include "gpu/blink/webgraphicscontext3d_impl.h"
6 6
7 #include "base/atomicops.h" 7 #include "base/atomicops.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "gpu/GLES2/gl2extchromium.h" 10 #include "gpu/GLES2/gl2extchromium.h"
11 #include "gpu/command_buffer/client/gles2_implementation.h" 11 #include "gpu/command_buffer/client/gles2_implementation.h"
12 #include "gpu/command_buffer/client/gles2_lib.h" 12 #include "gpu/command_buffer/client/gles2_lib.h"
13 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 13 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
14 #include "gpu/skia_bindings/gl_bindings_skia_cmd_buffer.h" 14 #include "gpu/skia_bindings/gl_bindings_skia_cmd_buffer.h"
15 15
16 #include "third_party/khronos/GLES2/gl2.h" 16 #include "third_party/khronos/GLES2/gl2.h"
17 #ifndef GL_GLEXT_PROTOTYPES 17 #ifndef GL_GLEXT_PROTOTYPES
18 #define GL_GLEXT_PROTOTYPES 1 18 #define GL_GLEXT_PROTOTYPES 1
19 #endif 19 #endif
20 #include "third_party/khronos/GLES2/gl2ext.h" 20 #include "third_party/khronos/GLES2/gl2ext.h"
21 21
22 using blink::WGC3Dbitfield;
23 using blink::WGC3Dboolean;
24 using blink::WGC3Dbyte;
25 using blink::WGC3Dchar;
26 using blink::WGC3Dclampf;
27 using blink::WGC3Denum;
28 using blink::WGC3Dfloat;
29 using blink::WGC3Dint;
30 using blink::WGC3Dintptr;
31 using blink::WGC3Dsizei;
32 using blink::WGC3Dsizeiptr;
33 using blink::WGC3Duint64;
34 using blink::WGC3Duint;
35 using blink::WebGLId;
36
22 namespace gpu_blink { 37 namespace gpu_blink {
23 38
24 namespace { 39 namespace {
25 40
26 uint32_t GenFlushID() { 41 uint32_t GenFlushID() {
27 static base::subtle::Atomic32 flush_id = 0; 42 static base::subtle::Atomic32 flush_id = 0;
28 43
29 base::subtle::Atomic32 my_id = base::subtle::Barrier_AtomicIncrement( 44 base::subtle::Atomic32 my_id = base::subtle::Barrier_AtomicIncrement(
30 &flush_id, 1); 45 &flush_id, 1);
31 return static_cast<uint32_t>(my_id); 46 return static_cast<uint32_t>(my_id);
(...skipping 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after
1212 output_attribs->samples = attributes.antialias ? 4 : 0; 1227 output_attribs->samples = attributes.antialias ? 4 : 0;
1213 output_attribs->sample_buffers = attributes.antialias ? 1 : 0; 1228 output_attribs->sample_buffers = attributes.antialias ? 1 : 0;
1214 output_attribs->fail_if_major_perf_caveat = 1229 output_attribs->fail_if_major_perf_caveat =
1215 attributes.failIfMajorPerformanceCaveat; 1230 attributes.failIfMajorPerformanceCaveat;
1216 output_attribs->bind_generates_resource = false; 1231 output_attribs->bind_generates_resource = false;
1217 output_attribs->es3_context_required = 1232 output_attribs->es3_context_required =
1218 (attributes.webGL && attributes.webGLVersion == 2); 1233 (attributes.webGL && attributes.webGLVersion == 2);
1219 } 1234 }
1220 1235
1221 } // namespace gpu_blink 1236 } // namespace gpu_blink
OLDNEW
« no previous file with comments | « gpu/blink/webgraphicscontext3d_impl.h ('k') | gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698