Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_SHARE_GROUP_H_ | |
| 6 #define GPU_COMMAND_BUFFER_CLIENT_SHARE_GROUP_H_ | |
| 7 | |
| 8 #include "../client/ref_counted.h" | |
| 9 #include "../common/scoped_ptr.h" | |
|
apatrick_chromium
2012/03/27 21:29:17
scoped_ptr is not used.
greggman
2012/03/27 21:47:22
Done.
| |
| 10 #include "gles2_impl_export.h" | |
| 11 | |
| 12 namespace gpu { | |
| 13 namespace gles2 { | |
| 14 | |
| 15 // ShareGroup manages shared resources for contexts that are sharing resources. | |
| 16 class GLES2_IMPL_EXPORT ShareGroup : public gpu::RefCounted<ShareGroup> { | |
|
apatrick_chromium
2012/03/27 21:29:17
just checking, will this ultimately be thread safe
greggman
2012/03/27 21:47:22
Done.
| |
| 17 public: | |
| 18 typedef scoped_refptr<ShareGroup> Ref; | |
| 19 | |
| 20 ShareGroup(); | |
| 21 ~ShareGroup(); | |
| 22 | |
| 23 bool Initialize(); | |
| 24 | |
| 25 private: | |
| 26 DISALLOW_COPY_AND_ASSIGN(ShareGroup); | |
| 27 }; | |
| 28 | |
| 29 } // namespace gles2 | |
| 30 } // namespace gpu | |
| 31 | |
| 32 #endif // GPU_COMMAND_BUFFER_CLIENT_SHARE_GROUP_H_ | |
| OLD | NEW |