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

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

Issue 2682723003: Make disabling accelerated VPX decoding a GPU driver bug workaround. (Closed)
Patch Set: remove flag Created 3 years, 10 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
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 public: 47 public:
48 GpuService(const gpu::GPUInfo& gpu_info, 48 GpuService(const gpu::GPUInfo& gpu_info,
49 std::unique_ptr<gpu::GpuWatchdogThread> watchdog, 49 std::unique_ptr<gpu::GpuWatchdogThread> watchdog,
50 gpu::GpuMemoryBufferFactory* memory_buffer_factory, 50 gpu::GpuMemoryBufferFactory* memory_buffer_factory,
51 scoped_refptr<base::SingleThreadTaskRunner> io_runner); 51 scoped_refptr<base::SingleThreadTaskRunner> io_runner);
52 52
53 ~GpuService() override; 53 ~GpuService() override;
54 54
55 void InitializeWithHost(mojom::GpuHostPtr gpu_host, 55 void InitializeWithHost(mojom::GpuHostPtr gpu_host,
56 const gpu::GpuPreferences& preferences, 56 const gpu::GpuPreferences& preferences,
57 const gpu::GpuDriverBugWorkarounds& workarounds,
57 gpu::SyncPointManager* sync_point_manager = nullptr, 58 gpu::SyncPointManager* sync_point_manager = nullptr,
58 base::WaitableEvent* shutdown_event = nullptr); 59 base::WaitableEvent* shutdown_event = nullptr);
59 void Bind(mojom::GpuServiceRequest request); 60 void Bind(mojom::GpuServiceRequest request);
60 61
61 media::MediaGpuChannelManager* media_gpu_channel_manager() { 62 media::MediaGpuChannelManager* media_gpu_channel_manager() {
62 return media_gpu_channel_manager_.get(); 63 return media_gpu_channel_manager_.get();
63 } 64 }
64 65
65 gpu::GpuChannelManager* gpu_channel_manager() { 66 gpu::GpuChannelManager* gpu_channel_manager() {
66 return gpu_channel_manager_.get(); 67 return gpu_channel_manager_.get();
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 gpu::SyncPointManager* sync_point_manager_ = nullptr; 150 gpu::SyncPointManager* sync_point_manager_ = nullptr;
150 151
151 mojo::BindingSet<mojom::GpuService> bindings_; 152 mojo::BindingSet<mojom::GpuService> bindings_;
152 153
153 DISALLOW_COPY_AND_ASSIGN(GpuService); 154 DISALLOW_COPY_AND_ASSIGN(GpuService);
154 }; 155 };
155 156
156 } // namespace ui 157 } // namespace ui
157 158
158 #endif // SERVICES_UI_GPU_GPU_SERVICE_H_ 159 #endif // SERVICES_UI_GPU_GPU_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698