diff options
author | 2014-01-02 17:13:34 -0800 | |
---|---|---|
committer | 2014-01-03 13:55:08 -0800 | |
commit | d218a92c0afb8c0d98135b20b52ac87236e1c935 (patch) | |
tree | 3eef804e9948ca463e720ac636db46b2637fdabb /libs/hwui/TextDropShadowCache.cpp | |
parent | 8523706236b0b2536ed4359d92ec6ccdca060d78 (diff) |
Use const where possible for drawing parameters
They should never be modified by a Renderer, only read and copied.
Change-Id: I9d8d55dca19115ee9dfeb2bb3f092ba2fb327cd4
Diffstat (limited to 'libs/hwui/TextDropShadowCache.cpp')
-rw-r--r-- | libs/hwui/TextDropShadowCache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/TextDropShadowCache.cpp b/libs/hwui/TextDropShadowCache.cpp index 6f27b36122db..4eec4628323e 100644 --- a/libs/hwui/TextDropShadowCache.cpp +++ b/libs/hwui/TextDropShadowCache.cpp @@ -168,7 +168,7 @@ void TextDropShadowCache::clear() { mCache.clear(); } -ShadowTexture* TextDropShadowCache::get(SkPaint* paint, const char* text, uint32_t len, +ShadowTexture* TextDropShadowCache::get(const SkPaint* paint, const char* text, uint32_t len, int numGlyphs, float radius, const float* positions) { ShadowText entry(paint, radius, len, text, positions); ShadowTexture* texture = mCache.get(entry); |