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

Unified Diff: cc/LayerTextureUpdater.h

Issue 11044003: Reduce texture uploads during scrollbar invalidations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revert use of hash; address texture eviction. 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..b6dc763168935447b708b6a352675b368a9f3d5b 100644
--- a/cc/LayerTextureUpdater.h
+++ b/cc/LayerTextureUpdater.h
@@ -60,6 +60,9 @@ public:
// then this region should be ignored in preference for the entire layer's area.
virtual void prepareToUpdate(const IntRect& contentRect, const IntSize& tileSize, float contentsWidthScale, float contentsHeightScale, IntRect& resultingOpaqueRect, CCRenderingStats&) { }
+ // Use after prepareToUpdate, allows checking if the texture contents will change, to avoid unecessary uploads.
+ virtual bool pixelsDidChange() const;
jamesr 2012/10/03 19:28:02 this is unnecessary. Keep the more specific type
enne (OOO) 2012/10/03 19:31:43 Please don't do this. updatePart is a non-virtual
wjmaclean 2012/10/03 20:14:30 Done. NP, I just wasn't sure if you'd want me to
wjmaclean 2012/10/03 20:14:30 Done.
+
// Set true by the layer when it is known that the entire output is going to be opaque.
virtual void setOpaque(bool) { }
};

Powered by Google App Engine
This is Rietveld 408576698