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

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

Issue 14188053: gpu: Change Produce/ConsumeTexture to allow texture sharing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « gpu/GLES2/extensions/CHROMIUM/CHROMIUM_texture_mailbox.txt ('k') | gpu/command_buffer/service/framebuffer_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698