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

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

Issue 795633005: Add VDA supported profile to GPUInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address patch set 13 review comments 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/media/gpu_video_decode_accelerator.h
diff --git a/content/common/gpu/media/gpu_video_decode_accelerator.h b/content/common/gpu/media/gpu_video_decode_accelerator.h
index f147138c82016b2d150f953675757643bc9fa9b8..881467efd2ac5fd2e382719d2b624ce2d4dbea96 100644
--- a/content/common/gpu/media/gpu_video_decode_accelerator.h
+++ b/content/common/gpu/media/gpu_video_decode_accelerator.h
@@ -14,6 +14,7 @@
#include "base/synchronization/waitable_event.h"
#include "content/common/gpu/gpu_command_buffer_stub.h"
#include "gpu/command_buffer/service/texture_manager.h"
+#include "gpu/config/gpu_info.h"
#include "ipc/ipc_listener.h"
#include "ipc/ipc_sender.h"
#include "media/video/video_decode_accelerator.h"
@@ -66,6 +67,12 @@ class GpuVideoDecodeAccelerator
void Initialize(const media::VideoCodecProfile profile,
IPC::Message* init_done_msg);
+ // Static query for supported profiles. This query calls the appropriate
+ // platform-specific version. |support_query_profile| is true when platform
+ // can support to query decoder profiles.
+ static std::vector<gpu::VideoDecodeAcceleratorSupportedProfile>
+ GetSupportedProfiles(bool* support_query_profile);
wuchengli 2015/03/18 08:02:37 Returning bool should be more common. Make *vector
henryhsu 2015/03/18 11:06:09 Then we should change GetSupportedProfiles in enco
+
private:
typedef scoped_ptr<media::VideoDecodeAccelerator>(
GpuVideoDecodeAccelerator::*CreateVDAFp)();

Powered by Google App Engine
This is Rietveld 408576698