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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
317 if (program_manager_ != NULL) { | 317 if (program_manager_ != NULL) { |
318 program_manager_->Destroy(have_context); | 318 program_manager_->Destroy(have_context); |
319 program_manager_.reset(); | 319 program_manager_.reset(); |
320 } | 320 } |
321 | 321 |
322 if (shader_manager_ != NULL) { | 322 if (shader_manager_ != NULL) { |
323 shader_manager_->Destroy(have_context); | 323 shader_manager_->Destroy(have_context); |
324 shader_manager_.reset(); | 324 shader_manager_.reset(); |
325 } | 325 } |
326 | 326 |
327 if (image_manager_ != NULL) { | |
328 image_manager_->Destroy(have_context); | |
329 } | |
330 | |
sohanjg
2014/06/02 13:59:42
if we try "removing ref counting from the image ma
reveman
2014/06/02 14:34:47
I think we just have to wait for Create/DeleteImag
| |
327 memory_tracker_ = NULL; | 331 memory_tracker_ = NULL; |
328 } | 332 } |
329 | 333 |
330 IdAllocatorInterface* ContextGroup::GetIdAllocator(unsigned namespace_id) { | 334 IdAllocatorInterface* ContextGroup::GetIdAllocator(unsigned namespace_id) { |
331 if (namespace_id >= arraysize(id_namespaces_)) | 335 if (namespace_id >= arraysize(id_namespaces_)) |
332 return NULL; | 336 return NULL; |
333 | 337 |
334 return id_namespaces_[namespace_id].get(); | 338 return id_namespaces_[namespace_id].get(); |
335 } | 339 } |
336 | 340 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
387 GLenum pname, GLint min_required, uint32* v) { | 391 GLenum pname, GLint min_required, uint32* v) { |
388 uint32 value = 0; | 392 uint32 value = 0; |
389 GetIntegerv(pname, &value); | 393 GetIntegerv(pname, &value); |
390 bool result = CheckGLFeatureU(min_required, &value); | 394 bool result = CheckGLFeatureU(min_required, &value); |
391 *v = value; | 395 *v = value; |
392 return result; | 396 return result; |
393 } | 397 } |
394 | 398 |
395 } // namespace gles2 | 399 } // namespace gles2 |
396 } // namespace gpu | 400 } // namespace gpu |
OLD | NEW |