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 <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 Loading... |
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 |
OLD | NEW |