Chromium Code Reviews| Index: cc/LayerTextureUpdater.h |
| diff --git a/cc/LayerTextureUpdater.h b/cc/LayerTextureUpdater.h |
| index 89fc520475a64d1261bc27a0c7916b1745b55b05..3b13dca20bc6df35b656c7fc9518bd7584804a5c 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(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; |
|
enne (OOO)
2012/10/12 21:25:04
This is a small nit, but could you just figure out
reveman
2012/10/12 21:43:11
Yes, that's my plan. The problem is that 'partialU
|
| protected: |
| explicit Texture(scoped_ptr<CCPrioritizedTexture> texture); |