| 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_implementation.h" | 5 #include "ui/gl/gl_implementation.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/at_exit.h" | 10 #include "base/at_exit.h" |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 | 142 |
| 143 return NULL; | 143 return NULL; |
| 144 } | 144 } |
| 145 | 145 |
| 146 void InitializeNullDrawGLBindings() { | 146 void InitializeNullDrawGLBindings() { |
| 147 // This is platform independent, so it does not need to live in a platform | 147 // This is platform independent, so it does not need to live in a platform |
| 148 // specific implementation file. | 148 // specific implementation file. |
| 149 InitializeNullDrawGLBindingsGL(); | 149 InitializeNullDrawGLBindingsGL(); |
| 150 } | 150 } |
| 151 | 151 |
| 152 bool HasInitializedNullDrawGLBindings() { |
| 153 return HasInitializedNullDrawGLBindingsGL(); |
| 154 } |
| 155 |
| 152 DisableNullDrawGLBindings::DisableNullDrawGLBindings() { | 156 DisableNullDrawGLBindings::DisableNullDrawGLBindings() { |
| 153 initial_enabled_ = SetNullDrawGLBindingsEnabledGL(false); | 157 initial_enabled_ = SetNullDrawGLBindingsEnabledGL(false); |
| 154 } | 158 } |
| 155 | 159 |
| 156 DisableNullDrawGLBindings::~DisableNullDrawGLBindings() { | 160 DisableNullDrawGLBindings::~DisableNullDrawGLBindings() { |
| 157 SetNullDrawGLBindingsEnabledGL(initial_enabled_); | 161 SetNullDrawGLBindingsEnabledGL(initial_enabled_); |
| 158 } | 162 } |
| 159 | 163 |
| 160 } // namespace gfx | 164 } // namespace gfx |
| OLD | NEW |