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

Side by Side Diff: gpu/command_buffer/client/share_group.cc

Issue 10581029: Make GL_CHROMIUM_consistent_uniform_locations slighty more robust (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « gpu/command_buffer/client/share_group.h ('k') | gpu/command_buffer/cmd_buffer_functions.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "../client/atomicops.h" 5 #include "../client/atomicops.h"
6 #include "../client/share_group.h" 6 #include "../client/share_group.h"
7 #include "../client/gles2_implementation.h" 7 #include "../client/gles2_implementation.h"
8 #include "../client/program_info_manager.h" 8 #include "../client/program_info_manager.h"
9 #include "../common/id_allocator.h" 9 #include "../common/id_allocator.h"
10 #include "../common/logging.h" 10 #include "../common/logging.h"
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 } 221 }
222 } 222 }
223 program_info_manager_.reset(ProgramInfoManager::Create(false)); 223 program_info_manager_.reset(ProgramInfoManager::Create(false));
224 } 224 }
225 225
226 void ShareGroup::SetGLES2ImplementationForDestruction( 226 void ShareGroup::SetGLES2ImplementationForDestruction(
227 GLES2Implementation* gl_impl) { 227 GLES2Implementation* gl_impl) {
228 gles2_ = gl_impl; 228 gles2_ = gl_impl;
229 } 229 }
230 230
231 void ShareGroup::set_program_info_manager(ProgramInfoManager* manager) {
232 program_info_manager_.reset(manager);
233 }
234
231 ShareGroup::~ShareGroup() { 235 ShareGroup::~ShareGroup() {
232 for (int i = 0; i < id_namespaces::kNumIdNamespaces; ++i) { 236 for (int i = 0; i < id_namespaces::kNumIdNamespaces; ++i) {
233 id_handlers_[i]->Destroy(gles2_); 237 id_handlers_[i]->Destroy(gles2_);
234 id_handlers_[i].reset(); 238 id_handlers_[i].reset();
235 } 239 }
236 } 240 }
237 241
238 } // namespace gles2 242 } // namespace gles2
239 } // namespace gpu 243 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/share_group.h ('k') | gpu/command_buffer/cmd_buffer_functions.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698