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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | cc/tiled_layer.cc » ('j') | cc/tiled_layer.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef TiledLayerChromium_h 5 #ifndef TiledLayerChromium_h
6 #define TiledLayerChromium_h 6 #define TiledLayerChromium_h
7 7
8 #include "CCLayerTilingData.h" 8 #include "CCLayerTilingData.h"
9 #include "cc/layer.h" 9 #include "cc/layer.h"
10 #include "cc/layer_texture_updater.h" 10 #include "cc/layer_texture_updater.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 bool tileOnlyNeedsPartialUpdate(UpdatableTile*); 78 bool tileOnlyNeedsPartialUpdate(UpdatableTile*);
79 bool tileNeedsBufferedUpdate(UpdatableTile*); 79 bool tileNeedsBufferedUpdate(UpdatableTile*);
80 80
81 void markOcclusionsAndRequestTextures(int left, int top, int right, int bott om, const CCOcclusionTracker*); 81 void markOcclusionsAndRequestTextures(int left, int top, int right, int bott om, const CCOcclusionTracker*);
82 82
83 bool updateTiles(int left, int top, int right, int bottom, CCTextureUpdateQu eue&, const CCOcclusionTracker*, CCRenderingStats&, bool& didPaint); 83 bool updateTiles(int left, int top, int right, int bottom, CCTextureUpdateQu eue&, const CCOcclusionTracker*, CCRenderingStats&, bool& didPaint);
84 bool haveTexturesForTiles(int left, int top, int right, int bottom, bool ign oreOcclusions); 84 bool haveTexturesForTiles(int left, int top, int right, int bottom, bool ign oreOcclusions);
85 IntRect markTilesForUpdate(int left, int top, int right, int bottom, bool ig noreOcclusions); 85 IntRect markTilesForUpdate(int left, int top, int right, int bottom, bool ig noreOcclusions);
86 void updateTileTextures(const IntRect& paintRect, int left, int top, int rig ht, int bottom, CCTextureUpdateQueue&, const CCOcclusionTracker*, CCRenderingSta ts&); 86 void updateTileTextures(const IntRect& paintRect, int left, int top, int rig ht, int bottom, CCTextureUpdateQueue&, const CCOcclusionTracker*, CCRenderingSta ts&);
87 void updateScrollPrediction();
87 88
88 UpdatableTile* tileAt(int, int) const; 89 UpdatableTile* tileAt(int, int) const;
89 UpdatableTile* createTile(int, int); 90 UpdatableTile* createTile(int, int);
90 91
91 GC3Denum m_textureFormat; 92 GC3Denum m_textureFormat;
92 bool m_skipsDraw; 93 bool m_skipsDraw;
93 bool m_failedUpdate; 94 bool m_failedUpdate;
94 LayerTextureUpdater::SampledTexelFormat m_sampledTexelFormat; 95 LayerTextureUpdater::SampledTexelFormat m_sampledTexelFormat;
95 96
97 // Used for predictive painting.
98 IntSize m_predictedScroll;
99 IntRect m_predictedVisibleRect;
100 IntRect m_previousVisibleRect;
101 IntSize m_previousContentBounds;
102
96 TilingOption m_tilingOption; 103 TilingOption m_tilingOption;
97 scoped_ptr<CCLayerTilingData> m_tiler; 104 scoped_ptr<CCLayerTilingData> m_tiler;
98 }; 105 };
99 106
100 } 107 }
101 #endif 108 #endif
OLDNEW
« 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