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

Side by Side Diff: ui/gl/gl_implementation.cc

Issue 132473009: Allow tests to stub out GL draw calls. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: stubglbindings: nulldraw Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « ui/gl/gl_implementation.h ('k') | ui/gl/gl_surface.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "ui/gl/gl_implementation.h" 5 #include "ui/gl/gl_implementation.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/at_exit.h" 10 #include "base/at_exit.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "ui/gl/gl_bindings.h" 13 #include "ui/gl/gl_bindings.h"
14 #include "ui/gl/gl_gl_api_implementation.h"
14 15
15 namespace gfx { 16 namespace gfx {
16 17
17 namespace { 18 namespace {
18 19
19 const struct { 20 const struct {
20 const char* name; 21 const char* name;
21 GLImplementation implementation; 22 GLImplementation implementation;
22 } kGLImplementationNamePairs[] = { 23 } kGLImplementationNamePairs[] = {
23 { kGLImplementationDesktopName, kGLImplementationDesktopGL }, 24 { kGLImplementationDesktopName, kGLImplementationDesktopGL },
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 void* proc = GetGLCoreProcAddress(name); 165 void* proc = GetGLCoreProcAddress(name);
165 if (!proc && g_get_proc_address) { 166 if (!proc && g_get_proc_address) {
166 proc = g_get_proc_address(name); 167 proc = g_get_proc_address(name);
167 if (proc) 168 if (proc)
168 return proc; 169 return proc;
169 } 170 }
170 171
171 return proc; 172 return proc;
172 } 173 }
173 174
175 void InitializeNullDrawGLBindings() {
176 // This is platform independent, so it does not need to live in a platform
177 // specific implementation file.
178 InitializeNullDrawGLBindingsGL();
179 }
180
174 } // namespace gfx 181 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gl/gl_implementation.h ('k') | ui/gl/gl_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698