| Index: media/renderers/gpu_video_accelerator_factories.h
|
| diff --git a/media/renderers/gpu_video_accelerator_factories.h b/media/renderers/gpu_video_accelerator_factories.h
|
| index 0d99fd7429e57e9c4b97fc41f61d4734d884a45a..c01d17de04f6b4dbcace8b4031ff1432c8eb8f49 100644
|
| --- a/media/renderers/gpu_video_accelerator_factories.h
|
| +++ b/media/renderers/gpu_video_accelerator_factories.h
|
| @@ -11,6 +11,7 @@
|
| #include "base/memory/scoped_ptr.h"
|
| #include "gpu/command_buffer/common/mailbox.h"
|
| #include "media/base/media_export.h"
|
| +#include "media/video/video_decode_accelerator.h"
|
| #include "media/video/video_encode_accelerator.h"
|
|
|
| namespace base {
|
| @@ -64,9 +65,17 @@ class MEDIA_EXPORT GpuVideoAcceleratorFactories
|
| // Returns the task runner the video accelerator runs on.
|
| virtual scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() = 0;
|
|
|
| - // Returns the supported codec profiles of video encode accelerator.
|
| - virtual std::vector<VideoEncodeAccelerator::SupportedProfile>
|
| - GetVideoEncodeAcceleratorSupportedProfiles() = 0;
|
| + // Returns true if video decode accelerator can query the supported codec
|
| + // profiles and store profiles in |supported_profiles|.
|
| + virtual bool GetVideoDecodeAcceleratorSupportedProfiles(
|
| + std::vector<VideoDecodeAccelerator::SupportedProfile>*
|
| + supported_profiles) = 0;
|
| +
|
| + // |supported_profiles| stores the supported codec profiles of video encode
|
| + // accelerator.
|
| + virtual void GetVideoEncodeAcceleratorSupportedProfiles(
|
| + std::vector<VideoEncodeAccelerator::SupportedProfile>*
|
| + supported_profiles) = 0;
|
|
|
| protected:
|
| friend class base::RefCountedThreadSafe<GpuVideoAcceleratorFactories>;
|
|
|