| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include <stdint.h> | 5 #include <stdint.h> |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "gpu/command_buffer/service/gpu_preferences.h" | 9 #include "gpu/command_buffer/service/gpu_preferences.h" |
| 10 #include "gpu/ipc/service/gpu_channel.h" | 10 #include "gpu/ipc/service/gpu_channel.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 bool allow_view_command_buffers, | 71 bool allow_view_command_buffers, |
| 72 bool allow_real_time_streams) override; | 72 bool allow_real_time_streams) override; |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 class TestGpuChannel : public GpuChannel { | 75 class TestGpuChannel : public GpuChannel { |
| 76 public: | 76 public: |
| 77 TestGpuChannel(GpuChannelManager* gpu_channel_manager, | 77 TestGpuChannel(GpuChannelManager* gpu_channel_manager, |
| 78 SyncPointManager* sync_point_manager, | 78 SyncPointManager* sync_point_manager, |
| 79 gl::GLShareGroup* share_group, | 79 gl::GLShareGroup* share_group, |
| 80 gles2::MailboxManager* mailbox_manager, | 80 gles2::MailboxManager* mailbox_manager, |
| 81 GpuScheduler* scheduler, |
| 81 PreemptionFlag* preempting_flag, | 82 PreemptionFlag* preempting_flag, |
| 82 PreemptionFlag* preempted_flag, | 83 PreemptionFlag* preempted_flag, |
| 83 base::SingleThreadTaskRunner* task_runner, | 84 base::SingleThreadTaskRunner* task_runner, |
| 84 base::SingleThreadTaskRunner* io_task_runner, | 85 base::SingleThreadTaskRunner* io_task_runner, |
| 85 int client_id, | 86 int client_id, |
| 86 uint64_t client_tracing_id, | 87 uint64_t client_tracing_id, |
| 87 bool allow_view_command_buffers, | 88 bool allow_view_command_buffers, |
| 88 bool allow_real_time_streams); | 89 bool allow_real_time_streams); |
| 89 ~TestGpuChannel() override; | 90 ~TestGpuChannel() override; |
| 90 | 91 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 118 private: | 119 private: |
| 119 GpuPreferences gpu_preferences_; | 120 GpuPreferences gpu_preferences_; |
| 120 scoped_refptr<base::TestSimpleTaskRunner> task_runner_; | 121 scoped_refptr<base::TestSimpleTaskRunner> task_runner_; |
| 121 scoped_refptr<base::TestSimpleTaskRunner> io_task_runner_; | 122 scoped_refptr<base::TestSimpleTaskRunner> io_task_runner_; |
| 122 std::unique_ptr<SyncPointManager> sync_point_manager_; | 123 std::unique_ptr<SyncPointManager> sync_point_manager_; |
| 123 std::unique_ptr<TestGpuChannelManagerDelegate> channel_manager_delegate_; | 124 std::unique_ptr<TestGpuChannelManagerDelegate> channel_manager_delegate_; |
| 124 std::unique_ptr<GpuChannelManager> channel_manager_; | 125 std::unique_ptr<GpuChannelManager> channel_manager_; |
| 125 }; | 126 }; |
| 126 | 127 |
| 127 } // namespace gpu | 128 } // namespace gpu |
| OLD | NEW |