diff options
author | Chris Craik <ccraik@google.com> | 2011-07-20 16:12:29 -0700 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2011-07-21 14:21:33 -0700 |
commit | 687472b6cb489b5d3ea6a9a2fff110a685c27a79 (patch) | |
tree | cf3816df277c1242c69602a62f0fedd3a2eab016 /Source/WebCore/platform/graphics/android/GLWebViewState.cpp | |
parent | 4f25266c21bdd7dcd9996807fae04f7dfb0373de (diff) | |
download | external_webkit-687472b6cb489b5d3ea6a9a2fff110a685c27a79.zip external_webkit-687472b6cb489b5d3ea6a9a2fff110a685c27a79.tar.gz external_webkit-687472b6cb489b5d3ea6a9a2fff110a685c27a79.tar.bz2 |
New tile logging JNI interface
bug:5062896
Added more functionality to tile logging and querying (explicit location and
size), invalidation region logging, as well as string-based JNI query method
which should stabilize the JNI interface in the future.
Change-Id: I937d4227abf0d0f18124c484438fd13a62439fb6
Diffstat (limited to 'Source/WebCore/platform/graphics/android/GLWebViewState.cpp')
-rw-r--r-- | Source/WebCore/platform/graphics/android/GLWebViewState.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/WebCore/platform/graphics/android/GLWebViewState.cpp b/Source/WebCore/platform/graphics/android/GLWebViewState.cpp index 2832017..2e379bc 100644 --- a/Source/WebCore/platform/graphics/android/GLWebViewState.cpp +++ b/Source/WebCore/platform/graphics/android/GLWebViewState.cpp @@ -236,6 +236,7 @@ void GLWebViewState::inval(const IntRect& rect) } else { m_invalidateRegion.op(rect.x(), rect.y(), rect.maxX(), rect.maxY(), SkRegion::kUnion_Op); } + TilesManager::instance()->getProfiler()->nextInval(rect, m_currentScale); } void GLWebViewState::resetRings() @@ -504,10 +505,11 @@ bool GLWebViewState::drawGL(IntRect& rect, SkRect& viewport, IntRect* invalRect, { glFinish(); TilesManager::instance()->registerGLWebViewState(this); - TilesManager::instance()->getProfiler()->nextFrame(viewport.fLeft * scale, - viewport.fTop * scale, - viewport.fRight * scale, - viewport.fBottom * scale); + TilesManager::instance()->getProfiler()->nextFrame(viewport.fLeft, + viewport.fTop, + viewport.fRight, + viewport.fBottom, + scale); #ifdef DEBUG TilesManager::instance()->getTilesTracker()->clear(); |