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

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

Issue 2781553002: gpu: Introduce separate mojo api for failed initialization. (Closed)
Patch Set: . Created 3 years, 8 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 | « services/ui/gpu/gpu_main.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/threading/non_thread_safe.h" 10 #include "base/threading/non_thread_safe.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 std::unique_ptr<gpu::GpuWatchdogThread> watchdog, 50 std::unique_ptr<gpu::GpuWatchdogThread> watchdog,
51 gpu::GpuMemoryBufferFactory* memory_buffer_factory, 51 gpu::GpuMemoryBufferFactory* memory_buffer_factory,
52 scoped_refptr<base::SingleThreadTaskRunner> io_runner, 52 scoped_refptr<base::SingleThreadTaskRunner> io_runner,
53 const gpu::GpuFeatureInfo& gpu_feature_info); 53 const gpu::GpuFeatureInfo& gpu_feature_info);
54 54
55 ~GpuService() override; 55 ~GpuService() override;
56 56
57 void UpdateGPUInfoFromPreferences(const gpu::GpuPreferences& preferences); 57 void UpdateGPUInfoFromPreferences(const gpu::GpuPreferences& preferences);
58 58
59 void InitializeWithHost(mojom::GpuHostPtr gpu_host, 59 void InitializeWithHost(mojom::GpuHostPtr gpu_host,
60 const gpu::GpuPreferences& preferences,
61 gpu::GpuProcessActivityFlags activity_flags, 60 gpu::GpuProcessActivityFlags activity_flags,
62 gpu::SyncPointManager* sync_point_manager = nullptr, 61 gpu::SyncPointManager* sync_point_manager = nullptr,
63 base::WaitableEvent* shutdown_event = nullptr); 62 base::WaitableEvent* shutdown_event = nullptr);
64 void Bind(mojom::GpuServiceRequest request); 63 void Bind(mojom::GpuServiceRequest request);
65 64
66 media::MediaGpuChannelManager* media_gpu_channel_manager() { 65 media::MediaGpuChannelManager* media_gpu_channel_manager() {
67 return media_gpu_channel_manager_.get(); 66 return media_gpu_channel_manager_.get();
68 } 67 }
69 68
70 gpu::GpuChannelManager* gpu_channel_manager() { 69 gpu::GpuChannelManager* gpu_channel_manager() {
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 base::Time start_time_; 184 base::Time start_time_;
186 185
187 mojo::BindingSet<mojom::GpuService> bindings_; 186 mojo::BindingSet<mojom::GpuService> bindings_;
188 187
189 DISALLOW_COPY_AND_ASSIGN(GpuService); 188 DISALLOW_COPY_AND_ASSIGN(GpuService);
190 }; 189 };
191 190
192 } // namespace ui 191 } // namespace ui
193 192
194 #endif // SERVICES_UI_GPU_GPU_SERVICE_H_ 193 #endif // SERVICES_UI_GPU_GPU_SERVICE_H_
OLDNEW
« no previous file with comments | « services/ui/gpu/gpu_main.cc ('k') | services/ui/gpu/gpu_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698