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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 uint64_t client_tracing_id, | 70 uint64_t client_tracing_id, |
71 bool preempts, | 71 bool preempts, |
72 bool allow_view_command_buffers, | 72 bool allow_view_command_buffers, |
73 bool allow_real_time_streams) override; | 73 bool allow_real_time_streams) override; |
74 }; | 74 }; |
75 | 75 |
76 class TestGpuChannel : public GpuChannel { | 76 class TestGpuChannel : public GpuChannel { |
77 public: | 77 public: |
78 TestGpuChannel(GpuChannelManager* gpu_channel_manager, | 78 TestGpuChannel(GpuChannelManager* gpu_channel_manager, |
79 SyncPointManager* sync_point_manager, | 79 SyncPointManager* sync_point_manager, |
80 gfx::GLShareGroup* share_group, | 80 gl::GLShareGroup* share_group, |
81 gles2::MailboxManager* mailbox_manager, | 81 gles2::MailboxManager* mailbox_manager, |
82 PreemptionFlag* preempting_flag, | 82 PreemptionFlag* preempting_flag, |
83 PreemptionFlag* preempted_flag, | 83 PreemptionFlag* preempted_flag, |
84 base::SingleThreadTaskRunner* task_runner, | 84 base::SingleThreadTaskRunner* task_runner, |
85 base::SingleThreadTaskRunner* io_task_runner, | 85 base::SingleThreadTaskRunner* io_task_runner, |
86 int client_id, | 86 int client_id, |
87 uint64_t client_tracing_id, | 87 uint64_t client_tracing_id, |
88 bool allow_view_command_buffers, | 88 bool allow_view_command_buffers, |
89 bool allow_real_time_streams); | 89 bool allow_real_time_streams); |
90 ~TestGpuChannel() override; | 90 ~TestGpuChannel() override; |
(...skipping 28 matching lines...) Expand all Loading... |
119 private: | 119 private: |
120 GpuPreferences gpu_preferences_; | 120 GpuPreferences gpu_preferences_; |
121 scoped_refptr<base::TestSimpleTaskRunner> task_runner_; | 121 scoped_refptr<base::TestSimpleTaskRunner> task_runner_; |
122 scoped_refptr<base::TestSimpleTaskRunner> io_task_runner_; | 122 scoped_refptr<base::TestSimpleTaskRunner> io_task_runner_; |
123 std::unique_ptr<SyncPointManager> sync_point_manager_; | 123 std::unique_ptr<SyncPointManager> sync_point_manager_; |
124 std::unique_ptr<TestGpuChannelManagerDelegate> channel_manager_delegate_; | 124 std::unique_ptr<TestGpuChannelManagerDelegate> channel_manager_delegate_; |
125 std::unique_ptr<GpuChannelManager> channel_manager_; | 125 std::unique_ptr<GpuChannelManager> channel_manager_; |
126 }; | 126 }; |
127 | 127 |
128 } // namespace gpu | 128 } // namespace gpu |
OLD | NEW |