summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/android/BackedDoubleBufferedTexture.h
diff options
context:
space:
mode:
authorNicolas Roard <nicolas@android.com>2010-12-08 11:37:30 -0800
committerNicolas Roard <nicolas@android.com>2010-12-16 13:12:03 -0800
commit211482b53e73a386e2aabb0d3acb92e0e7ea22d4 (patch)
tree22d211edc86483739ac9af68fd25d1d90470d26d /WebCore/platform/graphics/android/BackedDoubleBufferedTexture.h
parent6fc858d42732739e4a3b628b4953a8a279e8dc3d (diff)
downloadexternal_webkit-211482b53e73a386e2aabb0d3acb92e0e7ea22d4.zip
external_webkit-211482b53e73a386e2aabb0d3acb92e0e7ea22d4.tar.gz
external_webkit-211482b53e73a386e2aabb0d3acb92e0e7ea22d4.tar.bz2
Layers implementation in GL.
- add textures management code for layers in TilesManager - add the layers drawing GL code - modify BaseLayerAndroid::drawGL() to paint the layers - modify TexturesGenerator to process layers painting requests Note: some further refactoring (when getting rid of SkLayer as a base class) will let us remove some redudant function, e.g. setAnchorPoint/setAnchorPointZ (bug:3292285) Change-Id: I3cc88575f331104d45c89e84ba27f3af755aa845
Diffstat (limited to 'WebCore/platform/graphics/android/BackedDoubleBufferedTexture.h')
-rw-r--r--WebCore/platform/graphics/android/BackedDoubleBufferedTexture.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/WebCore/platform/graphics/android/BackedDoubleBufferedTexture.h b/WebCore/platform/graphics/android/BackedDoubleBufferedTexture.h
index 4ffdc07..844715d 100644
--- a/WebCore/platform/graphics/android/BackedDoubleBufferedTexture.h
+++ b/WebCore/platform/graphics/android/BackedDoubleBufferedTexture.h
@@ -53,7 +53,7 @@ public:
// updates the texture with current bitmap and releases (and if needed also
// swaps) the texture.
- void producerUpdate(TextureInfo* textureInfo);
+ virtual void producerUpdate(TextureInfo* textureInfo);
// The level can be one of the following values:
// * -1 for an unused texture.
@@ -68,7 +68,9 @@ public:
// returns false if ownership cannot be transferred because the tile is busy
bool acquire(TextureOwner* owner);
void release(TextureOwner* owner);
- void release();
+
+ // set the texture owner if not busy. Return false if busy, true otherwise.
+ bool setOwner(TextureOwner* owner);
// private member accessor functions
TextureOwner* owner() { return m_owner; } // only used by the consumer thread