diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/gui/SurfaceTexture.h | 6 |
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. |