diff options
author | reveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-13 10:20:27 +0000 |
---|---|---|
committer | reveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-13 10:20:27 +0000 |
commit | ea8af90e9f2739a824f24229000cbc4800bcd21b (patch) | |
tree | ebad1aa03334584c07a06b4da93f7c509a647fc3 /cc/layer_texture_updater.h | |
parent | bf84b9f737130ab4101c47ffb602caa21f9ed4cb (diff) | |
download | chromium_src-ea8af90e9f2739a824f24229000cbc4800bcd21b.zip chromium_src-ea8af90e9f2739a824f24229000cbc4800bcd21b.tar.gz chromium_src-ea8af90e9f2739a824f24229000cbc4800bcd21b.tar.bz2 |
cc: Remove LayerTextureUpdater::Texture::updateRect() callback.
This is the first step towards cleaning up and simplifying the resource
update system. Eliminates the LayerTextureUpdater::Texture::updateRect()
callback by moving some logic to CCResourceProvider. Remaining logic is
now contained in LayerTextureUpdater::Texture::update(). The logic itself
is not changed, this is only re-factoring.
BUG=154472
TEST=manual
Review URL: https://chromiumcodereview.appspot.com/11074009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161752 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layer_texture_updater.h')
-rw-r--r-- | cc/layer_texture_updater.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cc/layer_texture_updater.h b/cc/layer_texture_updater.h index 89fc520..3b13dca 100644 --- a/cc/layer_texture_updater.h +++ b/cc/layer_texture_updater.h @@ -18,6 +18,7 @@ class IntRect; class IntSize; class TextureManager; struct CCRenderingStats; +class CCTextureUpdateQueue; class LayerTextureUpdater : public RefCounted<LayerTextureUpdater> { public: @@ -28,9 +29,9 @@ public: CCPrioritizedTexture* texture() { return m_texture.get(); } void swapTextureWith(scoped_ptr<CCPrioritizedTexture>& texture) { m_texture.swap(texture); } - virtual void prepareRect(const IntRect& /* sourceRect */, CCRenderingStats&) { } - virtual void updateRect(CCResourceProvider*, const IntRect& sourceRect, const IntSize& destOffset) = 0; - virtual bool backingResourceWasEvicted() const; + // TODO(reveman): partialUpdate should be a property of this class + // instead of an argument passed to update(). + virtual void update(CCTextureUpdateQueue&, const IntRect& sourceRect, const IntSize& destOffset, bool partialUpdate, CCRenderingStats&) = 0; protected: explicit Texture(scoped_ptr<CCPrioritizedTexture> texture); |