Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: gpu/command_buffer/service/context_group.cc

Issue 12717013: Add reference-counting for mailbox textures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add optional 'pool' reference while textures are in mailbox Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 framebuffer_manager_->Destroy(have_context); 253 framebuffer_manager_->Destroy(have_context);
254 framebuffer_manager_.reset(); 254 framebuffer_manager_.reset();
255 } 255 }
256 256
257 if (renderbuffer_manager_ != NULL) { 257 if (renderbuffer_manager_ != NULL) {
258 renderbuffer_manager_->Destroy(have_context); 258 renderbuffer_manager_->Destroy(have_context);
259 renderbuffer_manager_.reset(); 259 renderbuffer_manager_.reset();
260 } 260 }
261 261
262 if (texture_manager_ != NULL) { 262 if (texture_manager_ != NULL) {
263 mailbox_manager_->DestroyOwnedTextures(texture_manager_.get(),
264 have_context);
265 texture_manager_->Destroy(have_context); 263 texture_manager_->Destroy(have_context);
266 texture_manager_.reset(); 264 texture_manager_.reset();
267 } 265 }
268 266
269 if (program_manager_ != NULL) { 267 if (program_manager_ != NULL) {
270 program_manager_->Destroy(have_context); 268 program_manager_->Destroy(have_context);
271 program_manager_.reset(); 269 program_manager_.reset();
272 } 270 }
273 271
274 if (shader_manager_ != NULL) { 272 if (shader_manager_ != NULL) {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 GLenum pname, GLint min_required, uint32* v) { 337 GLenum pname, GLint min_required, uint32* v) {
340 uint32 value = 0; 338 uint32 value = 0;
341 GetIntegerv(pname, &value); 339 GetIntegerv(pname, &value);
342 bool result = CheckGLFeatureU(min_required, &value); 340 bool result = CheckGLFeatureU(min_required, &value);
343 *v = value; 341 *v = value;
344 return result; 342 return result;
345 } 343 }
346 344
347 } // namespace gles2 345 } // namespace gles2
348 } // namespace gpu 346 } // namespace gpu
OLDNEW
« no previous file with comments | « content/common/gpu/texture_image_transport_surface.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698