cc: Refactor OneCopyTileTaskWorkerPool.
Move the staging buffer pool related functionalities out to its own
file. To isolate the usage of |lock_| from OneCopyTileTaskWorkerPool,
the PlaybackAndCopyOnWorkerThread() is splitted into few other
functions.
PlaybackAndCopyOnWorkerThread() {
StagingBufferPool::AcquireStagingBuffer(); // with |lock_|
PlaybackToStagingBuffer(); // without |lock_|
CopyOnWorkerThread(); // without |lock_|, with context lock
StagingBufferPool::ReleaseStagingBuffer(); // with |lock_|
}
BUG=599863
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1861623003
Cr-Commit-Position: refs/heads/master@{#386170}
6 files changed