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

Side by Side Diff: ui/gl/gl_implementation_ozone.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_implementation_mac.cc ('k') | ui/gl/gl_implementation_win.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 "base/bind.h" 5 #include "base/bind.h"
6 #include "ui/gfx/ozone/surface_factory_ozone.h" 6 #include "ui/gfx/ozone/surface_factory_ozone.h"
7 #include "ui/gl/gl_bindings.h" 7 #include "ui/gl/gl_bindings.h"
8 #include "ui/gl/gl_egl_api_implementation.h" 8 #include "ui/gl/gl_egl_api_implementation.h"
9 #include "ui/gl/gl_gl_api_implementation.h" 9 #include "ui/gl/gl_gl_api_implementation.h"
10 #include "ui/gl/gl_implementation.h" 10 #include "ui/gl/gl_implementation.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 case kGLImplementationMockGL: 86 case kGLImplementationMockGL:
87 InitializeGLExtensionBindingsGL(context); 87 InitializeGLExtensionBindingsGL(context);
88 break; 88 break;
89 default: 89 default:
90 return false; 90 return false;
91 } 91 }
92 92
93 return true; 93 return true;
94 } 94 }
95 95
96 void InitializeDebugGLBindings() {
97 }
98
99 void ClearGLBindings() { 96 void ClearGLBindings() {
100 ClearGLBindingsEGL(); 97 ClearGLBindingsEGL();
101 ClearGLBindingsGL(); 98 ClearGLBindingsGL();
102 SetGLImplementation(kGLImplementationNone); 99 SetGLImplementation(kGLImplementationNone);
103 UnloadGLNativeLibraries(); 100 UnloadGLNativeLibraries();
104 } 101 }
105 102
106 bool GetGLWindowSystemBindingInfo(GLWindowSystemBindingInfo* info) { 103 bool GetGLWindowSystemBindingInfo(GLWindowSystemBindingInfo* info) {
107 switch (GetGLImplementation()) { 104 switch (GetGLImplementation()) {
108 case kGLImplementationEGLGLES2: 105 case kGLImplementationEGLGLES2:
109 return GetGLWindowSystemBindingInfoEGL(info); 106 return GetGLWindowSystemBindingInfoEGL(info);
110 default: 107 default:
111 return false; 108 return false;
112 } 109 }
113 return false; 110 return false;
114 } 111 }
115 112
116 } // namespace gfx 113 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gl/gl_implementation_mac.cc ('k') | ui/gl/gl_implementation_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698