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

Side by Side Diff: ui/gl/gl_gl_api_implementation.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/gl_gl_api_implementation.h ('k') | ui/gl/gl_glx_api_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_gl_api_implementation.h" 5 #include "ui/gl/gl_gl_api_implementation.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 } 442 }
443 443
444 bool HasInitializedNullDrawGLBindingsGL() { 444 bool HasInitializedNullDrawGLBindingsGL() {
445 return g_driver_gl.HasInitializedNullDrawBindings(); 445 return g_driver_gl.HasInitializedNullDrawBindings();
446 } 446 }
447 447
448 bool SetNullDrawGLBindingsEnabledGL(bool enabled) { 448 bool SetNullDrawGLBindingsEnabledGL(bool enabled) {
449 return g_driver_gl.SetNullDrawBindingsEnabled(enabled); 449 return g_driver_gl.SetNullDrawBindingsEnabled(enabled);
450 } 450 }
451 451
452 void ClearGLBindingsGL() { 452 void ClearBindingsGL() {
453 if (g_real_gl) { 453 if (g_real_gl) {
454 delete g_real_gl; 454 delete g_real_gl;
455 g_real_gl = NULL; 455 g_real_gl = NULL;
456 } 456 }
457 if (g_trace_gl) { 457 if (g_trace_gl) {
458 delete g_trace_gl; 458 delete g_trace_gl;
459 g_trace_gl = NULL; 459 g_trace_gl = NULL;
460 } 460 }
461 if (g_no_context_gl) { 461 if (g_no_context_gl) {
462 delete g_no_context_gl; 462 delete g_no_context_gl;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 TraceGLApi::~TraceGLApi() { 586 TraceGLApi::~TraceGLApi() {
587 } 587 }
588 588
589 NoContextGLApi::NoContextGLApi() { 589 NoContextGLApi::NoContextGLApi() {
590 } 590 }
591 591
592 NoContextGLApi::~NoContextGLApi() { 592 NoContextGLApi::~NoContextGLApi() {
593 } 593 }
594 594
595 } // namespace gl 595 } // namespace gl
OLDNEW
« no previous file with comments | « ui/gl/gl_gl_api_implementation.h ('k') | ui/gl/gl_glx_api_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698