summaryrefslogtreecommitdiff
path: root/libs/hwui/GradientCache.cpp
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2011-01-21 21:14:15 -0800
committerRomain Guy <romainguy@google.com>2011-01-21 21:14:15 -0800
commitc9855a53edfac818dc68714557185977556f849d (patch)
tree7ace2dd62d887408e84f8a09c43e60de26b436b6 /libs/hwui/GradientCache.cpp
parent6828656220f4ed5ae803e4c11fb75fb56bc3ea25 (diff)
Log only 1 line per process when using OpenGLRenderer.
Change-Id: Idbdd6b84f31301e58ed53e0d50fd61fece192dfa
Diffstat (limited to 'libs/hwui/GradientCache.cpp')
-rw-r--r--libs/hwui/GradientCache.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/hwui/GradientCache.cpp b/libs/hwui/GradientCache.cpp
index a37964eae4cd..4a40a63485ac 100644
--- a/libs/hwui/GradientCache.cpp
+++ b/libs/hwui/GradientCache.cpp
@@ -23,6 +23,7 @@
#include <utils/threads.h>
+#include "Debug.h"
#include "GradientCache.h"
#include "Properties.h"
@@ -38,10 +39,10 @@ GradientCache::GradientCache():
mSize(0), mMaxSize(MB(DEFAULT_GRADIENT_CACHE_SIZE)) {
char property[PROPERTY_VALUE_MAX];
if (property_get(PROPERTY_GRADIENT_CACHE_SIZE, property, NULL) > 0) {
- LOGD(" Setting gradient cache size to %sMB", property);
+ INIT_LOGD(" Setting gradient cache size to %sMB", property);
setMaxSize(MB(atof(property)));
} else {
- LOGD(" Using default gradient cache size of %.2fMB", DEFAULT_GRADIENT_CACHE_SIZE);
+ INIT_LOGD(" Using default gradient cache size of %.2fMB", DEFAULT_GRADIENT_CACHE_SIZE);
}
mCache.setOnEntryRemovedListener(this);