Commit adcfe85f authored by Khushal's avatar Khushal Committed by Commit Bot

content: Disable SurfaceControl if AImageReader is disabled.

SurfaceControl requires AImageReader to support video overlays. Disable
it if AImageReader is disabled.

R=piman@chromium.org

Bug: 889328
Change-Id: I624f88b3759ce79eff296f75d82ac5a71616837d
Reviewed-on: https://chromium-review.googlesource.com/c/1431232
Commit-Queue: Khushal <khushalsagar@chromium.org>
Commit-Queue: Antoine Labour <piman@chromium.org>
Auto-Submit: Khushal <khushalsagar@chromium.org>
Reviewed-by: default avatarAntoine Labour <piman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#625348}
parent 04b82ad6
...@@ -57,6 +57,8 @@ bool ShouldEnableAndroidSurfaceControl(const base::CommandLine& cmd_line) { ...@@ -57,6 +57,8 @@ bool ShouldEnableAndroidSurfaceControl(const base::CommandLine& cmd_line) {
#else #else
if (!base::FeatureList::IsEnabled(features::kVizDisplayCompositor)) if (!base::FeatureList::IsEnabled(features::kVizDisplayCompositor))
return false; return false;
if (!base::FeatureList::IsEnabled(features::kAImageReaderMediaPlayer))
return false;
return base::FeatureList::IsEnabled(features::kAndroidSurfaceControl); return base::FeatureList::IsEnabled(features::kAndroidSurfaceControl);
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment