summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorArne Coucheron <arco68@gmail.com>2012-05-15 17:41:16 +0200
committerJames Sullins <jcsullins@gmail.com>2012-05-20 14:55:39 -0500
commit2961a0f0d63285caed48ea1d2573db347ffeb5ab (patch)
treeddc4ef5418556593dc3fc89fcf2e103a63135b1f /include
parent0a872611c6ebe9a8f67dfb294e18b06c8fffd52d (diff)
downloadframeworks_base-2961a0f0d63285caed48ea1d2573db347ffeb5ab.zip
frameworks_base-2961a0f0d63285caed48ea1d2573db347ffeb5ab.tar.gz
frameworks_base-2961a0f0d63285caed48ea1d2573db347ffeb5ab.tar.bz2
surfacetexture: Add option for choosing texture target on old Adrenos
Commit 417d89259effb373c0c3a411b7a7d1f7f75b2eb2 removed a workaround for old Adreno drivers which are not optimized for GL_TEXTURE_EXTERNAL_OES. This causes performance issues for some platforms. Add a compile time option to enable this. Change-Id: I3389c7c4cc997b21d1ddb445262ac184ff37e598
Diffstat (limited to 'include')
-rw-r--r--include/gui/SurfaceTexture.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/gui/SurfaceTexture.h b/include/gui/SurfaceTexture.h
index e8608915..36c5b72 100644
--- a/include/gui/SurfaceTexture.h
+++ b/include/gui/SurfaceTexture.h
@@ -141,7 +141,7 @@ public:
//
// This call may only be made while the OpenGL ES context to which the
// target texture belongs is bound to the calling thread.
- status_t updateTexImage();
+ status_t updateTexImage(bool isComposition = false);
// setBufferCountServer set the buffer count. If the client has requested
// a buffer count using setBufferCount, the server-buffer count will
@@ -506,7 +506,11 @@ private:
// glCopyTexSubImage to read from the texture. This is a hack to work
// around a GL driver limitation on the number of FBO attachments, which the
// browser's tile cache exceeds.
+#ifdef DECIDE_TEXTURE_TARGET
+ GLenum mTexTarget;
+#else
const GLenum mTexTarget;
+#endif
// mFrameCounter is the free running counter, incremented for every buffer queued
// with the surface Texture.