summaryrefslogtreecommitdiffstats
path: root/gpu
diff options
context:
space:
mode:
authordalecurtis <dalecurtis@chromium.org>2016-03-18 21:54:11 -0700
committerCommit bot <commit-bot@chromium.org>2016-03-19 05:03:16 +0000
commit4708098a8d03f9d0e7b5e6931f9c52c092e78fa9 (patch)
tree1460370fb7cedee1f5cff474dd9d03a8e1cb6ac4 /gpu
parentaa65f0b204028f560fb98c3c7ab2f2eeca3aaca2 (diff)
downloadchromium_src-4708098a8d03f9d0e7b5e6931f9c52c092e78fa9.zip
chromium_src-4708098a8d03f9d0e7b5e6931f9c52c092e78fa9.tar.gz
chromium_src-4708098a8d03f9d0e7b5e6931f9c52c092e78fa9.tar.bz2
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}
Diffstat (limited to 'gpu')
-rw-r--r--gpu/config/gpu_info.cc1
-rw-r--r--gpu/config/gpu_info.h1
2 files changed, 2 insertions, 0 deletions
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 =