diff options
author | Romain Guy <romainguy@google.com> | 2011-03-07 22:45:52 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-03-07 22:45:52 -0800 |
commit | f7098ce95dde39a33ca280bd1ef9a13259e7b7e5 (patch) | |
tree | d65b1a845662999e02de568916d65af1eacfd0a1 /libs/hwui/TextDropShadowCache.h | |
parent | 8b4a4207f6683ee3d9aaf9510a64c2f3589a5d69 (diff) | |
parent | d00353fe3191571a6773ef2d11921cfcff260bc4 (diff) | |
download | frameworks_base-f7098ce95dde39a33ca280bd1ef9a13259e7b7e5.zip frameworks_base-f7098ce95dde39a33ca280bd1ef9a13259e7b7e5.tar.gz frameworks_base-f7098ce95dde39a33ca280bd1ef9a13259e7b7e5.tar.bz2 |
am d00353fe: am bc8a8e8c: Merge "Add support for partial invalidates in WebView Bug #3461349" into honeycomb-mr1
* commit 'd00353fe3191571a6773ef2d11921cfcff260bc4':
Add support for partial invalidates in WebView Bug #3461349
Diffstat (limited to 'libs/hwui/TextDropShadowCache.h')
-rw-r--r-- | libs/hwui/TextDropShadowCache.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/libs/hwui/TextDropShadowCache.h b/libs/hwui/TextDropShadowCache.h index 62c4250..d46686d 100644 --- a/libs/hwui/TextDropShadowCache.h +++ b/libs/hwui/TextDropShadowCache.h @@ -42,6 +42,17 @@ struct ShadowText { textSize = paint->getTextSize(); typeface = paint->getTypeface(); + + flags = 0; + if (paint->isFakeBoldText()) { + flags |= Font::kFakeBold; + } + + const float skewX = paint->getTextSkewX(); + italicStyle = *(uint32_t*) &skewX; + + const float scaleXFloat = paint->getTextScaleX(); + scaleX = *(uint32_t*) &scaleXFloat; } ~ShadowText() { @@ -51,6 +62,9 @@ struct ShadowText { uint32_t len; float textSize; SkTypeface* typeface; + uint32_t flags; + uint32_t italicStyle; + uint32_t scaleX; const char16_t* text; String16 str; @@ -65,7 +79,13 @@ struct ShadowText { LTE_INT(radius) { LTE_FLOAT(textSize) { LTE_INT(typeface) { - return strncmp16(text, rhs.text, len >> 1) < 0; + LTE_INT(flags) { + LTE_INT(italicStyle) { + LTE_INT(scaleX) { + return strncmp16(text, rhs.text, len >> 1) < 0; + } + } + } } } } |