summaryrefslogtreecommitdiffstats
path: root/core/jni/android/graphics/NinePatchImpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/jni/android/graphics/NinePatchImpl.cpp')
-rw-r--r--core/jni/android/graphics/NinePatchImpl.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/core/jni/android/graphics/NinePatchImpl.cpp b/core/jni/android/graphics/NinePatchImpl.cpp
index a3e36ee..7aaca8a 100644
--- a/core/jni/android/graphics/NinePatchImpl.cpp
+++ b/core/jni/android/graphics/NinePatchImpl.cpp
@@ -135,7 +135,7 @@ void NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds,
#ifdef USE_TRACE
if (canvas) {
const SkMatrix& m = canvas->getTotalMatrix();
- LOGV("ninepatch [%g %g %g] [%g %g %g]\n",
+ ALOGV("ninepatch [%g %g %g] [%g %g %g]\n",
SkScalarToFloat(m[0]), SkScalarToFloat(m[1]), SkScalarToFloat(m[2]),
SkScalarToFloat(m[3]), SkScalarToFloat(m[4]), SkScalarToFloat(m[5]));
}
@@ -143,10 +143,10 @@ void NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds,
#ifdef USE_TRACE
if (gTrace) {
- LOGV("======== ninepatch bounds [%g %g]\n", SkScalarToFloat(bounds.width()), SkScalarToFloat(bounds.height()));
- LOGV("======== ninepatch paint bm [%d,%d]\n", bitmap.width(), bitmap.height());
- LOGV("======== ninepatch xDivs [%d,%d]\n", chunk.xDivs[0], chunk.xDivs[1]);
- LOGV("======== ninepatch yDivs [%d,%d]\n", chunk.yDivs[0], chunk.yDivs[1]);
+ ALOGV("======== ninepatch bounds [%g %g]\n", SkScalarToFloat(bounds.width()), SkScalarToFloat(bounds.height()));
+ ALOGV("======== ninepatch paint bm [%d,%d]\n", bitmap.width(), bitmap.height());
+ ALOGV("======== ninepatch xDivs [%d,%d]\n", chunk.xDivs[0], chunk.xDivs[1]);
+ ALOGV("======== ninepatch yDivs [%d,%d]\n", chunk.yDivs[0], chunk.yDivs[1]);
}
#endif
@@ -155,7 +155,7 @@ void NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds,
(paint && paint->getXfermode() == NULL && paint->getAlpha() == 0))
{
#ifdef USE_TRACE
- if (gTrace) LOGV("======== abort ninepatch draw\n");
+ if (gTrace) ALOGV("======== abort ninepatch draw\n");
#endif
return;
}
@@ -201,7 +201,7 @@ void NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds,
int numFixedYPixelsRemaining = bitmapHeight - numStretchyYPixelsRemaining;
#ifdef USE_TRACE
- LOGV("NinePatch [%d %d] bounds [%g %g %g %g] divs [%d %d]\n",
+ ALOGV("NinePatch [%d %d] bounds [%g %g %g %g] divs [%d %d]\n",
bitmap.width(), bitmap.height(),
SkScalarToFloat(bounds.fLeft), SkScalarToFloat(bounds.fTop),
SkScalarToFloat(bounds.width()), SkScalarToFloat(bounds.height()),
@@ -305,12 +305,12 @@ void NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds,
}
if (canvas) {
#ifdef USE_TRACE
- LOGV("-- src [%d %d %d %d] dst [%g %g %g %g]\n",
+ ALOGV("-- src [%d %d %d %d] dst [%g %g %g %g]\n",
src.fLeft, src.fTop, src.width(), src.height(),
SkScalarToFloat(dst.fLeft), SkScalarToFloat(dst.fTop),
SkScalarToFloat(dst.width()), SkScalarToFloat(dst.height()));
if (2 == src.width() && SkIntToScalar(5) == dst.width()) {
- LOGV("--- skip patch\n");
+ ALOGV("--- skip patch\n");
}
#endif
drawStretchyPatch(canvas, src, dst, bitmap, *paint, initColor,