summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2011-07-30 16:00:11 -0700
committerJamie Gennis <jgennis@google.com>2011-07-30 16:00:11 -0700
commit1c121f68fc6ac4abff17203b55253d6aeee64bc5 (patch)
tree3202a3c2241151a7fa2974e71349e5ee25a54d42 /opengl/tests/gl_basic/gl_basic.cpp
parent8d944d254bd8054e9926ac651a7867083d36752d (diff)
SurfaceTexture: allow set_buffer_count(2)
This change relaxes an error check in SurfaceTexture::setBufferCount to allow clients to explicitly set a buffer count of 2. The clients that will do this are camera and video decode. Previously it was thought that for those clients we would always use async mode, which requires a minimum of 3 buffers. However, we now believe that for some devices it may make sense to use synchronous mode (with 2 buffers) to reduce memory usage. Bug: 5088418 Change-Id: I620a0ef75075745be9d6c8219e0246aaf33ba950
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions