OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef SERVICES_GLES2_GPU_STATE_H_ | 5 #ifndef SERVICES_GLES2_GPU_STATE_H_ |
6 #define SERVICES_GLES2_GPU_STATE_H_ | 6 #define SERVICES_GLES2_GPU_STATE_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
10 #include "base/threading/thread.h" | 10 #include "base/threading/thread.h" |
11 #include "gpu/command_buffer/service/mailbox_manager_impl.h" | 11 #include "gpu/command_buffer/service/mailbox_manager.h" |
12 #include "gpu/command_buffer/service/sync_point_manager.h" | 12 #include "gpu/command_buffer/service/sync_point_manager.h" |
13 #include "ui/gl/gl_share_group.h" | 13 #include "ui/gl/gl_share_group.h" |
14 | 14 |
15 namespace gles2 { | 15 namespace gles2 { |
16 | 16 |
17 // We need to share these across all CommandBuffer instances so that contexts | 17 // We need to share these across all CommandBuffer instances so that contexts |
18 // they create can share resources with each other via mailboxes. | 18 // they create can share resources with each other via mailboxes. |
19 class GpuState : public base::RefCounted<GpuState> { | 19 class GpuState : public base::RefCounted<GpuState> { |
20 public: | 20 public: |
21 GpuState(); | 21 GpuState(); |
(...skipping 21 matching lines...) Expand all Loading... |
43 | 43 |
44 base::Thread control_thread_; | 44 base::Thread control_thread_; |
45 scoped_refptr<gpu::SyncPointManager> sync_point_manager_; | 45 scoped_refptr<gpu::SyncPointManager> sync_point_manager_; |
46 scoped_refptr<gfx::GLShareGroup> share_group_; | 46 scoped_refptr<gfx::GLShareGroup> share_group_; |
47 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_; | 47 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_; |
48 }; | 48 }; |
49 | 49 |
50 } // namespace gles2 | 50 } // namespace gles2 |
51 | 51 |
52 #endif // SERVICES_GLES2_GPU_STATE_H_ | 52 #endif // SERVICES_GLES2_GPU_STATE_H_ |
OLD | NEW |