diff options
| author | 2011-06-29 16:15:56 -0700 | |
|---|---|---|
| committer | 2011-06-29 16:15:56 -0700 | |
| commit | 272aaa382f95c38221739f2287c29e414523a5cc (patch) | |
| tree | 53b22ed4bd672af3edc9fc9d3e1c5d63661a37b1 /services/input/SpriteController.cpp | |
| parent | 5231b0af515db51c722d4764ecf9412c145c93b6 (diff) | |
| parent | 439863f3b3e725b5de1cba4940a21900369961c0 (diff) | |
Merge "SF transactions are now O(1) wrt IPC instead of O(N)."
Diffstat (limited to 'services/input/SpriteController.cpp')
| -rw-r--r-- | services/input/SpriteController.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/services/input/SpriteController.cpp b/services/input/SpriteController.cpp index 08cc75e631eb..0ae2ab898d67 100644 --- a/services/input/SpriteController.cpp +++ b/services/input/SpriteController.cpp @@ -252,11 +252,7 @@ void SpriteController::doUpdateSprites() { | DIRTY_VISIBILITY | DIRTY_HOTSPOT))))) { status_t status; if (!haveTransaction) { - status = mSurfaceComposerClient->openTransaction(); - if (status) { - LOGE("Error %d opening transation to update sprite surface.", status); - break; - } + SurfaceComposerClient::openGlobalTransaction(); haveTransaction = true; } @@ -322,10 +318,7 @@ void SpriteController::doUpdateSprites() { } if (haveTransaction) { - status_t status = mSurfaceComposerClient->closeTransaction(); - if (status) { - LOGE("Error %d closing transaction to update sprite surface.", status); - } + SurfaceComposerClient::closeGlobalTransaction(); } // If any surfaces were changed, write back the new surface properties to the sprites. |