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

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

Issue 795633005: Add VDA supported profile to GPUInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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_encode_accelerator.h
diff --git a/content/common/gpu/media/gpu_video_encode_accelerator.h b/content/common/gpu/media/gpu_video_encode_accelerator.h
index e94a2dda8a66a921f63898abe7e2677de597bd15..c9ffe615e43c0e102f7a2d09744fa2a7165712de 100644
--- a/content/common/gpu/media/gpu_video_encode_accelerator.h
+++ b/content/common/gpu/media/gpu_video_encode_accelerator.h
@@ -57,13 +57,13 @@ class GpuVideoEncodeAccelerator
// GpuCommandBufferStub::DestructionObserver implementation.
void OnWillDestroyStub() override;
- // Static query for supported profiles. This query calls the appropriate
- // platform-specific version.
- static std::vector<gpu::VideoEncodeAcceleratorSupportedProfile>
- GetSupportedProfiles();
- static std::vector<gpu::VideoEncodeAcceleratorSupportedProfile>
- ConvertMediaToGpuProfiles(const std::vector<
- media::VideoEncodeAccelerator::SupportedProfile>& media_profiles);
+ // Static query for supported profiles. This query calls the appropriate
+ // platform-specific version and stores supported encoder profiles in
+ // |supported_profiles|. |supported_profiles| would not have duplicate codec
+ // profile.
+ static void GetSupportedProfiles(
+ std::vector<gpu::VideoEncodeAcceleratorSupportedProfile>*
+ supported_profiles);
private:
typedef scoped_ptr<media::VideoEncodeAccelerator>(*CreateVEAFp)();

Powered by Google App Engine
This is Rietveld 408576698