summaryrefslogtreecommitdiffstats
path: root/libs/hwui/Caches.h
diff options
context:
space:
mode:
authorjiayuanr <jiayuanr@codeaurora.org>2014-06-10 17:41:49 +0800
committerDigish Pandya <digishp@codeaurora.org>2014-06-16 09:29:22 +0530
commit4a473c7d9406a2d6f6792f0f48d933424740ec5c (patch)
treedbbeedb8b150c6f5531dd152fcefe10208129167 /libs/hwui/Caches.h
parent1a3908e95926acd8add3858be571fe23fa9d047a (diff)
downloadframeworks_base-4a473c7d9406a2d6f6792f0f48d933424740ec5c.zip
frameworks_base-4a473c7d9406a2d6f6792f0f48d933424740ec5c.tar.gz
frameworks_base-4a473c7d9406a2d6f6792f0f48d933424740ec5c.tar.bz2
Fix the texture ID reuse issue in HWUI.
Issue: When the layer of previous frame is destroyed, it doesn't clear the texture id in mBoundTextures[mTextureUnit], so in the next frame, if glGenTexture returns same texture ID of the previous frame, the new texture is not bound. CRs-fixed: 671736 Change-Id: Ifc5fd2115fb1863b3c006ab14b0faabeaeb4eab4
Diffstat (limited to 'libs/hwui/Caches.h')
-rw-r--r--libs/hwui/Caches.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/hwui/Caches.h b/libs/hwui/Caches.h
index 282aee9..544757a 100644
--- a/libs/hwui/Caches.h
+++ b/libs/hwui/Caches.h
@@ -264,6 +264,11 @@ public:
void resetBoundTextures();
/**
+ * Clear the cache of bound textures.
+ */
+ void unbindTexture(GLuint texture);
+
+ /**
* Sets the scissor for the current surface.
*/
bool setScissor(GLint x, GLint y, GLint width, GLint height);