diff options
author | Derek Sollenberger <djsollen@google.com> | 2010-10-14 16:02:09 -0400 |
---|---|---|
committer | Derek Sollenberger <djsollen@google.com> | 2010-10-14 16:08:12 -0400 |
commit | 19058237c678a394169062fa2f572634fd406018 (patch) | |
tree | 637b59e8d4c6206abcf6dd9fe1260b11f403e00f /WebCore/platform/graphics/android/BaseTile.cpp | |
parent | bd071637b972015cbebb21d03c09867d76926fc7 (diff) | |
download | external_webkit-19058237c678a394169062fa2f572634fd406018.zip external_webkit-19058237c678a394169062fa2f572634fd406018.tar.gz external_webkit-19058237c678a394169062fa2f572634fd406018.tar.bz2 |
Cleanup TiledPage class.
The cleanup consists of:
1. renaming m_baseTextures to m_baseTiles
2. caching the inverse scale to speed up the draw calls
3. removing currentPictureMethod as it is available through GLWebViewState
4. adding comments to the public methods
5. some small source code optimizations
Change-Id: I831500da335a3afac7232524b74e63436ea65efb
Diffstat (limited to 'WebCore/platform/graphics/android/BaseTile.cpp')
-rw-r--r-- | WebCore/platform/graphics/android/BaseTile.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/WebCore/platform/graphics/android/BaseTile.cpp b/WebCore/platform/graphics/android/BaseTile.cpp index 6f20643..478261b 100644 --- a/WebCore/platform/graphics/android/BaseTile.cpp +++ b/WebCore/platform/graphics/android/BaseTile.cpp @@ -119,8 +119,7 @@ void BaseTile::draw(float transparency, SkRect& rect) return; } - PaintingInfo info(m_x, m_y, m_page->glWebViewState(), - m_page->currentPictureCounter()); + PaintingInfo info(m_x, m_y, m_page->glWebViewState()); TextureInfo* textureInfo = texture->consumerLock(); if (!textureInfo) { @@ -143,8 +142,7 @@ bool BaseTile::isBitmapReady() return false; if (m_texture->owner() != this) return false; - PaintingInfo info(m_x, m_y, m_page->glWebViewState(), - m_page->currentPictureCounter()); + PaintingInfo info(m_x, m_y, m_page->glWebViewState()); return m_texture->consumerTextureUpToDate(info); } @@ -170,8 +168,7 @@ bool BaseTile::paintBitmap() return false; } - int pictureUsed = m_page->currentPictureCounter(); - PaintingInfo info(m_x, m_y, m_page->glWebViewState(), pictureUsed); + PaintingInfo info(m_x, m_y, m_page->glWebViewState()); if (texture->consumerTextureUpToDate(info)) { texture->setBusy(false); return true; |