summaryrefslogtreecommitdiff
path: root/libs/hwui/TextDropShadowCache.cpp
diff options
context:
space:
mode:
author Raph Levien <raph@google.com> 2012-07-20 14:24:19 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2012-07-20 14:24:20 -0700
commit00755fed35e4a91291c42a8a47bed8b957e9f8e1 (patch)
tree0e680f4f9791bc8eef13ea7c0cce60ceeb86f8f6 /libs/hwui/TextDropShadowCache.cpp
parent0cb48705ad6e4be93c57d528be2230d0504340b3 (diff)
parent416a847633680d94efb926837efdc18726d54918 (diff)
Merge "Add drop shadow for drawPosText in hwui renderer."
Diffstat (limited to 'libs/hwui/TextDropShadowCache.cpp')
-rw-r--r--libs/hwui/TextDropShadowCache.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/hwui/TextDropShadowCache.cpp b/libs/hwui/TextDropShadowCache.cpp
index bef137371d44..93aa8a5c0af3 100644
--- a/libs/hwui/TextDropShadowCache.cpp
+++ b/libs/hwui/TextDropShadowCache.cpp
@@ -102,13 +102,13 @@ void TextDropShadowCache::clear() {
}
ShadowTexture* TextDropShadowCache::get(SkPaint* paint, const char* text, uint32_t len,
- int numGlyphs, uint32_t radius) {
- ShadowText entry(paint, radius, len, text);
+ int numGlyphs, uint32_t radius, const float* positions) {
+ ShadowText entry(paint, radius, len, text, positions);
ShadowTexture* texture = mCache.get(entry);
if (!texture) {
FontRenderer::DropShadow shadow = mRenderer->renderDropShadow(paint, text, 0,
- len, numGlyphs, radius);
+ len, numGlyphs, radius, positions);
texture = new ShadowTexture;
texture->left = shadow.penX;