Replay buffer commands on paint thread when OMTP is enabled (bug 1399692 part 7, r=bas)

This commit does the work of actually dispatching the recorded buffer operations
to the paint thread, and removing some main thread asserts from TextureClient.

MozReview-Commit-ID: CN3RoQPz9fP
This commit is contained in:
Ryan Hunt
2017-10-26 00:47:17 -04:00
parent 09b7803bd1
commit 1fb4b0de8d
11 changed files with 167 additions and 19 deletions

View File

@@ -692,10 +692,6 @@ TextureClient::BorrowDrawTarget()
return nullptr;
}
if (!NS_IsMainThread()) {
return nullptr;
}
if (!mBorrowedDrawTarget) {
mBorrowedDrawTarget = mData->BorrowDrawTarget();
#ifdef DEBUG