media/gpu/test: Change logic to disable frame validation in video decoder tests.
This CL changes the logic used to disable frame validation when running the
video_decode_accelerator_tests binary. Currently when '--disable_validator' is
specified the frame validator will be disabled and the thumbnail test will be
run.
This CL changes this logic to automatically switch to the thumnail test when
support for import mode is not detected. The '--disable_validator' parameter is
now used to both disable the video frame validator (on platforms supporting
import mode) and the thumbnail test (on platforms only supporting allocate
mode).
TEST=./video_decode_accelerator_tests on nyan_big
BUG=None
Change-Id: Ia79acd8557ad102ac6ab4c97a5d1502818a14a83
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1688493
Commit-Queue: David Staessens <[email protected]>
Reviewed-by: Hirokazu Honda <[email protected]>
Cr-Commit-Position: refs/heads/master@{#676238}
diff --git a/docs/media/gpu/video_decoder_test_usage.md b/docs/media/gpu/video_decoder_test_usage.md
index bfaba76..f09c117 100644
--- a/docs/media/gpu/video_decoder_test_usage.md
+++ b/docs/media/gpu/video_decoder_test_usage.md
@@ -63,8 +63,7 @@
-v enable verbose mode, e.g. -v=2.
--vmodule enable verbose mode for the specified module,
e.g. --vmodule=*media/gpu*=2.
- --disable_validator disable frame validation, useful on old
- platforms that don't support import mode.
+ --disable_validator disable frame validation.
--output_frames write all decoded video frames to the
"<testname>" folder.
--output_folder overwrite the default output folder used when