| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |