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

Unified Diff: cc/layer_texture_updater.h

Issue 11074009: cc: Remove LayerTextureUpdater::Texture::updateRect() callback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. 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
« no previous file with comments | « cc/image_layer.cc ('k') | cc/layer_texture_updater.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_texture_updater.h
diff --git a/cc/layer_texture_updater.h b/cc/layer_texture_updater.h
index 89fc520475a64d1261bc27a0c7916b1745b55b05..3b13dca20bc6df35b656c7fc9518bd7584804a5c 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);
« no previous file with comments | « cc/image_layer.cc ('k') | cc/layer_texture_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698