diff options
author | Mathias Agopian <mathias@google.com> | 2011-06-28 19:09:31 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2011-06-29 15:05:41 -0700 |
commit | 698c0873cf2e07bdc7fd1e72169aee2a19fa40d7 (patch) | |
tree | cf1a8a26a6568ad5dd1fa30d238b9651e09d3800 /services/surfaceflinger/tests/resize | |
parent | 0748907d6a9a052fe54541cd7f6ec66b998fec3b (diff) | |
download | frameworks_native-698c0873cf2e07bdc7fd1e72169aee2a19fa40d7.zip frameworks_native-698c0873cf2e07bdc7fd1e72169aee2a19fa40d7.tar.gz frameworks_native-698c0873cf2e07bdc7fd1e72169aee2a19fa40d7.tar.bz2 |
SF transactions are now O(1) wrt IPC instead of O(N).
Change-Id: I57669852cbf6aabae244ea86940a08a5a27ffc43
Diffstat (limited to 'services/surfaceflinger/tests/resize')
-rw-r--r-- | services/surfaceflinger/tests/resize/resize.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/services/surfaceflinger/tests/resize/resize.cpp b/services/surfaceflinger/tests/resize/resize.cpp index 18c54b3..56b2a8f 100644 --- a/services/surfaceflinger/tests/resize/resize.cpp +++ b/services/surfaceflinger/tests/resize/resize.cpp @@ -43,9 +43,9 @@ int main(int argc, char** argv) PIXEL_FORMAT_RGB_565); - client->openTransaction(); + SurfaceComposerClient::openGlobalTransaction(); surface->setLayer(100000); - client->closeTransaction(); + SurfaceComposerClient::closeGlobalTransaction(); Surface::SurfaceInfo info; surface->lock(&info); @@ -57,9 +57,9 @@ int main(int argc, char** argv) android_memset16((uint16_t*)info.bits, 0x07E0, bpr*info.h); surface->unlockAndPost(); - client->openTransaction(); + SurfaceComposerClient::openGlobalTransaction(); surface->setSize(320, 240); - client->closeTransaction(); + SurfaceComposerClient::closeGlobalTransaction(); IPCThreadState::self()->joinThreadPool(); |