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

Unified Diff: content/gpu/gpu_child_thread.cc

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 side-by-side diff with in-line comments
Download patch
Index: content/gpu/gpu_child_thread.cc
diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc
index 803b06a43ccfb10e45e3cd06eb84b3cc76f6dd59..31c2647fea930e062351cf5e9a9cc3a05ae70c72 100644
--- a/content/gpu/gpu_child_thread.cc
+++ b/content/gpu/gpu_child_thread.cc
@@ -301,8 +301,12 @@ void GpuChildThread::CreateGpuService(
const gpu::GpuPreferences& gpu_preferences) {
gpu_service_->Bind(std::move(request));
+ gpu::GpuDriverBugWorkarounds workarounds(
+ base::CommandLine::ForCurrentProcess());
+
gpu_info_.video_decode_accelerator_capabilities =
- media::GpuVideoDecodeAccelerator::GetCapabilities(gpu_preferences);
+ media::GpuVideoDecodeAccelerator::GetCapabilities(gpu_preferences,
+ workarounds);
gpu_info_.video_encode_accelerator_supported_profiles =
media::GpuVideoEncodeAccelerator::GetSupportedProfiles(gpu_preferences);
gpu_info_.jpeg_decode_accelerator_supported =
@@ -334,7 +338,7 @@ void GpuChildThread::CreateGpuService(
if (GetContentClient()->gpu())
sync_point_manager = GetContentClient()->gpu()->GetSyncPointManager();
gpu_service_->InitializeWithHost(std::move(gpu_host), gpu_preferences,
- sync_point_manager,
+ workarounds, sync_point_manager,
ChildProcess::current()->GetShutDownEvent());
CHECK(gpu_service_->media_gpu_channel_manager());

Powered by Google App Engine
This is Rietveld 408576698