| 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 SERVICES_UI_GLES2_GPU_STATE_H_ |
| 6 #define COMPONENTS_MUS_GLES2_GPU_STATE_H_ | 6 #define SERVICES_UI_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" |
| 11 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
| 12 #include "base/threading/thread.h" | 12 #include "base/threading/thread.h" |
| 13 #include "components/mus/gles2/command_buffer_driver_manager.h" | |
| 14 #include "components/mus/gles2/command_buffer_task_runner.h" | |
| 15 #include "gpu/command_buffer/service/gpu_preferences.h" | 13 #include "gpu/command_buffer/service/gpu_preferences.h" |
| 16 #include "gpu/command_buffer/service/mailbox_manager_impl.h" | 14 #include "gpu/command_buffer/service/mailbox_manager_impl.h" |
| 17 #include "gpu/command_buffer/service/sync_point_manager.h" | 15 #include "gpu/command_buffer/service/sync_point_manager.h" |
| 18 #include "gpu/config/gpu_driver_bug_workarounds.h" | 16 #include "gpu/config/gpu_driver_bug_workarounds.h" |
| 19 #include "gpu/config/gpu_info.h" | 17 #include "gpu/config/gpu_info.h" |
| 18 #include "services/ui/gles2/command_buffer_driver_manager.h" |
| 19 #include "services/ui/gles2/command_buffer_task_runner.h" |
| 20 #include "ui/gl/gl_share_group.h" | 20 #include "ui/gl/gl_share_group.h" |
| 21 | 21 |
| 22 namespace { | 22 namespace { |
| 23 class WaitableEvent; | 23 class WaitableEvent; |
| 24 } | 24 } |
| 25 | 25 |
| 26 namespace mus { | 26 namespace mus { |
| 27 | 27 |
| 28 // We need to share these across all CommandBuffer instances so that contexts | 28 // We need to share these across all CommandBuffer instances so that contexts |
| 29 // they create can share resources with each other via mailboxes. | 29 // they create can share resources with each other via mailboxes. |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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<gl::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 // SERVICES_UI_GLES2_GPU_STATE_H_ |
| OLD | NEW |