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 COMPONENTS_MUS_GLES2_GPU_STATE_H_ | 5 #ifndef COMPONENTS_MUS_GLES2_GPU_STATE_H_ |
6 #define COMPONENTS_MUS_GLES2_GPU_STATE_H_ | 6 #define COMPONENTS_MUS_GLES2_GPU_STATE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 CommandBufferTaskRunner* command_buffer_task_runner() const { | 51 CommandBufferTaskRunner* command_buffer_task_runner() const { |
52 return command_buffer_task_runner_.get(); | 52 return command_buffer_task_runner_.get(); |
53 } | 53 } |
54 | 54 |
55 CommandBufferDriverManager* driver_manager() const { | 55 CommandBufferDriverManager* driver_manager() const { |
56 return driver_manager_.get(); | 56 return driver_manager_.get(); |
57 } | 57 } |
58 | 58 |
59 // These objects are intended to be used on the "driver" thread (i.e., the | 59 // These objects are intended to be used on the "driver" thread (i.e., the |
60 // thread on which GpuImpl instances are created). | 60 // thread on which GpuImpl instances are created). |
61 gfx::GLShareGroup* share_group() const { return share_group_.get(); } | 61 gl::GLShareGroup* share_group() const { return share_group_.get(); } |
62 gpu::gles2::MailboxManager* mailbox_manager() const { | 62 gpu::gles2::MailboxManager* mailbox_manager() const { |
63 return mailbox_manager_.get(); | 63 return mailbox_manager_.get(); |
64 } | 64 } |
65 gpu::SyncPointManager* sync_point_manager() const { | 65 gpu::SyncPointManager* sync_point_manager() const { |
66 return sync_point_manager_.get(); | 66 return sync_point_manager_.get(); |
67 } | 67 } |
68 | 68 |
69 const gpu::GPUInfo& gpu_info() const { | 69 const gpu::GPUInfo& gpu_info() const { |
70 return gpu_info_; | 70 return gpu_info_; |
71 } | 71 } |
(...skipping 17 matching lines...) Expand all Loading... |
89 | 89 |
90 // Same as control_thread_->task_runner(). The TaskRunner is cached as it may | 90 // Same as control_thread_->task_runner(). The TaskRunner is cached as it may |
91 // be needed during shutdown. | 91 // be needed during shutdown. |
92 scoped_refptr<base::SingleThreadTaskRunner> control_thread_task_runner_; | 92 scoped_refptr<base::SingleThreadTaskRunner> control_thread_task_runner_; |
93 | 93 |
94 gpu::GpuPreferences gpu_preferences_; | 94 gpu::GpuPreferences gpu_preferences_; |
95 const gpu::GpuDriverBugWorkarounds gpu_driver_bug_workarounds_; | 95 const gpu::GpuDriverBugWorkarounds gpu_driver_bug_workarounds_; |
96 scoped_refptr<CommandBufferTaskRunner> command_buffer_task_runner_; | 96 scoped_refptr<CommandBufferTaskRunner> command_buffer_task_runner_; |
97 std::unique_ptr<CommandBufferDriverManager> driver_manager_; | 97 std::unique_ptr<CommandBufferDriverManager> driver_manager_; |
98 std::unique_ptr<gpu::SyncPointManager> sync_point_manager_; | 98 std::unique_ptr<gpu::SyncPointManager> sync_point_manager_; |
99 scoped_refptr<gfx::GLShareGroup> share_group_; | 99 scoped_refptr<gl::GLShareGroup> share_group_; |
100 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_; | 100 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_; |
101 gpu::GPUInfo gpu_info_; | 101 gpu::GPUInfo gpu_info_; |
102 bool hardware_rendering_available_; | 102 bool hardware_rendering_available_; |
103 }; | 103 }; |
104 | 104 |
105 } // namespace mus | 105 } // namespace mus |
106 | 106 |
107 #endif // COMPONENTS_MUS_GLES2_GPU_STATE_H_ | 107 #endif // COMPONENTS_MUS_GLES2_GPU_STATE_H_ |
OLD | NEW |