summaryrefslogtreecommitdiffstats
path: root/libs/hwui/TextureCache.h
diff options
context:
space:
mode:
authorRomain Guy <romainguy@android.com>2010-09-22 14:13:32 -0700
committerRomain Guy <romainguy@android.com>2010-09-22 14:13:32 -0700
commit8c749f87d29e1a363ddf9027c3a51753c612d510 (patch)
tree839f894a1f9749b5d32136206ca494dea9c16294 /libs/hwui/TextureCache.h
parentadaba84ad76f70d833e140d5c28a0de58c8f19d2 (diff)
downloadframeworks_base-8c749f87d29e1a363ddf9027c3a51753c612d510.zip
frameworks_base-8c749f87d29e1a363ddf9027c3a51753c612d510.tar.gz
frameworks_base-8c749f87d29e1a363ddf9027c3a51753c612d510.tar.bz2
Fix texture corruption issue, faster re-upload of textures.
Bug #2950691 Change-Id: I57e2bc1d1a23e8683c25de7d09d6f5af2df59f41
Diffstat (limited to 'libs/hwui/TextureCache.h')
-rw-r--r--libs/hwui/TextureCache.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/hwui/TextureCache.h b/libs/hwui/TextureCache.h
index a63789a..7cf66d9 100644
--- a/libs/hwui/TextureCache.h
+++ b/libs/hwui/TextureCache.h
@@ -79,6 +79,9 @@ private:
*/
void generateTexture(SkBitmap* bitmap, Texture* texture, bool regenerate = false);
+ void uploadToTexture(bool resize, GLenum format, GLsizei width, GLsizei height,
+ GLenum type, const GLvoid * data);
+
void init();
GenerationCache<SkBitmap*, Texture*> mCache;