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

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

Issue 2543313002: ui/gl: rename ClearGLBindings to ShutdownGL (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_ozone.cc ('k') | ui/gl/init/gl_initializer_x11.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 <dwmapi.h> 7 #include <dwmapi.h>
8 8
9 #include "base/at_exit.h" 9 #include "base/at_exit.h"
10 #include "base/base_paths.h" 10 #include "base/base_paths.h"
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 return false; 312 return false;
313 } 313 }
314 314
315 void InitializeDebugGLBindings() { 315 void InitializeDebugGLBindings() {
316 InitializeDebugGLBindingsEGL(); 316 InitializeDebugGLBindingsEGL();
317 InitializeDebugGLBindingsGL(); 317 InitializeDebugGLBindingsGL();
318 InitializeDebugGLBindingsOSMESA(); 318 InitializeDebugGLBindingsOSMESA();
319 InitializeDebugGLBindingsWGL(); 319 InitializeDebugGLBindingsWGL();
320 } 320 }
321 321
322 void ClearGLBindingsPlatform() { 322 void ShutdownGLPlatform() {
323 // TODO(jmadill): Apply to all platforms eventually 323 // TODO(jmadill): Apply to all platforms eventually
324 if (g_angle_platform_shutdown) { 324 if (g_angle_platform_shutdown) {
325 g_angle_platform_shutdown(); 325 g_angle_platform_shutdown();
326 } 326 }
327 327
328 ClearGLBindingsEGL(); 328 ClearBindingsEGL();
329 ClearGLBindingsGL(); 329 ClearBindingsGL();
330 ClearGLBindingsOSMESA(); 330 ClearBindingsOSMESA();
331 ClearGLBindingsWGL(); 331 ClearBindingsWGL();
332 } 332 }
333 333
334 } // namespace init 334 } // namespace init
335 } // namespace gl 335 } // namespace gl
OLDNEW
« no previous file with comments | « ui/gl/init/gl_initializer_ozone.cc ('k') | ui/gl/init/gl_initializer_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698