summaryrefslogtreecommitdiffstats
path: root/libs/hwui/FontRenderer.h
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2014-05-21 11:25:22 -0400
committerDerek Sollenberger <djsollen@google.com>2014-05-21 13:27:10 -0400
commite392c81f6b8f9ace0c0a48c9d4df117fda31fd13 (patch)
tree10a8e6944cc2aac5c9b5238e9058ef8c087436d7 /libs/hwui/FontRenderer.h
parent69b43b496472132c4eaee0f9007d453c6f6a49b2 (diff)
downloadframeworks_base-e392c81f6b8f9ace0c0a48c9d4df117fda31fd13.zip
frameworks_base-e392c81f6b8f9ace0c0a48c9d4df117fda31fd13.tar.gz
frameworks_base-e392c81f6b8f9ace0c0a48c9d4df117fda31fd13.tar.bz2
Pass the radius as a float deeper into HWUI allowing RS to generate more accurate blurs.
Also, when converting radius to an integer value snap to the appropriate integer boundaries. bug: 10650594 Change-Id: Icca4bc17d88162bbcbc6035d4f81bd1d98a4de2d
Diffstat (limited to 'libs/hwui/FontRenderer.h')
-rw-r--r--libs/hwui/FontRenderer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/FontRenderer.h b/libs/hwui/FontRenderer.h
index 9259028..8ce22b0 100644
--- a/libs/hwui/FontRenderer.h
+++ b/libs/hwui/FontRenderer.h
@@ -129,7 +129,7 @@ public:
// After renderDropShadow returns, the called owns the memory in DropShadow.image
// and is responsible for releasing it when it's done with it
DropShadow renderDropShadow(const SkPaint* paint, const char *text, uint32_t startIndex,
- uint32_t len, int numGlyphs, uint32_t radius, const float* positions);
+ uint32_t len, int numGlyphs, float radius, const float* positions);
void setTextureFiltering(bool linearFiltering) {
mLinearFiltering = linearFiltering;
@@ -218,7 +218,7 @@ private:
int32_t width, int32_t height);
// the input image handle may have its pointer replaced (to avoid copies)
- void blurImage(uint8_t** image, int32_t width, int32_t height, int32_t radius);
+ void blurImage(uint8_t** image, int32_t width, int32_t height, float radius);
};
}; // namespace uirenderer