Modify DecoderPriorityCB so that it's called per-decoder
Currently, `DecoderSelector::decoder_priority_cb_` is called once per-config, and can only return whether platform decoders specifically should be prioritized, deprioritized, or left as-is. This is somewhat inflexible, as it disallows skipping or deprioritizing individual decoders based on other characteristics. This CL modifies the decoder selector so that it runs the given predicate/callback once per decoder, and modifies `DecoderPriority` to be one of `kDeprioritized`, `kSkipped`, or `kNormal`. kNormal was chosen instead of `kPrioritized` since it better reflects the mechanism of what's happening. It's not being prioritized, it's just being left as-is in the queue. Change-Id: I9dfcecec5454201501dd1d09c23638da634fe188 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2388269Reviewed-by:Frank Liberato <liberato@chromium.org> Commit-Queue: Will Cassella <cassew@google.com> Cr-Commit-Position: refs/heads/master@{#805994}
Showing
This diff is collapsed.
Please register or sign in to comment