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

Unified Diff: cc/tiled_layer.h

Issue 11193010: cc: Add predictive pre-painting. (Closed) Base URL: http://git.chromium.org/chromium/src.git@PTM_TiledLayerChromium_fixes
Patch Set: Rebase + fix test 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 | « no previous file | cc/tiled_layer.cc » ('j') | cc/tiled_layer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiled_layer.h
diff --git a/cc/tiled_layer.h b/cc/tiled_layer.h
index 616339129e9bbcf7c5d2fc24286bd85fd43e8b69..cc2c97d8485d9b3e94d5f46e818ec100767c6b0e 100644
--- a/cc/tiled_layer.h
+++ b/cc/tiled_layer.h
@@ -84,6 +84,7 @@ private:
bool haveTexturesForTiles(int left, int top, int right, int bottom, bool ignoreOcclusions);
IntRect markTilesForUpdate(int left, int top, int right, int bottom, bool ignoreOcclusions);
void updateTileTextures(const IntRect& paintRect, int left, int top, int right, int bottom, CCTextureUpdateQueue&, const CCOcclusionTracker*, CCRenderingStats&);
+ void updateScrollPrediction();
UpdatableTile* tileAt(int, int) const;
UpdatableTile* createTile(int, int);
@@ -93,6 +94,12 @@ private:
bool m_failedUpdate;
LayerTextureUpdater::SampledTexelFormat m_sampledTexelFormat;
+ // Used for predictive painting.
+ IntSize m_predictedScroll;
+ IntRect m_predictedVisibleRect;
+ IntRect m_previousVisibleRect;
+ IntSize m_previousContentBounds;
+
TilingOption m_tilingOption;
scoped_ptr<CCLayerTilingData> m_tiler;
};
« no previous file with comments | « no previous file | cc/tiled_layer.cc » ('j') | cc/tiled_layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698