diff options
author | Chris Craik <ccraik@google.com> | 2012-05-23 13:18:27 -0700 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2012-05-23 13:39:17 -0700 |
commit | efa55f30473bf9e73383966273558efd8d946b7b (patch) | |
tree | a953929e768fd1c4dc8caf689c6eaff189eb4ed8 | |
parent | 55d602593a60888cfc87c244a5e3258f35bae50e (diff) | |
download | external_webkit-efa55f30473bf9e73383966273558efd8d946b7b.zip external_webkit-efa55f30473bf9e73383966273558efd8d946b7b.tar.gz external_webkit-efa55f30473bf9e73383966273558efd8d946b7b.tar.bz2 |
Add tracing to interesting/potentially costly functions
bug:6530473 bug:6344165
Change-Id: I40b190036af8c021134d5ac450e3217098ba2296
3 files changed, 5 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/layers/BaseLayerAndroid.cpp b/Source/WebCore/platform/graphics/android/layers/BaseLayerAndroid.cpp index 283fa58..085a356 100644 --- a/Source/WebCore/platform/graphics/android/layers/BaseLayerAndroid.cpp +++ b/Source/WebCore/platform/graphics/android/layers/BaseLayerAndroid.cpp @@ -78,6 +78,7 @@ IFrameLayerAndroid* BaseLayerAndroid::updatePosition(SkRect viewport, void BaseLayerAndroid::updatePositionsRecursive(const SkRect& visibleContentRect) { + TRACE_METHOD(); updateLayerPositions(visibleContentRect); TransformationMatrix ident; FloatRect clip(0, 0, getWidth(), getHeight()); diff --git a/Source/WebCore/platform/graphics/android/rendering/ImagesManager.cpp b/Source/WebCore/platform/graphics/android/rendering/ImagesManager.cpp index 8452503..316b7fd 100644 --- a/Source/WebCore/platform/graphics/android/rendering/ImagesManager.cpp +++ b/Source/WebCore/platform/graphics/android/rendering/ImagesManager.cpp @@ -52,6 +52,7 @@ ImageTexture* ImagesManager::setImage(SkBitmapRef* imgRef) if (!imgRef) return 0; + TRACE_METHOD(); SkBitmap* bitmap = &imgRef->bitmap(); ImageTexture* image = 0; SkBitmap* img = 0; diff --git a/Source/WebCore/platform/graphics/android/rendering/SurfaceCollection.cpp b/Source/WebCore/platform/graphics/android/rendering/SurfaceCollection.cpp index f577d46..83b81a1 100644 --- a/Source/WebCore/platform/graphics/android/rendering/SurfaceCollection.cpp +++ b/Source/WebCore/platform/graphics/android/rendering/SurfaceCollection.cpp @@ -84,6 +84,7 @@ SurfaceCollection::~SurfaceCollection() void SurfaceCollection::prepareGL(const SkRect& visibleContentRect, bool tryToFastBlit) { + TRACE_METHOD(); updateLayerPositions(visibleContentRect); bool layerTilesDisabled = m_compositedRoot->state()->layersRenderingMode() > GLWebViewState::kClippedTextures; @@ -106,6 +107,7 @@ static inline bool compareSurfaceZ(const Surface* a, const Surface* b) bool SurfaceCollection::drawGL(const SkRect& visibleContentRect) { + TRACE_METHOD(); #ifdef DEBUG_COUNT ClassTracker::instance()->show(); #endif @@ -135,6 +137,7 @@ Color SurfaceCollection::getBackgroundColor() void SurfaceCollection::swapTiles() { + TRACE_METHOD(); for (unsigned int i = 0; i < m_surfaces.size(); i++) m_surfaces[i]->swapTiles(); } |