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

Unified Diff: content/common/gpu/media/gpu_video_decode_accelerator.cc

Issue 1859403002: Avoid GpuPreferences exposed in content public gpu interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/media/gpu_video_decode_accelerator.cc
diff --git a/content/common/gpu/media/gpu_video_decode_accelerator.cc b/content/common/gpu/media/gpu_video_decode_accelerator.cc
index cc50774fc8a4fd5aea7517e72617b6b4b4783064..18a0acb71490c98416055d538581e8b154400857 100644
--- a/content/common/gpu/media/gpu_video_decode_accelerator.cc
+++ b/content/common/gpu/media/gpu_video_decode_accelerator.cc
@@ -183,10 +183,8 @@ GpuVideoDecodeAccelerator::~GpuVideoDecodeAccelerator() {
// static
gpu::VideoDecodeAcceleratorCapabilities
-GpuVideoDecodeAccelerator::GetCapabilities(
- const gpu::GpuPreferences& gpu_preferences) {
- return GpuVideoDecodeAcceleratorFactoryImpl::GetDecoderCapabilities(
- gpu_preferences);
+GpuVideoDecodeAccelerator::GetCapabilities() {
+ return GpuVideoDecodeAcceleratorFactoryImpl::GetDecoderCapabilities();
}
bool GpuVideoDecodeAccelerator::OnMessageReceived(const IPC::Message& msg) {
@@ -353,10 +351,7 @@ bool GpuVideoDecodeAccelerator::Initialize(
return false;
}
- const gpu::GpuPreferences& gpu_preferences =
- stub_->channel()->gpu_channel_manager()->gpu_preferences();
- video_decode_accelerator_ =
- vda_factory->CreateVDA(this, config, gpu_preferences);
+ video_decode_accelerator_ = vda_factory->CreateVDA(this, config);
if (!video_decode_accelerator_) {
LOG(ERROR) << "HW video decode not available for profile " << config.profile
<< (config.is_encrypted ? " with encryption" : "");

Powered by Google App Engine
This is Rietveld 408576698