diff options
Diffstat (limited to 'WebCore/platform/graphics/android/TexturesGenerator.cpp')
-rw-r--r-- | WebCore/platform/graphics/android/TexturesGenerator.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/WebCore/platform/graphics/android/TexturesGenerator.cpp b/WebCore/platform/graphics/android/TexturesGenerator.cpp index fae7ece..ad5de1f 100644 --- a/WebCore/platform/graphics/android/TexturesGenerator.cpp +++ b/WebCore/platform/graphics/android/TexturesGenerator.cpp @@ -51,7 +51,7 @@ namespace WebCore { -void TexturesGenerator::scheduleOperation(QueuedOperation* operation) +void TexturesGenerator::scheduleOperation(QueuedOperation* operation, bool scheduleFirst) { { android::Mutex::Autolock lock(mRequestedOperationsLock); @@ -68,7 +68,10 @@ void TexturesGenerator::scheduleOperation(QueuedOperation* operation) } } - mRequestedOperations.append(operation); + if (scheduleFirst) + mRequestedOperations.prepend(operation); + else + mRequestedOperations.append(operation); } mRequestedOperationsCond.signal(); } |