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

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

Issue 2744363002: Clear shader disk cache after glProgramBinary failure. (Closed)
Patch Set: Remove singleton and clean up init Created 3 years, 9 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"
11 #include "base/threading/thread.h" 11 #include "base/threading/thread.h"
12 #include "build/build_config.h" 12 #include "build/build_config.h"
13 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h" 13 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h"
14 #include "gpu/command_buffer/common/activity_flags.h"
14 #include "gpu/command_buffer/service/gpu_preferences.h" 15 #include "gpu/command_buffer/service/gpu_preferences.h"
15 #include "gpu/config/gpu_info.h" 16 #include "gpu/config/gpu_info.h"
16 #include "gpu/ipc/common/surface_handle.h" 17 #include "gpu/ipc/common/surface_handle.h"
17 #include "gpu/ipc/service/gpu_channel.h" 18 #include "gpu/ipc/service/gpu_channel.h"
18 #include "gpu/ipc/service/gpu_channel_manager.h" 19 #include "gpu/ipc/service/gpu_channel_manager.h"
19 #include "gpu/ipc/service/gpu_channel_manager_delegate.h" 20 #include "gpu/ipc/service/gpu_channel_manager_delegate.h"
20 #include "gpu/ipc/service/gpu_config.h" 21 #include "gpu/ipc/service/gpu_config.h"
21 #include "gpu/ipc/service/x_util.h" 22 #include "gpu/ipc/service/x_util.h"
22 #include "mojo/public/cpp/bindings/binding_set.h" 23 #include "mojo/public/cpp/bindings/binding_set.h"
23 #include "services/ui/gpu/interfaces/gpu_host.mojom.h" 24 #include "services/ui/gpu/interfaces/gpu_host.mojom.h"
(...skipping 24 matching lines...) Expand all
48 GpuService(const gpu::GPUInfo& gpu_info, 49 GpuService(const gpu::GPUInfo& gpu_info,
49 std::unique_ptr<gpu::GpuWatchdogThread> watchdog, 50 std::unique_ptr<gpu::GpuWatchdogThread> watchdog,
50 gpu::GpuMemoryBufferFactory* memory_buffer_factory, 51 gpu::GpuMemoryBufferFactory* memory_buffer_factory,
51 scoped_refptr<base::SingleThreadTaskRunner> io_runner, 52 scoped_refptr<base::SingleThreadTaskRunner> io_runner,
52 const gpu::GpuFeatureInfo& gpu_feature_info); 53 const gpu::GpuFeatureInfo& gpu_feature_info);
53 54
54 ~GpuService() override; 55 ~GpuService() override;
55 56
56 void InitializeWithHost(mojom::GpuHostPtr gpu_host, 57 void InitializeWithHost(mojom::GpuHostPtr gpu_host,
57 const gpu::GpuPreferences& preferences, 58 const gpu::GpuPreferences& preferences,
59 gpu::GpuProcessActivityFlags activity_flags,
58 gpu::SyncPointManager* sync_point_manager = nullptr, 60 gpu::SyncPointManager* sync_point_manager = nullptr,
59 base::WaitableEvent* shutdown_event = nullptr); 61 base::WaitableEvent* shutdown_event = nullptr);
60 void Bind(mojom::GpuServiceRequest request); 62 void Bind(mojom::GpuServiceRequest request);
61 63
62 media::MediaGpuChannelManager* media_gpu_channel_manager() { 64 media::MediaGpuChannelManager* media_gpu_channel_manager() {
63 return media_gpu_channel_manager_.get(); 65 return media_gpu_channel_manager_.get();
64 } 66 }
65 67
66 gpu::GpuChannelManager* gpu_channel_manager() { 68 gpu::GpuChannelManager* gpu_channel_manager() {
67 return gpu_channel_manager_.get(); 69 return gpu_channel_manager_.get();
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 gpu::SyncPointManager* sync_point_manager_ = nullptr; 164 gpu::SyncPointManager* sync_point_manager_ = nullptr;
163 165
164 mojo::BindingSet<mojom::GpuService> bindings_; 166 mojo::BindingSet<mojom::GpuService> bindings_;
165 167
166 DISALLOW_COPY_AND_ASSIGN(GpuService); 168 DISALLOW_COPY_AND_ASSIGN(GpuService);
167 }; 169 };
168 170
169 } // namespace ui 171 } // namespace ui
170 172
171 #endif // SERVICES_UI_GPU_GPU_SERVICE_H_ 173 #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