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

Side by Side Diff: ui/gl/init/gl_factory.cc

Issue 2099163003: Revert of Move static GL binding initialization to //ui/gl/init. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « ui/gl/init/gl_factory.h ('k') | ui/gl/init/gl_initializer.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/init/gl_factory.h" 5 #include "ui/gl/init/gl_factory.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 DVLOG(1) << "Using " << GetGLImplementationName(GetGLImplementation()) 76 DVLOG(1) << "Using " << GetGLImplementationName(GetGLImplementation())
77 << " GL implementation."; 77 << " GL implementation.";
78 if (gpu_service_logging) 78 if (gpu_service_logging)
79 InitializeDebugGLBindings(); 79 InitializeDebugGLBindings();
80 if (disable_gl_drawing) 80 if (disable_gl_drawing)
81 InitializeNullDrawGLBindings(); 81 InitializeNullDrawGLBindings();
82 } 82 }
83 return initialized; 83 return initialized;
84 } 84 }
85 85
86 void ClearGLBindings() {
87 ClearGLBindingsPlatform();
88
89 SetGLImplementation(kGLImplementationNone);
90 UnloadGLNativeLibraries();
91 }
92
93 } // namespace init 86 } // namespace init
94 } // namespace gl 87 } // namespace gl
OLDNEW
« no previous file with comments | « ui/gl/init/gl_factory.h ('k') | ui/gl/init/gl_initializer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698