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

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

Issue 2548253003: Revert of ui/gl: Initialize the ANGLE Platform on all configurations (Closed)
Patch Set: Created 4 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
« no previous file with comments | « ui/gl/init/gl_initializer_android.cc ('k') | ui/gl/init/gl_initializer_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 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_initializer.h" 5 #include "ui/gl/init/gl_initializer.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/gl/gl_bindings.h" 8 #include "ui/gl/gl_bindings.h"
9 #include "ui/gl/gl_egl_api_implementation.h" 9 #include "ui/gl/gl_egl_api_implementation.h"
10 #include "ui/gl/gl_gl_api_implementation.h" 10 #include "ui/gl/gl_gl_api_implementation.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 GetGLOzone()->InitializeDebugGLBindings(); 85 GetGLOzone()->InitializeDebugGLBindings();
86 return; 86 return;
87 } 87 }
88 88
89 InitializeDebugGLBindingsEGL(); 89 InitializeDebugGLBindingsEGL();
90 InitializeDebugGLBindingsGL(); 90 InitializeDebugGLBindingsGL();
91 InitializeDebugGLBindingsOSMESA(); 91 InitializeDebugGLBindingsOSMESA();
92 } 92 }
93 93
94 void ShutdownGLPlatform() { 94 void ShutdownGLPlatform() {
95 GLSurfaceEGL::ShutdownOneOff();
96 if (HasGLOzone()) { 95 if (HasGLOzone()) {
97 GetGLOzone()->ShutdownGL(); 96 GetGLOzone()->ShutdownGL();
98 return; 97 return;
99 } 98 }
100 99
101 ClearBindingsEGL(); 100 ClearBindingsEGL();
102 ClearBindingsGL(); 101 ClearBindingsGL();
103 ClearBindingsOSMESA(); 102 ClearBindingsOSMESA();
104 } 103 }
105 104
106 } // namespace init 105 } // namespace init
107 } // namespace gl 106 } // namespace gl
OLDNEW
« no previous file with comments | « ui/gl/init/gl_initializer_android.cc ('k') | ui/gl/init/gl_initializer_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698