Remove logging from PaintCache

This commit is contained in:
Sergey Solovyev 2017-06-07 21:37:12 +02:00
parent 1ffc6ade44
commit 2743e73b36

View File

@ -143,17 +143,6 @@ class PaintCache {
public Spec textSize(float textSize) { public Spec textSize(float textSize) {
return new Spec(color, alpha, typeface, textSize, highContrast); return new Spec(color, alpha, typeface, textSize, highContrast);
} }
@Override
public String toString() {
return "Spec{" +
"color=" + color +
", alpha=" + alpha +
", typeface=" + System.identityHashCode(typeface) +
", textSize=" + textSize +
", highContrast=" + highContrast +
'}';
}
} }
private float shadowRadius; private float shadowRadius;
@ -181,15 +170,12 @@ class PaintCache {
if (entry == null) { if (entry == null) {
entry = new Entry(spec, makePaint(context, spec)); entry = new Entry(spec, makePaint(context, spec));
map.put(spec, entry); map.put(spec, entry);
} else {
Log.d(TAG, "Reusing paint for spec: " + spec);
} }
return entry; return entry;
} }
@NonNull @NonNull
private Paint makePaint(@NonNull Context context, @NonNull Spec spec) { private Paint makePaint(@NonNull Context context, @NonNull Spec spec) {
Log.d(TAG, "Creating new paint for spec: " + spec);
final Paint paint = new Paint(); final Paint paint = new Paint();
paint.setAntiAlias(true); paint.setAntiAlias(true);
if (spec.highContrast) { if (spec.highContrast) {