summaryrefslogtreecommitdiffstats
path: root/libs/gui/SurfaceTexture.cpp
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2012-08-24 17:25:13 -0700
committerJamie Gennis <jgennis@google.com>2012-08-29 15:35:34 -0700
commit31a353da225af5329735451c761b430d82dfda1b (patch)
tree8fa7940f99fd7e80f13bcc58840456f48fcd9178 /libs/gui/SurfaceTexture.cpp
parentc1396dd14506d29e92fc047141d62b3d9246a72d (diff)
downloadframeworks_native-31a353da225af5329735451c761b430d82dfda1b.zip
frameworks_native-31a353da225af5329735451c761b430d82dfda1b.tar.gz
frameworks_native-31a353da225af5329735451c761b430d82dfda1b.tar.bz2
BufferQueue: clean up buffer counting
This change is a clean up of some of the handling of the maximum number of buffers that are allowed at once. It mostly renames a few member variables and methods, but it includes a couple small refactorings. Change-Id: I9959310f563d09583548d4291e1050a7bbc7d87d
Diffstat (limited to 'libs/gui/SurfaceTexture.cpp')
-rw-r--r--libs/gui/SurfaceTexture.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/gui/SurfaceTexture.cpp b/libs/gui/SurfaceTexture.cpp
index c0b20df..9ed23be 100644
--- a/libs/gui/SurfaceTexture.cpp
+++ b/libs/gui/SurfaceTexture.cpp
@@ -125,9 +125,9 @@ SurfaceTexture::SurfaceTexture(GLuint tex, bool allowSynchronousMode,
mBufferQueue->setConsumerUsageBits(DEFAULT_USAGE_FLAGS);
}
-status_t SurfaceTexture::setBufferCountServer(int bufferCount) {
+status_t SurfaceTexture::setDefaultMaxBufferCount(int bufferCount) {
Mutex::Autolock lock(mMutex);
- return mBufferQueue->setBufferCountServer(bufferCount);
+ return mBufferQueue->setDefaultMaxBufferCount(bufferCount);
}