diff options
author | Nicolas Roard <nicolas@android.com> | 2011-01-27 20:32:08 -0800 |
---|---|---|
committer | Nicolas Roard <nicolas@android.com> | 2011-01-27 20:57:24 -0800 |
commit | 0dc1a08b899775a08e6b985a5397340ffd9eeb8f (patch) | |
tree | 198cc4bcd21d775dea805412996d1595262b7f9e /WebCore/platform/graphics/android/BaseLayerAndroid.cpp | |
parent | af1d8497b809bbb7ec0ccd9dec17a091f4d86617 (diff) | |
download | external_webkit-0dc1a08b899775a08e6b985a5397340ffd9eeb8f.zip external_webkit-0dc1a08b899775a08e6b985a5397340ffd9eeb8f.tar.gz external_webkit-0dc1a08b899775a08e6b985a5397340ffd9eeb8f.tar.bz2 |
Add some debugging functions and some cleanup speeding things in Layers.
bug:3375416
Change-Id: I92f75d1ae0aca9d8178673d2152e11d2401fd59e
Diffstat (limited to 'WebCore/platform/graphics/android/BaseLayerAndroid.cpp')
-rw-r--r-- | WebCore/platform/graphics/android/BaseLayerAndroid.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/WebCore/platform/graphics/android/BaseLayerAndroid.cpp b/WebCore/platform/graphics/android/BaseLayerAndroid.cpp index 52ef8ca..c99a8e1 100644 --- a/WebCore/platform/graphics/android/BaseLayerAndroid.cpp +++ b/WebCore/platform/graphics/android/BaseLayerAndroid.cpp @@ -317,6 +317,14 @@ bool BaseLayerAndroid::drawGL(IntRect& viewRect, SkRect& visibleRect, } compositedRoot->setScale(scale); compositedRoot->reserveGLTextures(); + +#ifdef DEBUG + int size = compositedRoot->countTextureSize(); + int nbLayers = compositedRoot->nbLayers(); + XLOG("We are using %d Mb for %d layers", size / 1024 / 1024, nbLayers); + compositedRoot->showLayers(); +#endif + // Now that we marked the textures being used, we delete // the unnecessary ones to make space... TilesManager::instance()->cleanupLayersTextures(compositedRoot); |