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

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

Issue 194303002: Blacklist GLX indirect rendering (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android Created 6 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 | Annotate | Revision Log
« no previous file with comments | « gpu/config/software_rendering_list_json.cc ('k') | ui/gl/gl_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 "ui/gl/gl_glx_api_implementation.h" 5 #include "ui/gl/gl_glx_api_implementation.h"
6 #include "ui/gl/gl_implementation.h" 6 #include "ui/gl/gl_implementation.h"
7 7
8 namespace gfx { 8 namespace gfx {
9 9
10 RealGLXApi* g_real_glx; 10 RealGLXApi* g_real_glx;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 glXQueryServerString(display, kDefaultScreen, GLX_VERSION); 74 glXQueryServerString(display, kDefaultScreen, GLX_VERSION);
75 const char* extensions = 75 const char* extensions =
76 glXQueryServerString(display, kDefaultScreen, GLX_EXTENSIONS); 76 glXQueryServerString(display, kDefaultScreen, GLX_EXTENSIONS);
77 *info = GLWindowSystemBindingInfo(); 77 *info = GLWindowSystemBindingInfo();
78 if (vendor) 78 if (vendor)
79 info->vendor = vendor; 79 info->vendor = vendor;
80 if (version) 80 if (version)
81 info->version = version; 81 info->version = version;
82 if (extensions) 82 if (extensions)
83 info->extensions = extensions; 83 info->extensions = extensions;
84 info->direct_rendering = !!glXIsDirect(display, glXGetCurrentContext());
84 return true; 85 return true;
85 } 86 }
86 87
87 } // namespace gfx 88 } // namespace gfx
88 89
89 90
OLDNEW
« no previous file with comments | « gpu/config/software_rendering_list_json.cc ('k') | ui/gl/gl_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698