diff options
author | Teng-Hui Zhu <ztenghui@google.com> | 2011-01-05 16:42:38 -0800 |
---|---|---|
committer | Teng-Hui Zhu <ztenghui@google.com> | 2011-01-07 11:41:08 -0800 |
commit | 44009dc8813df9eb0815bf581740a7c365f3b515 (patch) | |
tree | df11bafb8fc56dbe7864bd75144100b2f25da22b /WebCore/platform/graphics/android/BaseTile.cpp | |
parent | 1e94288ba5e5c46db33f5404c9e7a9471044fa14 (diff) | |
download | external_webkit-44009dc8813df9eb0815bf581740a7c365f3b515.zip external_webkit-44009dc8813df9eb0815bf581740a7c365f3b515.tar.gz external_webkit-44009dc8813df9eb0815bf581740a7c365f3b515.tar.bz2 |
Add debug info
When we have such extra info in the log, it could lead to a root cause
more directly without manual adding and rebuilding.
bug:3307016
Change-Id: I7699c554923d1cdc4ddeb9795ad9c89687b1f27a
Diffstat (limited to 'WebCore/platform/graphics/android/BaseTile.cpp')
-rw-r--r-- | WebCore/platform/graphics/android/BaseTile.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/WebCore/platform/graphics/android/BaseTile.cpp b/WebCore/platform/graphics/android/BaseTile.cpp index 789cbe0..a506ac9 100644 --- a/WebCore/platform/graphics/android/BaseTile.cpp +++ b/WebCore/platform/graphics/android/BaseTile.cpp @@ -172,8 +172,12 @@ void BaseTile::draw(float transparency, SkRect& rect) bool usable = m_usable; bool isTexturePainted = m_lastPaintedPicture; m_atomicSync.unlock(); - if (!usable || !isTexturePainted) { - XLOG("early return at BaseTile::draw b/c tile set to unusable or not painted !"); + if (!usable) { + XLOG("early return at BaseTile::draw b/c tile set to unusable !"); + return; + } + if (!isTexturePainted) { + XLOG("early return at BaseTile::draw b/c tile is not painted !"); return; } |