From ea8af90e9f2739a824f24229000cbc4800bcd21b Mon Sep 17 00:00:00 2001 From: "reveman@chromium.org" Date: Sat, 13 Oct 2012 10:20:27 +0000 Subject: 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 --- cc/layer_texture_updater.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cc/layer_texture_updater.h') 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 { public: @@ -28,9 +29,9 @@ public: CCPrioritizedTexture* texture() { return m_texture.get(); } void swapTextureWith(scoped_ptr& 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 texture); -- cgit v1.1