Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2100)

Unified Diff: cc/LayerTextureUpdater.h

Issue 11074009: cc: Remove LayerTextureUpdater::Texture::updateRect() callback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/LayerTextureUpdater.h
diff --git a/cc/LayerTextureUpdater.h b/cc/LayerTextureUpdater.h
index 0426bc42655d5f1bf7e7e1e8239ffb2a80c86f86..38459b165c8f1ce0060dd41dc3f2422b7156fd6d 100644
--- a/cc/LayerTextureUpdater.h
+++ b/cc/LayerTextureUpdater.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(OwnPtr<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 argument passed to update().
+ virtual void update(CCTextureUpdateQueue&, const IntRect& sourceRect, const IntSize& destOffset, bool partialUpdate, CCRenderingStats&) = 0;
protected:
explicit Texture(PassOwnPtr<CCPrioritizedTexture> texture);

Powered by Google App Engine
This is Rietveld 408576698