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

Unified Diff: services/ui/gpu/gpu_service.cc

Issue 2654993004: Move GPU blacklist calculation to GPU proc (Closed)
Patch Set: fix win clang build 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/gpu/gpu_service.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/gpu/gpu_service.cc
diff --git a/services/ui/gpu/gpu_service.cc b/services/ui/gpu/gpu_service.cc
index e217a6d3b81b875ad0659c9baa653e71c7392301..0b4719c1e195d84d333b0b809e9863bd9db0c02c 100644
--- a/services/ui/gpu/gpu_service.cc
+++ b/services/ui/gpu/gpu_service.cc
@@ -40,13 +40,15 @@ namespace ui {
GpuService::GpuService(const gpu::GPUInfo& gpu_info,
std::unique_ptr<gpu::GpuWatchdogThread> watchdog_thread,
gpu::GpuMemoryBufferFactory* gpu_memory_buffer_factory,
- scoped_refptr<base::SingleThreadTaskRunner> io_runner)
+ scoped_refptr<base::SingleThreadTaskRunner> io_runner,
+ const gpu::GpuFeatureInfo& gpu_feature_info)
: io_runner_(std::move(io_runner)),
shutdown_event_(base::WaitableEvent::ResetPolicy::MANUAL,
base::WaitableEvent::InitialState::NOT_SIGNALED),
watchdog_thread_(std::move(watchdog_thread)),
gpu_memory_buffer_factory_(gpu_memory_buffer_factory),
gpu_info_(gpu_info),
+ gpu_feature_info_(gpu_feature_info),
sync_point_manager_(nullptr) {}
GpuService::~GpuService() {
@@ -93,7 +95,7 @@ void GpuService::InitializeWithHost(mojom::GpuHostPtr gpu_host,
gpu_preferences_, this, watchdog_thread_.get(),
base::ThreadTaskRunnerHandle::Get().get(), io_runner_.get(),
shutdown_event ? shutdown_event : &shutdown_event_, sync_point_manager_,
- gpu_memory_buffer_factory_));
+ gpu_memory_buffer_factory_, gpu_feature_info_));
media_gpu_channel_manager_.reset(
new media::MediaGpuChannelManager(gpu_channel_manager_.get()));
« no previous file with comments | « services/ui/gpu/gpu_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698