diff options
| author | 2011-08-22 14:02:17 -0700 | |
|---|---|---|
| committer | 2011-08-22 14:02:17 -0700 | |
| commit | 91bd59dbda75d176a79d5c42cccce0a9b0391bde (patch) | |
| tree | f1b2edb8ce05b775387c81134a1ffeabf69e0c3c /libs/hwui/LayerCache.cpp | |
| parent | 661cd52e0e1d527132eb1cae604d3e64da7ec0cb (diff) | |
| parent | 28d8ff6dbcc1b137131c70b72b4dbd211db7fbd9 (diff) | |
Merge "Move constants to the correct header"
Diffstat (limited to 'libs/hwui/LayerCache.cpp')
| -rw-r--r-- | libs/hwui/LayerCache.cpp | 2 |
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; |