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

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

Issue 15890002: Display GL window system binding information in about:gpu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed typo in unit test. Created 7 years, 6 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_win.cc ('k') | ui/gl/gl_wgl_api_implementation.h » ('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 <vector> 5 #include <vector>
6 6
7 #include "base/base_paths.h" 7 #include "base/base_paths.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 void ClearGLBindings() { 222 void ClearGLBindings() {
223 ClearGLBindingsEGL(); 223 ClearGLBindingsEGL();
224 ClearGLBindingsGL(); 224 ClearGLBindingsGL();
225 ClearGLBindingsGLX(); 225 ClearGLBindingsGLX();
226 ClearGLBindingsOSMESA(); 226 ClearGLBindingsOSMESA();
227 SetGLImplementation(kGLImplementationNone); 227 SetGLImplementation(kGLImplementationNone);
228 228
229 UnloadGLNativeLibraries(); 229 UnloadGLNativeLibraries();
230 } 230 }
231 231
232 bool GetGLWindowSystemBindingInfo(GLWindowSystemBindingInfo* info) {
233 switch (GetGLImplementation()) {
234 case kGLImplementationDesktopGL:
235 return GetGLWindowSystemBindingInfoGLX(info);
236 case kGLImplementationEGLGLES2:
237 return GetGLWindowSystemBindingInfoEGL(info);
238 default:
239 return false;
240 }
241 return false;
242 }
243
232 } // namespace gfx 244 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gl/gl_implementation_win.cc ('k') | ui/gl/gl_wgl_api_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698