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

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

Issue 895853003: Update from https://crrev.com/314320 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
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 <stack> 5 #include <stack>
6 #include <vector> 6 #include <vector>
7 7
8 #include "gpu/command_buffer/client/share_group.h" 8 #include "gpu/command_buffer/client/share_group.h"
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 } 331 }
332 } else { 332 } else {
333 for (int i = 0; i < id_namespaces::kNumIdNamespaces; ++i) { 333 for (int i = 0; i < id_namespaces::kNumIdNamespaces; ++i) {
334 if (i == id_namespaces::kProgramsAndShaders) { 334 if (i == id_namespaces::kProgramsAndShaders) {
335 id_handlers_[i].reset(new NonReusedIdHandler()); 335 id_handlers_[i].reset(new NonReusedIdHandler());
336 } else { 336 } else {
337 id_handlers_[i].reset(new StrictIdHandler(i)); 337 id_handlers_[i].reset(new StrictIdHandler(i));
338 } 338 }
339 } 339 }
340 } 340 }
341 program_info_manager_.reset(ProgramInfoManager::Create(false)); 341 program_info_manager_.reset(new ProgramInfoManager);
342 } 342 }
343 343
344 void ShareGroup::set_program_info_manager(ProgramInfoManager* manager) { 344 void ShareGroup::set_program_info_manager(ProgramInfoManager* manager) {
345 program_info_manager_.reset(manager); 345 program_info_manager_.reset(manager);
346 } 346 }
347 347
348 ShareGroup::~ShareGroup() {} 348 ShareGroup::~ShareGroup() {}
349 349
350 } // namespace gles2 350 } // namespace gles2
351 } // namespace gpu 351 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/program_info_manager_unittest.cc ('k') | gpu/command_buffer/client/transfer_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698