media: VaapiImageDecodeAcceleratorWorker & VA-API WebP decode Flag
This CL abstracts VaapiJpegDecodeAcceleratorWorker to
VaapiImageDecodeAcceleratorWorker, which now holds a map of
VaapiImageDecoder(s). The VaapiImageDecodeAcceleratorWorker picks the
appropriate decoder by inspecting the encoded data in the decode request
and submits the decode job, together with the decoder to the tusk runner
for execution.
In addition, this CL introduces a base::Feature flag in
gpu_finch_features to guard the implementation of decode acceleration of
WebP images in Chrome OS using the VA-API.
Reviewers: please note that I could not rename
vaapi_jpeg_decode_accelerator_worker.* to
vaapi_image_decode_accelerator_worker.* in this CL due to Gerrit
inability to identify the files we renamed
(https://crbug.com/gerrit/6441). See https://crrev.com/c/1721931 for
the renaming CL.
Bug: 877694
Change-Id: I6d700e8ac42408f98028d6509bd587c1a991d312
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1721072
Commit-Queue: Gil Dekel <[email protected]>
Reviewed-by: Andres Calderon Jaramillo <[email protected]>
Reviewed-by: Sunny Sachanandani <[email protected]>
Reviewed-by: Avi Drissman <[email protected]>
Reviewed-by: Eric Karl <[email protected]>
Reviewed-by: kylechar <[email protected]>
Cr-Commit-Position: refs/heads/master@{#681613}
diff --git a/chrome/browser/flag_descriptions.cc b/chrome/browser/flag_descriptions.cc
index 4d10794..ed6d4b6 100644
--- a/chrome/browser/flag_descriptions.cc
+++ b/chrome/browser/flag_descriptions.cc
@@ -3425,6 +3425,11 @@
"Enable or disable decode acceleration of JPEG images (as opposed to camera"
" captures) using the VA-API.";
+const char kVaapiWebPImageDecodeAccelerationName[] =
+ "VA-API WebP decode acceleration for images";
+const char kVaapiWebPImageDecodeAccelerationDescription[] =
+ "Enable or disable decode acceleration of WebP images using the VA-API.";
+
const char kVirtualKeyboardName[] = "Virtual Keyboard";
const char kVirtualKeyboardDescription[] = "Enable virtual keyboard support.";