summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/BaseTileTexture.h
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2011-08-28 19:15:00 -0700
committerChris Craik <ccraik@google.com>2011-09-02 16:12:04 -0700
commit8ad3ab0e47f0d5039e89c1873c178f538ec1b0df (patch)
tree80f8455d94b5ae10753e35b4f6badeea5fb8e040 /Source/WebCore/platform/graphics/android/BaseTileTexture.h
parente3edcfcfc731bd5051947d8c0a4b2685e7cae84d (diff)
downloadexternal_webkit-8ad3ab0e47f0d5039e89c1873c178f538ec1b0df.zip
external_webkit-8ad3ab0e47f0d5039e89c1873c178f538ec1b0df.tar.gz
external_webkit-8ad3ab0e47f0d5039e89c1873c178f538ec1b0df.tar.bz2
Enable double buffering via base tiles
bug:2522049 allocate textures and tiles using the gldraw count when they were most recently prepared remaining issues: -layers still flicker (presumably from texture stealing) -layers aren't double buffered yet Change-Id: Iccdf68326d7d476269d4e3a13903aaab249ee92d
Diffstat (limited to 'Source/WebCore/platform/graphics/android/BaseTileTexture.h')
-rw-r--r--Source/WebCore/platform/graphics/android/BaseTileTexture.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/Source/WebCore/platform/graphics/android/BaseTileTexture.h b/Source/WebCore/platform/graphics/android/BaseTileTexture.h
index bc66195..9c94a53 100644
--- a/Source/WebCore/platform/graphics/android/BaseTileTexture.h
+++ b/Source/WebCore/platform/graphics/android/BaseTileTexture.h
@@ -105,15 +105,6 @@ public:
// swaps) the texture.
virtual void producerUpdate(TextureInfo* textureInfo, const SkBitmap& bitmap);
- // The level can be one of the following values:
- // * -1 for an unused texture.
- // * 0 for the tiles intersecting with the viewport.
- // * n where n > 0 for the distance between the viewport and the tile.
- // We use this to prioritize the order in which we reclaim textures, see
- // TilesManager::getAvailableTexture() for more information.
- int usedLevel() { return m_usedLevel; }
- void setUsedLevel(int used) { m_usedLevel = used; }
-
// allows consumer thread to assign ownership of the texture to the tile. It
// returns false if ownership cannot be transferred because the tile is busy
bool acquire(TextureOwner* owner, bool force = false);
@@ -149,7 +140,6 @@ private:
TextureTileInfo m_ownTextureTileInfo;
SkSize m_size;
- int m_usedLevel;
SkBitmap::Config m_config;
TextureOwner* m_owner;