diff options
author | Jamie Gennis <jgennis@google.com> | 2010-11-11 15:26:21 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-11-11 15:26:21 -0800 |
commit | 7ab17a3426d3565f72c6832bb650d1709cbf52cf (patch) | |
tree | 90e188808e39d3447b880ca20cac6b2fad137921 /libs/surfaceflinger_client/tests/SharedBufferStack/SharedBufferStackTest.cpp | |
parent | e1ccfb7f6e63f639988d9b50f060612f96c49c3f (diff) | |
parent | 6c925d00e131e40811897e0ddc332d6f5bc83178 (diff) | |
download | frameworks_base-7ab17a3426d3565f72c6832bb650d1709cbf52cf.zip frameworks_base-7ab17a3426d3565f72c6832bb650d1709cbf52cf.tar.gz frameworks_base-7ab17a3426d3565f72c6832bb650d1709cbf52cf.tar.bz2 |
Merge "Implement reducing the buffer count of a Surface."
Diffstat (limited to 'libs/surfaceflinger_client/tests/SharedBufferStack/SharedBufferStackTest.cpp')
-rw-r--r-- | libs/surfaceflinger_client/tests/SharedBufferStack/SharedBufferStackTest.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/surfaceflinger_client/tests/SharedBufferStack/SharedBufferStackTest.cpp b/libs/surfaceflinger_client/tests/SharedBufferStack/SharedBufferStackTest.cpp index f409f48..7ef5926 100644 --- a/libs/surfaceflinger_client/tests/SharedBufferStack/SharedBufferStackTest.cpp +++ b/libs/surfaceflinger_client/tests/SharedBufferStack/SharedBufferStackTest.cpp @@ -32,7 +32,8 @@ void test0(SharedBufferServer& s, SharedBufferClient& c, size_t num, int* list); int main(int argc, char** argv) { SharedClient client; - SharedBufferServer s(&client, 0, 4, 0); + sp<SharedBufferServer> ps(new SharedBufferServer(&client, 0, 4, 0)); + SharedBufferServer& s(*ps); SharedBufferClient c(&client, 0, 4, 0); printf("basic test 0\n"); @@ -67,6 +68,10 @@ int main(int argc, char** argv) int list3[6] = {3, 2, 1, 4, 5, 0}; test0(s, c, 6, list3); + c.setBufferCount(4, resize); + int list4[4] = {1, 2, 3, 0}; + test0(s, c, 4, list4); + return 0; } |