From 4708098a8d03f9d0e7b5e6931f9c52c092e78fa9 Mon Sep 17 00:00:00 2001 From: dalecurtis Date: Fri, 18 Mar 2016 21:54:11 -0700 Subject: Expose encrypted_only attribute on VDA supported profiles. This allows us to reduce video playback startup for software codecs from ~50-300ms (N5..Android One) to ~microseconds. BUG=596236 CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel Review URL: https://codereview.chromium.org/1820553002 Cr-Commit-Position: refs/heads/master@{#382185} --- gpu/config/gpu_info.cc | 1 + gpu/config/gpu_info.h | 1 + 2 files changed, 2 insertions(+) (limited to 'gpu') diff --git a/gpu/config/gpu_info.cc b/gpu/config/gpu_info.cc index 4b442f3..58a871f 100644 --- a/gpu/config/gpu_info.cc +++ b/gpu/config/gpu_info.cc @@ -28,6 +28,7 @@ void EnumerateVideoDecodeAcceleratorSupportedProfile( enumerator->AddInt("maxResolutionHeight", profile.max_resolution.height()); enumerator->AddInt("minResolutionWidth", profile.min_resolution.width()); enumerator->AddInt("minResolutionHeight", profile.min_resolution.height()); + enumerator->AddBool("encrypted_only", profile.encrypted_only); enumerator->EndVideoDecodeAcceleratorSupportedProfile(); } diff --git a/gpu/config/gpu_info.h b/gpu/config/gpu_info.h index 568bd46..6e9817a 100644 --- a/gpu/config/gpu_info.h +++ b/gpu/config/gpu_info.h @@ -60,6 +60,7 @@ struct GPU_EXPORT VideoDecodeAcceleratorSupportedProfile { VideoCodecProfile profile; gfx::Size max_resolution; gfx::Size min_resolution; + bool encrypted_only; }; using VideoDecodeAcceleratorSupportedProfiles = -- cgit v1.1