From 28d8ff6dbcc1b137131c70b72b4dbd211db7fbd9 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Mon, 22 Aug 2011 14:01:34 -0700 Subject: Move constants to the correct header Change-Id: Id4bd14f72487bd7156cd2e1930eaf97b47896273 --- libs/hwui/LayerCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/hwui/LayerCache.cpp') 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; -- cgit v1.2.3-59-g8ed1b