CacheStorage: Remove blob thread hopping.
This CL removes various cross-thread affordances necessary to run cache_storage on a sequence off the IO thread. Specifically: 1. We bind the BlobDataItemReader implementation directly on the cache_storage sequence. 2. We remove cross-thread hopping that were previously required when blob Read/ReadSideData were called on the IO thread. These implementations are now generally inlined. 3. We remove class members used to cache values for GetSize(). These can now be computed on demand. 4. Many thread assertions were converted to sequence checks. We still need one cross-thread hop to register the blob at creation time since the BlobStorageContextImpl is still bound to the IO thread. Bug: 1021210 Change-Id: I6232d27959bcd1b00e2fb117ce443c53460ecff6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1898173 Commit-Queue: Ben Kelly <wanderview@chromium.org> Reviewed-by:enne <enne@chromium.org> Cr-Commit-Position: refs/heads/master@{#713243}
Showing
This diff is collapsed.
Please register or sign in to comment