summaryrefslogtreecommitdiff
path: root/libs/hwui/TextDropShadowCache.cpp
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2017-08-10 22:09:13 +0000
committer android-build-merger <android-build-merger@google.com> 2017-08-10 22:09:13 +0000
commit27140b03bfee16f3fdb70be42ff4fc132fc4c84a (patch)
treedd3ef3a708ba7420b93f75d75ee241e485e77a45 /libs/hwui/TextDropShadowCache.cpp
parent20933d045431c498ddaa975c75f93136f557b48f (diff)
parenteb43cdbc2e1187667a51cf21daac9e79e3678114 (diff)
Merge "Delete all ro.hwui.* props" into oc-mr1-dev
am: eb43cdbc2e Change-Id: I4e3680df1f475bc6f15ff8c3ab0bdc8b887607a3
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 e1f0b2a20172..c521892c69df 100644
--- a/libs/hwui/TextDropShadowCache.cpp
+++ b/libs/hwui/TextDropShadowCache.cpp
@@ -94,7 +94,7 @@ int ShadowText::compare(const ShadowText& lhs, const ShadowText& rhs) {
///////////////////////////////////////////////////////////////////////////////
TextDropShadowCache::TextDropShadowCache()
- : TextDropShadowCache(Properties::textDropShadowCacheSize) {}
+ : TextDropShadowCache(DeviceInfo::multiplyByResolution(2)) {}
TextDropShadowCache::TextDropShadowCache(uint32_t maxByteSize)
: mCache(LruCache<ShadowText, ShadowTexture*>::kUnlimitedCapacity)