OLD | NEW |
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 "ui/gl/gl_gl_api_implementation.h" | 5 #include "ui/gl/gl_gl_api_implementation.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "ui/gl/gl_context.h" | 12 #include "ui/gl/gl_context.h" |
13 #include "ui/gl/gl_implementation.h" | 13 #include "ui/gl/gl_implementation.h" |
14 #include "ui/gl/gl_state_restorer.h" | 14 #include "ui/gl/gl_state_restorer.h" |
15 #include "ui/gl/gl_surface.h" | 15 #include "ui/gl/gl_surface.h" |
16 #include "ui/gl/gl_switches.h" | 16 #include "ui/gl/gl_switches.h" |
17 | 17 |
18 namespace gfx { | 18 namespace gfx { |
19 | 19 |
20 // The GL Api being used. This could be g_real_gl or gl_trace_gl | 20 // The GL Api being used. This could be g_real_gl or gl_trace_gl |
21 static GLApi* g_gl; | 21 static GLApi* g_gl; |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 const GLubyte* VirtualGLApi::glGetStringFn(GLenum name) { | 304 const GLubyte* VirtualGLApi::glGetStringFn(GLenum name) { |
305 switch (name) { | 305 switch (name) { |
306 case GL_EXTENSIONS: | 306 case GL_EXTENSIONS: |
307 return reinterpret_cast<const GLubyte*>(extensions_.c_str()); | 307 return reinterpret_cast<const GLubyte*>(extensions_.c_str()); |
308 default: | 308 default: |
309 return driver_->fn.glGetStringFn(name); | 309 return driver_->fn.glGetStringFn(name); |
310 } | 310 } |
311 } | 311 } |
312 | 312 |
313 } // namespace gfx | 313 } // namespace gfx |
OLD | NEW |