| 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 "gpu/command_buffer/service/context_group.h" | 5 #include "gpu/command_buffer/service/context_group.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 texture_manager_->set_framebuffer_manager(NULL); | 270 texture_manager_->set_framebuffer_manager(NULL); |
| 271 framebuffer_manager_.reset(); | 271 framebuffer_manager_.reset(); |
| 272 } | 272 } |
| 273 | 273 |
| 274 if (renderbuffer_manager_ != NULL) { | 274 if (renderbuffer_manager_ != NULL) { |
| 275 renderbuffer_manager_->Destroy(have_context); | 275 renderbuffer_manager_->Destroy(have_context); |
| 276 renderbuffer_manager_.reset(); | 276 renderbuffer_manager_.reset(); |
| 277 } | 277 } |
| 278 | 278 |
| 279 if (texture_manager_ != NULL) { | 279 if (texture_manager_ != NULL) { |
| 280 mailbox_manager_->DestroyOwnedTextures(texture_manager_.get(), | |
| 281 have_context); | |
| 282 texture_manager_->Destroy(have_context); | 280 texture_manager_->Destroy(have_context); |
| 283 texture_manager_.reset(); | 281 texture_manager_.reset(); |
| 284 } | 282 } |
| 285 | 283 |
| 286 if (program_manager_ != NULL) { | 284 if (program_manager_ != NULL) { |
| 287 program_manager_->Destroy(have_context); | 285 program_manager_->Destroy(have_context); |
| 288 program_manager_.reset(); | 286 program_manager_.reset(); |
| 289 } | 287 } |
| 290 | 288 |
| 291 if (shader_manager_ != NULL) { | 289 if (shader_manager_ != NULL) { |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 GLenum pname, GLint min_required, uint32* v) { | 354 GLenum pname, GLint min_required, uint32* v) { |
| 357 uint32 value = 0; | 355 uint32 value = 0; |
| 358 GetIntegerv(pname, &value); | 356 GetIntegerv(pname, &value); |
| 359 bool result = CheckGLFeatureU(min_required, &value); | 357 bool result = CheckGLFeatureU(min_required, &value); |
| 360 *v = value; | 358 *v = value; |
| 361 return result; | 359 return result; |
| 362 } | 360 } |
| 363 | 361 |
| 364 } // namespace gles2 | 362 } // namespace gles2 |
| 365 } // namespace gpu | 363 } // namespace gpu |
| OLD | NEW |