summaryrefslogtreecommitdiff
path: root/libs/hwui/SkiaShader.cpp
diff options
context:
space:
mode:
author Chris Craik <ccraik@google.com> 2015-07-18 00:51:34 +0000
committer Android Git Automerger <android-git-automerger@android.com> 2015-07-18 00:51:34 +0000
commit3699c60323aca45eb0e385d6b4a27bd5861fadf2 (patch)
tree34c11cb48b8a9d1f29a7ad3ac5e2f83ca4ef4361 /libs/hwui/SkiaShader.cpp
parent37a69731cbcbc6a37e464cc7c022eece3a3bab8e (diff)
parent62a2696cd2b7387ce20ec9cb9805563f313da86a (diff)
am 62a2696c: am fbd2d949: am b6e41a08: am 0bb5c26b: Merge "Fix AssetAtlas usage in BitmapShaders" into mnc-dev
* commit '62a2696cd2b7387ce20ec9cb9805563f313da86a': Fix AssetAtlas usage in BitmapShaders
Diffstat (limited to 'libs/hwui/SkiaShader.cpp')
-rw-r--r--libs/hwui/SkiaShader.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/hwui/SkiaShader.cpp b/libs/hwui/SkiaShader.cpp
index a2aa2d103048..81d8516168dd 100644
--- a/libs/hwui/SkiaShader.cpp
+++ b/libs/hwui/SkiaShader.cpp
@@ -203,7 +203,13 @@ bool tryStoreBitmap(Caches& caches, const SkShader& shader, const Matrix4& model
return false;
}
- outData->bitmapTexture = caches.textureCache.get(&bitmap);
+ /*
+ * Bypass the AssetAtlas, since those textures:
+ * 1) require UV mapping, which isn't implemented in matrix computation below
+ * 2) can't handle REPEAT simply
+ * 3) are safe to upload here (outside of sync stage), since they're static
+ */
+ outData->bitmapTexture = caches.textureCache.getAndBypassAtlas(&bitmap);
if (!outData->bitmapTexture) return false;
outData->bitmapSampler = (*textureUnit)++;