summaryrefslogtreecommitdiff
path: root/libs/hwui/LayerCache.cpp
diff options
context:
space:
mode:
author Romain Guy <romainguy@google.com> 2011-08-22 14:01:34 -0700
committer Romain Guy <romainguy@google.com> 2011-08-22 14:01:34 -0700
commit28d8ff6dbcc1b137131c70b72b4dbd211db7fbd9 (patch)
tree38a49302ac1bd3c05a85bb09ce26e5c5d45debd6 /libs/hwui/LayerCache.cpp
parent6d97842849bed82affbd45251529f85f0958a6b8 (diff)
Move constants to the correct header
Change-Id: Id4bd14f72487bd7156cd2e1930eaf97b47896273
Diffstat (limited to 'libs/hwui/LayerCache.cpp')
-rw-r--r--libs/hwui/LayerCache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/LayerCache.cpp b/libs/hwui/LayerCache.cpp
index 0af017787305..52981259336e 100644
--- a/libs/hwui/LayerCache.cpp
+++ b/libs/hwui/LayerCache.cpp
@@ -162,7 +162,7 @@ bool LayerCache::put(Layer* layer) {
// TODO: Use an LRU
while (mSize + size > mMaxSize) {
size_t position = 0;
-#if LAYER_REMOVE_BIGGEST
+#if LAYER_REMOVE_BIGGEST_FIRST
position = mCache.size() - 1;
#endif
Layer* victim = mCache.itemAt(position).mLayer;