Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1563)

Side by Side Diff: services/ui/gpu/gpu_service.h

Issue 2881813002: Revert of gpu: GPU service scheduler. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/ipc/service/gpu_command_buffer_stub.cc ('k') | services/ui/gpu/gpu_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 SERVICES_UI_GPU_GPU_SERVICE_H_ 5 #ifndef SERVICES_UI_GPU_GPU_SERVICE_H_
6 #define SERVICES_UI_GPU_GPU_SERVICE_H_ 6 #define SERVICES_UI_GPU_GPU_SERVICE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/synchronization/waitable_event.h" 9 #include "base/synchronization/waitable_event.h"
10 #include "base/task/cancelable_task_tracker.h" 10 #include "base/task/cancelable_task_tracker.h"
(...skipping 11 matching lines...) Expand all
22 #include "gpu/ipc/service/gpu_config.h" 22 #include "gpu/ipc/service/gpu_config.h"
23 #include "gpu/ipc/service/x_util.h" 23 #include "gpu/ipc/service/x_util.h"
24 #include "mojo/public/cpp/bindings/binding_set.h" 24 #include "mojo/public/cpp/bindings/binding_set.h"
25 #include "services/ui/gpu/interfaces/gpu_host.mojom.h" 25 #include "services/ui/gpu/interfaces/gpu_host.mojom.h"
26 #include "services/ui/gpu/interfaces/gpu_service.mojom.h" 26 #include "services/ui/gpu/interfaces/gpu_service.mojom.h"
27 #include "ui/gfx/native_widget_types.h" 27 #include "ui/gfx/native_widget_types.h"
28 28
29 namespace gpu { 29 namespace gpu {
30 class GpuMemoryBufferFactory; 30 class GpuMemoryBufferFactory;
31 class GpuWatchdogThread; 31 class GpuWatchdogThread;
32 class Scheduler;
33 class SyncPointManager; 32 class SyncPointManager;
34 } 33 }
35 34
36 namespace media { 35 namespace media {
37 class MediaGpuChannelManager; 36 class MediaGpuChannelManager;
38 } 37 }
39 38
40 namespace ui { 39 namespace ui {
41 40
42 class GpuMain; 41 class GpuMain;
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 174
176 scoped_refptr<mojom::ThreadSafeGpuHostPtr> gpu_host_; 175 scoped_refptr<mojom::ThreadSafeGpuHostPtr> gpu_host_;
177 std::unique_ptr<gpu::GpuChannelManager> gpu_channel_manager_; 176 std::unique_ptr<gpu::GpuChannelManager> gpu_channel_manager_;
178 std::unique_ptr<media::MediaGpuChannelManager> media_gpu_channel_manager_; 177 std::unique_ptr<media::MediaGpuChannelManager> media_gpu_channel_manager_;
179 178
180 // On some platforms (e.g. android webview), the SyncPointManager comes from 179 // On some platforms (e.g. android webview), the SyncPointManager comes from
181 // external sources. 180 // external sources.
182 std::unique_ptr<gpu::SyncPointManager> owned_sync_point_manager_; 181 std::unique_ptr<gpu::SyncPointManager> owned_sync_point_manager_;
183 gpu::SyncPointManager* sync_point_manager_ = nullptr; 182 gpu::SyncPointManager* sync_point_manager_ = nullptr;
184 183
185 std::unique_ptr<gpu::Scheduler> scheduler_;
186
187 // An event that will be signalled when we shutdown. On some platforms it 184 // An event that will be signalled when we shutdown. On some platforms it
188 // comes from external sources. 185 // comes from external sources.
189 std::unique_ptr<base::WaitableEvent> owned_shutdown_event_; 186 std::unique_ptr<base::WaitableEvent> owned_shutdown_event_;
190 base::WaitableEvent* shutdown_event_ = nullptr; 187 base::WaitableEvent* shutdown_event_ = nullptr;
191 188
192 // Whether this is running in the same process as the gpu host. 189 // Whether this is running in the same process as the gpu host.
193 bool in_host_process_ = false; 190 bool in_host_process_ = false;
194 base::Time start_time_; 191 base::Time start_time_;
195 192
196 // Used to track the task to bind a GpuServiceRequest on the io thread. 193 // Used to track the task to bind a GpuServiceRequest on the io thread.
197 base::CancelableTaskTracker bind_task_tracker_; 194 base::CancelableTaskTracker bind_task_tracker_;
198 std::unique_ptr<mojo::BindingSet<mojom::GpuService>> bindings_; 195 std::unique_ptr<mojo::BindingSet<mojom::GpuService>> bindings_;
199 196
200 base::WeakPtr<GpuService> weak_ptr_; 197 base::WeakPtr<GpuService> weak_ptr_;
201 base::WeakPtrFactory<GpuService> weak_ptr_factory_; 198 base::WeakPtrFactory<GpuService> weak_ptr_factory_;
202 199
203 DISALLOW_COPY_AND_ASSIGN(GpuService); 200 DISALLOW_COPY_AND_ASSIGN(GpuService);
204 }; 201 };
205 202
206 } // namespace ui 203 } // namespace ui
207 204
208 #endif // SERVICES_UI_GPU_GPU_SERVICE_H_ 205 #endif // SERVICES_UI_GPU_GPU_SERVICE_H_
OLDNEW
« no previous file with comments | « gpu/ipc/service/gpu_command_buffer_stub.cc ('k') | services/ui/gpu/gpu_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698