| 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" |
| 11 #include "base/synchronization/lock.h" | 11 #include "base/synchronization/lock.h" |
| 12 #include "gpu/command_buffer/client/gles2_implementation.h" | 12 #include "gpu/command_buffer/client/gles2_implementation.h" |
| 13 #include "gpu/command_buffer/client/program_info_manager.h" | 13 #include "gpu/command_buffer/client/program_info_manager.h" |
| 14 #include "gpu/command_buffer/common/id_allocator.h" | 14 #include "gpu/command_buffer/common/id_allocator.h" |
| 15 | 15 |
| 16 namespace gpu { | 16 namespace gpu { |
| 17 namespace gles2 { | 17 namespace gles2 { |
| 18 | 18 |
| 19 ShareGroupContextData::IdHandlerData::IdHandlerData() : flush_generation_(0) {} | 19 ShareGroupContextData::IdHandlerData::IdHandlerData() : flush_generation_(0) {} |
| 20 ShareGroupContextData::IdHandlerData::~IdHandlerData() {} | 20 ShareGroupContextData::IdHandlerData::~IdHandlerData() {} |
| 21 | 21 |
| 22 COMPILE_ASSERT(gpu::kInvalidResource == 0, | 22 static_assert(gpu::kInvalidResource == 0, |
| 23 INVALID_RESOURCE_NOT_0_AS_GL_EXPECTS); | 23 "GL expects kInvalidResource to be 0"); |
| 24 | 24 |
| 25 // The standard id handler. | 25 // The standard id handler. |
| 26 class IdHandler : public IdHandlerInterface { | 26 class IdHandler : public IdHandlerInterface { |
| 27 public: | 27 public: |
| 28 IdHandler() { } | 28 IdHandler() { } |
| 29 ~IdHandler() override {} | 29 ~IdHandler() override {} |
| 30 | 30 |
| 31 // Overridden from IdHandlerInterface. | 31 // Overridden from IdHandlerInterface. |
| 32 void MakeIds(GLES2Implementation* /* gl_impl */, | 32 void MakeIds(GLES2Implementation* /* gl_impl */, |
| 33 GLuint id_offset, | 33 GLuint id_offset, |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 } | 266 } |
| 267 | 267 |
| 268 void ShareGroup::set_program_info_manager(ProgramInfoManager* manager) { | 268 void ShareGroup::set_program_info_manager(ProgramInfoManager* manager) { |
| 269 program_info_manager_.reset(manager); | 269 program_info_manager_.reset(manager); |
| 270 } | 270 } |
| 271 | 271 |
| 272 ShareGroup::~ShareGroup() {} | 272 ShareGroup::~ShareGroup() {} |
| 273 | 273 |
| 274 } // namespace gles2 | 274 } // namespace gles2 |
| 275 } // namespace gpu | 275 } // namespace gpu |
| OLD | NEW |