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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 texture_manager_->set_framebuffer_manager(NULL); | 256 texture_manager_->set_framebuffer_manager(NULL); |
257 framebuffer_manager_.reset(); | 257 framebuffer_manager_.reset(); |
258 } | 258 } |
259 | 259 |
260 if (renderbuffer_manager_ != NULL) { | 260 if (renderbuffer_manager_ != NULL) { |
261 renderbuffer_manager_->Destroy(have_context); | 261 renderbuffer_manager_->Destroy(have_context); |
262 renderbuffer_manager_.reset(); | 262 renderbuffer_manager_.reset(); |
263 } | 263 } |
264 | 264 |
265 if (texture_manager_ != NULL) { | 265 if (texture_manager_ != NULL) { |
266 mailbox_manager_->DestroyOwnedTextures(texture_manager_.get(), | |
267 have_context); | |
268 texture_manager_->Destroy(have_context); | 266 texture_manager_->Destroy(have_context); |
269 texture_manager_.reset(); | 267 texture_manager_.reset(); |
270 } | 268 } |
271 | 269 |
272 if (program_manager_ != NULL) { | 270 if (program_manager_ != NULL) { |
273 program_manager_->Destroy(have_context); | 271 program_manager_->Destroy(have_context); |
274 program_manager_.reset(); | 272 program_manager_.reset(); |
275 } | 273 } |
276 | 274 |
277 if (shader_manager_ != NULL) { | 275 if (shader_manager_ != NULL) { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 GLenum pname, GLint min_required, uint32* v) { | 340 GLenum pname, GLint min_required, uint32* v) { |
343 uint32 value = 0; | 341 uint32 value = 0; |
344 GetIntegerv(pname, &value); | 342 GetIntegerv(pname, &value); |
345 bool result = CheckGLFeatureU(min_required, &value); | 343 bool result = CheckGLFeatureU(min_required, &value); |
346 *v = value; | 344 *v = value; |
347 return result; | 345 return result; |
348 } | 346 } |
349 | 347 |
350 } // namespace gles2 | 348 } // namespace gles2 |
351 } // namespace gpu | 349 } // namespace gpu |
OLD | NEW |