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

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

Issue 795633005: Add VDA supported profile to GPUInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: edit description Created 6 years 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.h
diff --git a/content/common/gpu/client/gpu_video_decode_accelerator_host.h b/content/common/gpu/client/gpu_video_decode_accelerator_host.h
index 4cbeeb1272ddab41b5b14bb829d4c6258f6df8ea..da2fdba994c214ae3ed9a512545cac49da3c084d 100644
--- a/content/common/gpu/client/gpu_video_decode_accelerator_host.h
+++ b/content/common/gpu/client/gpu_video_decode_accelerator_host.h
@@ -10,6 +10,7 @@
#include "base/memory/weak_ptr.h"
#include "base/threading/non_thread_safe.h"
#include "content/common/gpu/client/command_buffer_proxy_impl.h"
+#include "gpu/config/gpu_info.h"
#include "ipc/ipc_listener.h"
#include "media/video/video_decode_accelerator.h"
#include "ui/gfx/size.h"
@@ -30,11 +31,17 @@ class GpuVideoDecodeAcceleratorHost
GpuVideoDecodeAcceleratorHost(GpuChannelHost* channel,
CommandBufferProxyImpl* impl);
+ static std::vector<media::VideoDecodeAccelerator::SupportedProfile>
+ ConvertGpuToMediaProfiles(const std::vector<
+ gpu::VideoDecodeAcceleratorSupportedProfile>& gpu_profiles);
+
// IPC::Listener implementation.
void OnChannelError() override;
bool OnMessageReceived(const IPC::Message& message) override;
// media::VideoDecodeAccelerator implementation.
+ std::vector<media::VideoDecodeAccelerator::SupportedProfile>
+ GetSupportedProfiles();
bool Initialize(media::VideoCodecProfile profile, Client* client) override;
void Decode(const media::BitstreamBuffer& bitstream_buffer) override;
void AssignPictureBuffers(

Powered by Google App Engine
This is Rietveld 408576698