diff options
| author | henryhsu <henryhsu@chromium.org> | 2015-07-23 01:34:37 -0700 |
|---|---|---|
| committer | Commit bot <commit-bot@chromium.org> | 2015-07-23 08:35:25 +0000 |
| commit | 74f6ef1d4854ce9d4574b40a31b063bc60ca6baa (patch) | |
| tree | c693ee504647ccfec68ae4b126f3b04cb75c6942 /content/gpu/gpu_main.cc | |
| parent | 768d90d3853fa121580923b0944998354c592a01 (diff) | |
| download | chromium_src-74f6ef1d4854ce9d4574b40a31b063bc60ca6baa.zip chromium_src-74f6ef1d4854ce9d4574b40a31b063bc60ca6baa.tar.gz chromium_src-74f6ef1d4854ce9d4574b40a31b063bc60ca6baa.tar.bz2 | |
Add Jpeg decoder profile to GpuInfo
Browser process uses GpuInfo to decide whether jpeg hardware decode is
supported.
BUG=503568
TEST=run apprtc on exynos and intel platform.
Review URL: https://codereview.chromium.org/1239643003
Cr-Commit-Position: refs/heads/master@{#340058}
Diffstat (limited to 'content/gpu/gpu_main.cc')
| -rw-r--r-- | content/gpu/gpu_main.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc index 0bd536a..e93f30f 100644 --- a/content/gpu/gpu_main.cc +++ b/content/gpu/gpu_main.cc @@ -25,6 +25,7 @@ #include "content/common/gpu/gpu_config.h" #include "content/common/gpu/gpu_memory_buffer_factory.h" #include "content/common/gpu/gpu_messages.h" +#include "content/common/gpu/media/gpu_jpeg_decode_accelerator.h" #include "content/common/gpu/media/gpu_video_decode_accelerator.h" #include "content/common/gpu/media/gpu_video_encode_accelerator.h" #include "content/common/sandbox_linux/sandbox_linux.h" @@ -347,6 +348,8 @@ int GpuMain(const MainFunctionParams& parameters) { content::GpuVideoDecodeAccelerator::GetSupportedProfiles(); gpu_info.video_encode_accelerator_supported_profiles = content::GpuVideoEncodeAccelerator::GetSupportedProfiles(); + gpu_info.jpeg_decode_accelerator_supported = + content::GpuJpegDecodeAccelerator::IsSupported(); } else { dead_on_arrival = true; } |
