summaryrefslogtreecommitdiff
path: root/libs/hwui/TextureCache.h
diff options
context:
space:
mode:
author Romain Guy <romainguy@google.com> 2013-09-24 18:44:54 -0700
committer Romain Guy <romainguy@google.com> 2013-09-25 22:31:31 +0000
commit318ae7bb92869d99a05388c598ad105e7aa4cdbd (patch)
tree45220c2560535adb2b4c4dc81470ce7c20347d27 /libs/hwui/TextureCache.h
parent8e4b16d67851ad5eb91c82955b3c3d59f0770b6b (diff)
Take SkBitmap's stride into account when uploading textures
Bug #10151807 Change-Id: I7ba4804fa3619088fea70eb55f10519fff0bf5f0
Diffstat (limited to 'libs/hwui/TextureCache.h')
-rw-r--r--libs/hwui/TextureCache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/TextureCache.h b/libs/hwui/TextureCache.h
index 80bb22e27f09..57fc19a16f49 100644
--- a/libs/hwui/TextureCache.h
+++ b/libs/hwui/TextureCache.h
@@ -125,8 +125,8 @@ private:
void generateTexture(SkBitmap* bitmap, Texture* texture, bool regenerate = false);
void uploadLoFiTexture(bool resize, SkBitmap* bitmap, uint32_t width, uint32_t height);
- void uploadToTexture(bool resize, GLenum format, GLsizei width, GLsizei height,
- GLenum type, const GLvoid * data);
+ void uploadToTexture(bool resize, GLenum format, GLsizei stride,
+ GLsizei width, GLsizei height, GLenum type, const GLvoid * data);
void init();