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 "../client/atomicops.h" | 5 #include "gpu/command_buffer/client/atomicops.h" |
6 #include "../client/share_group.h" | 6 #include "gpu/command_buffer/client/gles2_implementation.h" |
7 #include "../client/gles2_implementation.h" | 7 #include "gpu/command_buffer/client/program_info_manager.h" |
8 #include "../client/program_info_manager.h" | 8 #include "gpu/command_buffer/client/share_group.h" |
9 #include "../common/id_allocator.h" | 9 #include "gpu/command_buffer/common/id_allocator.h" |
10 #include "../common/logging.h" | 10 #include "gpu/command_buffer/common/logging.h" |
11 | 11 |
12 namespace gpu { | 12 namespace gpu { |
13 namespace gles2 { | 13 namespace gles2 { |
14 | 14 |
15 COMPILE_ASSERT(gpu::kInvalidResource == 0, | 15 COMPILE_ASSERT(gpu::kInvalidResource == 0, |
16 INVALID_RESOURCE_NOT_0_AS_GL_EXPECTS); | 16 INVALID_RESOURCE_NOT_0_AS_GL_EXPECTS); |
17 | 17 |
18 // The standard id handler. | 18 // The standard id handler. |
19 class IdHandler : public IdHandlerInterface { | 19 class IdHandler : public IdHandlerInterface { |
20 public: | 20 public: |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 | 237 |
238 ShareGroup::~ShareGroup() { | 238 ShareGroup::~ShareGroup() { |
239 for (int i = 0; i < id_namespaces::kNumIdNamespaces; ++i) { | 239 for (int i = 0; i < id_namespaces::kNumIdNamespaces; ++i) { |
240 id_handlers_[i]->Destroy(gles2_); | 240 id_handlers_[i]->Destroy(gles2_); |
241 id_handlers_[i].reset(); | 241 id_handlers_[i].reset(); |
242 } | 242 } |
243 } | 243 } |
244 | 244 |
245 } // namespace gles2 | 245 } // namespace gles2 |
246 } // namespace gpu | 246 } // namespace gpu |
OLD | NEW |