| 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> |
| 9 |
| 8 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
| 11 #include "base/threading/thread.h" | 12 #include "base/threading/thread.h" |
| 12 #include "components/mus/gles2/command_buffer_driver_manager.h" | 13 #include "components/mus/gles2/command_buffer_driver_manager.h" |
| 13 #include "components/mus/gles2/command_buffer_task_runner.h" | 14 #include "components/mus/gles2/command_buffer_task_runner.h" |
| 14 #include "gpu/command_buffer/service/gpu_preferences.h" | 15 #include "gpu/command_buffer/service/gpu_preferences.h" |
| 15 #include "gpu/command_buffer/service/mailbox_manager_impl.h" | 16 #include "gpu/command_buffer/service/mailbox_manager_impl.h" |
| 16 #include "gpu/command_buffer/service/sync_point_manager.h" | 17 #include "gpu/command_buffer/service/sync_point_manager.h" |
| 17 #include "gpu/config/gpu_driver_bug_workarounds.h" | 18 #include "gpu/config/gpu_driver_bug_workarounds.h" |
| 18 #include "gpu/config/gpu_info.h" | 19 #include "gpu/config/gpu_info.h" |
| 19 #include "ui/gl/gl_share_group.h" | 20 #include "ui/gl/gl_share_group.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 // |control_thread_| is for mojo incoming calls of CommandBufferImpl. | 87 // |control_thread_| is for mojo incoming calls of CommandBufferImpl. |
| 87 base::Thread control_thread_; | 88 base::Thread control_thread_; |
| 88 | 89 |
| 89 // 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 |
| 90 // be needed during shutdown. | 91 // be needed during shutdown. |
| 91 scoped_refptr<base::SingleThreadTaskRunner> control_thread_task_runner_; | 92 scoped_refptr<base::SingleThreadTaskRunner> control_thread_task_runner_; |
| 92 | 93 |
| 93 gpu::GpuPreferences gpu_preferences_; | 94 gpu::GpuPreferences gpu_preferences_; |
| 94 const gpu::GpuDriverBugWorkarounds gpu_driver_bug_workarounds_; | 95 const gpu::GpuDriverBugWorkarounds gpu_driver_bug_workarounds_; |
| 95 scoped_refptr<CommandBufferTaskRunner> command_buffer_task_runner_; | 96 scoped_refptr<CommandBufferTaskRunner> command_buffer_task_runner_; |
| 96 scoped_ptr<CommandBufferDriverManager> driver_manager_; | 97 std::unique_ptr<CommandBufferDriverManager> driver_manager_; |
| 97 scoped_ptr<gpu::SyncPointManager> sync_point_manager_; | 98 std::unique_ptr<gpu::SyncPointManager> sync_point_manager_; |
| 98 scoped_refptr<gfx::GLShareGroup> share_group_; | 99 scoped_refptr<gfx::GLShareGroup> share_group_; |
| 99 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_; | 100 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_; |
| 100 gpu::GPUInfo gpu_info_; | 101 gpu::GPUInfo gpu_info_; |
| 101 bool hardware_rendering_available_; | 102 bool hardware_rendering_available_; |
| 102 }; | 103 }; |
| 103 | 104 |
| 104 } // namespace mus | 105 } // namespace mus |
| 105 | 106 |
| 106 #endif // COMPONENTS_MUS_GLES2_GPU_STATE_H_ | 107 #endif // COMPONENTS_MUS_GLES2_GPU_STATE_H_ |
| OLD | NEW |