summaryrefslogtreecommitdiffstats
path: root/libs/gui/tests/Surface_test.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2011-06-28 19:09:31 -0700
committerMathias Agopian <mathias@google.com>2011-06-29 15:05:41 -0700
commit698c0873cf2e07bdc7fd1e72169aee2a19fa40d7 (patch)
treecf1a8a26a6568ad5dd1fa30d238b9651e09d3800 /libs/gui/tests/Surface_test.cpp
parent0748907d6a9a052fe54541cd7f6ec66b998fec3b (diff)
downloadframeworks_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 'libs/gui/tests/Surface_test.cpp')
-rw-r--r--libs/gui/tests/Surface_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/gui/tests/Surface_test.cpp b/libs/gui/tests/Surface_test.cpp
index 35c8640..450cdf1 100644
--- a/libs/gui/tests/Surface_test.cpp
+++ b/libs/gui/tests/Surface_test.cpp
@@ -36,10 +36,10 @@ protected:
ASSERT_TRUE(mSurfaceControl != NULL);
ASSERT_TRUE(mSurfaceControl->isValid());
- ASSERT_EQ(NO_ERROR, mComposerClient->openTransaction());
+ SurfaceComposerClient::openGlobalTransaction();
ASSERT_EQ(NO_ERROR, mSurfaceControl->setLayer(30000));
ASSERT_EQ(NO_ERROR, mSurfaceControl->show());
- ASSERT_EQ(NO_ERROR, mComposerClient->closeTransaction());
+ SurfaceComposerClient::closeGlobalTransaction();
mSurface = mSurfaceControl->getSurface();
ASSERT_TRUE(mSurface != NULL);