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 "gles2_impl_export.h" |
| 10 |
| 11 namespace gpu { |
| 12 namespace gles2 { |
| 13 |
| 14 // ShareGroup manages shared resources for contexts that are sharing resources. |
| 15 class GLES2_IMPL_EXPORT ShareGroup |
| 16 : public gpu::RefCountedThreadSafe<ShareGroup> { |
| 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 |