AImagereader based implementation for MediaPlayer.
Create an AImageReader based implementation to be used
for running videos via MediaPlayer. This new implementation
will be used for android O+ whereas SurfaceTexture based
implementation will continue to be used for older android
versions.
Added a feature flag to enable/disable this feature and to
allow rollout using Finch experiment.
Bug: 838725
Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel
Change-Id: I5047b162b6d1729cc4a5c4c8dd31507252a5a389
Reviewed-on: https://chromium-review.googlesource.com/1133966
Reviewed-by: Robert Kaplow (slow) <[email protected]>
Reviewed-by: Antoine Labour <[email protected]>
Reviewed-by: Eric Karl <[email protected]>
Reviewed-by: Tom Sepez <[email protected]>
Reviewed-by: Thomas Guilbert <[email protected]>
Commit-Queue: vikas soni <[email protected]>
Cr-Commit-Position: refs/heads/master@{#580782}
diff --git a/gpu/config/gpu_finch_features.cc b/gpu/config/gpu_finch_features.cc
index 6b9f27d..b2b52ec 100644
--- a/gpu/config/gpu_finch_features.cc
+++ b/gpu/config/gpu_finch_features.cc
@@ -3,8 +3,6 @@
// found in the LICENSE file.
#include "gpu/config/gpu_finch_features.h"
-#include "build/build_config.h"
-
namespace features {
// Enable GPU Rasterization by default. This can still be overridden by
@@ -41,4 +39,10 @@
const base::Feature kDirectCompositionOverlays{
"DirectCompositionOverlays", base::FEATURE_ENABLED_BY_DEFAULT};
+#if defined(OS_ANDROID)
+// Use android AImageReader when playing videos with MediaPlayer.
+const base::Feature kAImageReaderMediaPlayer{"AImageReaderMediaPlayer",
+ base::FEATURE_DISABLED_BY_DEFAULT};
+#endif
+
} // namespace features