summaryrefslogtreecommitdiff
path: root/libs/hwui/TextDropShadowCache.cpp
diff options
context:
space:
mode:
author Chris Craik <ccraik@google.com> 2014-01-02 17:13:34 -0800
committer Chris Craik <ccraik@google.com> 2014-01-03 13:55:08 -0800
commitd218a92c0afb8c0d98135b20b52ac87236e1c935 (patch)
tree3eef804e9948ca463e720ac636db46b2637fdabb /libs/hwui/TextDropShadowCache.cpp
parent8523706236b0b2536ed4359d92ec6ccdca060d78 (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.cpp2
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);