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

Unified Diff: content/common/gpu/client/gpu_video_decode_accelerator_host.cc

Issue 795633005: Add VDA supported profile to GPUInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change to GetSupportedProfile Created 5 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 side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/client/gpu_video_decode_accelerator_host.cc
diff --git a/content/common/gpu/client/gpu_video_decode_accelerator_host.cc b/content/common/gpu/client/gpu_video_decode_accelerator_host.cc
index cef83f6f0825e3f98d786f7e36c559fa83f99f7e..be791bbf081caff2905602447e6f5e729a1bf858 100644
--- a/content/common/gpu/client/gpu_video_decode_accelerator_host.cc
+++ b/content/common/gpu/client/gpu_video_decode_accelerator_host.cc
@@ -9,6 +9,7 @@
#include "base/message_loop/message_loop.h"
#include "content/common/gpu/client/gpu_channel_host.h"
#include "content/common/gpu/gpu_messages.h"
+#include "content/common/gpu/media/gpu_video_accelerator_util.h"
#include "content/common/view_messages.h"
#include "ipc/ipc_message_macros.h"
#include "ipc/ipc_message_utils.h"
@@ -79,6 +80,15 @@ void GpuVideoDecodeAcceleratorHost::OnChannelError() {
PostNotifyError(PLATFORM_FAILURE);
}
+std::vector<media::VideoDecodeAccelerator::SupportedProfile>
+GpuVideoDecodeAcceleratorHost::GetSupportedProfiles() {
+ DCHECK(CalledOnValidThread());
+ if (!channel_)
+ return std::vector<media::VideoDecodeAccelerator::SupportedProfile>();
+ return GpuVideoAcceleratorUtil::ConvertGpuToMediaDecodeProfiles(
+ channel_->gpu_info().video_decode_accelerator_supported_profiles);
+}
+
bool GpuVideoDecodeAcceleratorHost::Initialize(media::VideoCodecProfile profile,
Client* client) {
DCHECK(CalledOnValidThread());

Powered by Google App Engine
This is Rietveld 408576698