Chromium Code Reviews| Index: cc/CCTextureUpdateController.cpp |
| diff --git a/cc/CCTextureUpdateController.cpp b/cc/CCTextureUpdateController.cpp |
| index 32923e75bbbb6329eb199926b971ba7b69b96a04..c01c45247fd8c9eb34dc0035f820949aba116c65 100644 |
| --- a/cc/CCTextureUpdateController.cpp |
| +++ b/cc/CCTextureUpdateController.cpp |
| @@ -159,9 +159,11 @@ bool CCTextureUpdateController::updateMoreTexturesIfEnoughTimeRemaining() |
| if (!m_queue->fullUploadSize()) |
| return false; |
|
reveman
2012/09/22 00:50:26
And I think you need to include this in the loop b
|
| - bool hasTimeRemaining = monotonicTimeNow() < m_monotonicTimeLimit - updateMoreTexturesTime(); |
| - if (hasTimeRemaining) |
| + double timeRemaining = m_monotonicTimeLimit - monotonicTimeNow(); |
| + while (timeRemaining > updateMoreTexturesTime() && m_queue->fullUploadSize() && !m_uploader->isBusy()) { |
| updateMoreTexturesNow(); |
| + timeRemaining -= updateMoreTexturesTime(); |
| + } |
| return true; |
| } |