summaryrefslogtreecommitdiffstats
path: root/include/gui
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2011-11-14 11:51:48 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2011-11-14 11:51:48 -0800
commit738d8cae2239d194429676f2889cfae3c8f7ba08 (patch)
tree1637c0bf5c8e8b4457393532214238209e810620 /include/gui
parentf579bb92c2032cd27aef72a1654c006933b22bbd (diff)
parentc93a151fde7d616c22b86ae458b3d015e3820d5e (diff)
downloadframeworks_base-738d8cae2239d194429676f2889cfae3c8f7ba08.zip
frameworks_base-738d8cae2239d194429676f2889cfae3c8f7ba08.tar.gz
frameworks_base-738d8cae2239d194429676f2889cfae3c8f7ba08.tar.bz2
am c93a151f: Merge "Define, document, and test the behavior of very large SurfaceTextures" into ics-mr1
* commit 'c93a151fde7d616c22b86ae458b3d015e3820d5e': Define, document, and test the behavior of very large SurfaceTextures
Diffstat (limited to 'include/gui')
-rw-r--r--include/gui/SurfaceTexture.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/gui/SurfaceTexture.h b/include/gui/SurfaceTexture.h
index e2d6179..d7dd4d6 100644
--- a/include/gui/SurfaceTexture.h
+++ b/include/gui/SurfaceTexture.h
@@ -79,7 +79,11 @@ public:
// pointed to by the buf argument and a status of OK is returned. If no
// slot is available then a status of -EBUSY is returned and buf is
// unmodified.
- virtual status_t dequeueBuffer(int *buf, uint32_t w, uint32_t h,
+ // The width and height parameters must be no greater than the minimum of
+ // GL_MAX_VIEWPORT_DIMS and GL_MAX_TEXTURE_SIZE (see: glGetIntegerv).
+ // An error due to invalid dimensions might not be reported until
+ // updateTexImage() is called.
+ virtual status_t dequeueBuffer(int *buf, uint32_t width, uint32_t height,
uint32_t format, uint32_t usage);
// queueBuffer returns a filled buffer to the SurfaceTexture. In addition, a
@@ -176,7 +180,11 @@ public:
// requestBuffers when a with and height of zero is requested.
// A call to setDefaultBufferSize() may trigger requestBuffers() to
// be called from the client.
- status_t setDefaultBufferSize(uint32_t w, uint32_t h);
+ // The width and height parameters must be no greater than the minimum of
+ // GL_MAX_VIEWPORT_DIMS and GL_MAX_TEXTURE_SIZE (see: glGetIntegerv).
+ // An error due to invalid dimensions might not be reported until
+ // updateTexImage() is called.
+ status_t setDefaultBufferSize(uint32_t width, uint32_t height);
// getCurrentBuffer returns the buffer associated with the current image.
sp<GraphicBuffer> getCurrentBuffer() const;