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

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

Issue 90333003: Remove --enable-gpu-service-logging and --enable-gpu-client-logging (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years 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_glx_api_implementation.h ('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;
11 11
12 void InitializeGLBindingsGLX() { 12 void InitializeGLBindingsGLX() {
13 g_driver_glx.InitializeBindings(); 13 g_driver_glx.InitializeBindings();
14 if (!g_real_glx) { 14 if (!g_real_glx) {
15 g_real_glx = new RealGLXApi(); 15 g_real_glx = new RealGLXApi();
16 } 16 }
17 g_real_glx->Initialize(&g_driver_glx); 17 g_real_glx->Initialize(&g_driver_glx);
18 g_current_glx_context = g_real_glx; 18 g_current_glx_context = g_real_glx;
19 } 19 }
20 20
21 void InitializeGLExtensionBindingsGLX(GLContext* context) { 21 void InitializeGLExtensionBindingsGLX(GLContext* context) {
22 g_driver_glx.InitializeExtensionBindings(context); 22 g_driver_glx.InitializeExtensionBindings(context);
23 } 23 }
24 24
25 void InitializeDebugGLBindingsGLX() {
26 g_driver_glx.InitializeDebugBindings();
27 }
28
29 void ClearGLBindingsGLX() { 25 void ClearGLBindingsGLX() {
30 if (g_real_glx) { 26 if (g_real_glx) {
31 delete g_real_glx; 27 delete g_real_glx;
32 g_real_glx = NULL; 28 g_real_glx = NULL;
33 } 29 }
34 g_current_glx_context = NULL; 30 g_current_glx_context = NULL;
35 g_driver_glx.ClearBindings(); 31 g_driver_glx.ClearBindings();
36 } 32 }
37 33
38 GLXApi::GLXApi() { 34 GLXApi::GLXApi() {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 if (version) 76 if (version)
81 info->version = version; 77 info->version = version;
82 if (extensions) 78 if (extensions)
83 info->extensions = extensions; 79 info->extensions = extensions;
84 return true; 80 return true;
85 } 81 }
86 82
87 } // namespace gfx 83 } // namespace gfx
88 84
89 85
OLDNEW
« no previous file with comments | « ui/gl/gl_glx_api_implementation.h ('k') | ui/gl/gl_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698