OLD | NEW |
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 76 |
77 bool tileOnlyNeedsPartialUpdate(UpdatableTile*); | 77 bool tileOnlyNeedsPartialUpdate(UpdatableTile*); |
78 bool tileNeedsBufferedUpdate(UpdatableTile*); | 78 bool tileNeedsBufferedUpdate(UpdatableTile*); |
79 | 79 |
80 void markOcclusionsAndRequestTextures(int left, int top, int right, int bott
om, const OcclusionTracker*); | 80 void markOcclusionsAndRequestTextures(int left, int top, int right, int bott
om, const OcclusionTracker*); |
81 | 81 |
82 bool updateTiles(int left, int top, int right, int bottom, TextureUpdateQueu
e&, const OcclusionTracker*, RenderingStats&, bool& didPaint); | 82 bool updateTiles(int left, int top, int right, int bottom, TextureUpdateQueu
e&, const OcclusionTracker*, RenderingStats&, bool& didPaint); |
83 bool haveTexturesForTiles(int left, int top, int right, int bottom, bool ign
oreOcclusions); | 83 bool haveTexturesForTiles(int left, int top, int right, int bottom, bool ign
oreOcclusions); |
84 IntRect markTilesForUpdate(int left, int top, int right, int bottom, bool ig
noreOcclusions); | 84 IntRect markTilesForUpdate(int left, int top, int right, int bottom, bool ig
noreOcclusions); |
85 void updateTileTextures(const IntRect& paintRect, int left, int top, int rig
ht, int bottom, TextureUpdateQueue&, const OcclusionTracker*, RenderingStats&); | 85 void updateTileTextures(const IntRect& paintRect, int left, int top, int rig
ht, int bottom, TextureUpdateQueue&, const OcclusionTracker*, RenderingStats&); |
| 86 void updateScrollPrediction(); |
86 | 87 |
87 UpdatableTile* tileAt(int, int) const; | 88 UpdatableTile* tileAt(int, int) const; |
88 UpdatableTile* createTile(int, int); | 89 UpdatableTile* createTile(int, int); |
89 | 90 |
90 GLenum m_textureFormat; | 91 GLenum m_textureFormat; |
91 bool m_skipsDraw; | 92 bool m_skipsDraw; |
92 bool m_failedUpdate; | 93 bool m_failedUpdate; |
93 | 94 |
| 95 // Used for predictive painting. |
| 96 IntSize m_predictedScroll; |
| 97 IntRect m_predictedVisibleRect; |
| 98 IntRect m_previousVisibleRect; |
| 99 IntSize m_previousContentBounds; |
| 100 |
94 TilingOption m_tilingOption; | 101 TilingOption m_tilingOption; |
95 scoped_ptr<LayerTilingData> m_tiler; | 102 scoped_ptr<LayerTilingData> m_tiler; |
96 }; | 103 }; |
97 | 104 |
98 } | 105 } |
99 #endif | 106 #endif |
OLD | NEW |