diff options
author | Chris Craik <ccraik@google.com> | 2012-06-13 14:23:48 -0700 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2012-06-13 14:48:15 -0700 |
commit | 736e83761cd309092370bb9f7842826186c32722 (patch) | |
tree | 5bbb80f672e8dadfa5f81dbe76c7d7b394bde4cd /Source/WebKit/android | |
parent | 236f8ddfbd94fc6e0e49c13495c8fe82d3218bc8 (diff) | |
download | external_webkit-736e83761cd309092370bb9f7842826186c32722.zip external_webkit-736e83761cd309092370bb9f7842826186c32722.tar.gz external_webkit-736e83761cd309092370bb9f7842826186c32722.tar.bz2 |
Add detailed tracing to tile painting
bug:6653638
Change-Id: I839917feb1803bc1f4ace5aa2367067024a18706
Diffstat (limited to 'Source/WebKit/android')
-rw-r--r-- | Source/WebKit/android/AndroidLog.h | 4 | ||||
-rw-r--r-- | Source/WebKit/android/jni/PicturePile.cpp | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Source/WebKit/android/AndroidLog.h b/Source/WebKit/android/AndroidLog.h index f034d35..6b6c1a0 100644 --- a/Source/WebKit/android/AndroidLog.h +++ b/Source/WebKit/android/AndroidLog.h @@ -30,6 +30,8 @@ #define LOG_TAG __FILE__ #endif +#define ATRACE_TAG ATRACE_TAG_WEBVIEW + #include <cutils/log.h> #include <utils/Trace.h> #include <wtf/CurrentTime.h> @@ -58,7 +60,7 @@ extern FILE* gRenderTreeFile; #define INT_RECT_FORMAT "[x=%d,y=%d,w=%d,h=%d]" #define INT_RECT_ARGS(ir) ir.x(), ir.y(), ir.width(), ir.height() -#define TRACE_METHOD() android::ScopedTrace __st(ATRACE_TAG_WEBVIEW, __func__); +#define TRACE_METHOD() android::ScopedTrace __st(ATRACE_TAG, __func__); #define TIME_METHOD() MethodTimer __method_timer(__func__) class MethodTimer { diff --git a/Source/WebKit/android/jni/PicturePile.cpp b/Source/WebKit/android/jni/PicturePile.cpp index ccdfa59..bdf347a 100644 --- a/Source/WebKit/android/jni/PicturePile.cpp +++ b/Source/WebKit/android/jni/PicturePile.cpp @@ -81,7 +81,6 @@ void PicturePile::draw(SkCanvas* canvas) * the rect bounds of the SkRegion for the clip, so this still can't be * used for translucent surfaces */ - TRACE_METHOD(); IntRect clipBounds = extractClipBounds(canvas, m_size); SkRegion clipRegion(toSkIRect(clipBounds)); drawWithClipRecursive(canvas, clipRegion, m_pile.size() - 1); |