-
Dominik Laskowski authored
DisplayConfigurator serializes asynchronous content protection requests by storing pending query/apply tasks as closures in a queue. It also maintains queues for the query/apply callbacks supplied by the client. This CL consolidates the queues by relating QueryContentProtectionTask and ApplyContentProtectionTask by a common base class. It also replaces the Boolean for task success/failure with tri-state, whose extra bit is used to distinguish killed tasks during DisplayConfigurator destruction and (in a future CL) display reconfiguration. Bug: 929449 Test: display_unittests Change-Id: I3640b657ed5952c40e0999836ae92287984a3e9d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1495201Reviewed-by:
Daniel Nicoara <dnicoara@chromium.org> Reviewed-by:
Mitsuru Oshima <oshima@chromium.org> Commit-Queue: Dominik Laskowski <domlaskowski@chromium.org> Cr-Commit-Position: refs/heads/master@{#649234}
f206ba57