| 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 CC_LAYERS_TILED_LAYER_H_ | 5 #ifndef CC_LAYERS_TILED_LAYER_H_ |
| 6 #define CC_LAYERS_TILED_LAYER_H_ | 6 #define CC_LAYERS_TILED_LAYER_H_ |
| 7 | 7 |
| 8 #include "cc/base/cc_export.h" | 8 #include "cc/base/cc_export.h" |
| 9 #include "cc/layers/contents_scaling_layer.h" | 9 #include "cc/layers/contents_scaling_layer.h" |
| 10 #include "cc/resources/layer_tiling_data.h" | 10 #include "cc/resources/layer_tiling_data.h" |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 int right, | 96 int right, |
| 97 int bottom, | 97 int bottom, |
| 98 ResourceUpdateQueue* queue, | 98 ResourceUpdateQueue* queue, |
| 99 const OcclusionTracker* occlusion, | 99 const OcclusionTracker* occlusion, |
| 100 bool* did_paint); | 100 bool* did_paint); |
| 101 bool HaveTexturesForTiles(int left, | 101 bool HaveTexturesForTiles(int left, |
| 102 int top, | 102 int top, |
| 103 int right, | 103 int right, |
| 104 int bottom, | 104 int bottom, |
| 105 bool ignore_occlusions); | 105 bool ignore_occlusions); |
| 106 gfx::Rect MarkTilesForUpdate(int left, | 106 void MarkTilesForUpdate(gfx::Rect* update_rect, |
| 107 int top, | 107 gfx::Rect* paint_rect, |
| 108 int right, | |
| 109 int bottom, | |
| 110 bool ignore_occlusions); | |
| 111 void UpdateTileTextures(gfx::Rect paint_rect, | |
| 112 int left, | 108 int left, |
| 113 int top, | 109 int top, |
| 114 int right, | 110 int right, |
| 111 int bottom, |
| 112 bool ignore_occlusions); |
| 113 void UpdateTileTextures(gfx::Rect update_rect, |
| 114 gfx::Rect paint_rect, |
| 115 int left, |
| 116 int top, |
| 117 int right, |
| 115 int bottom, | 118 int bottom, |
| 116 ResourceUpdateQueue* queue, | 119 ResourceUpdateQueue* queue, |
| 117 const OcclusionTracker* occlusion); | 120 const OcclusionTracker* occlusion); |
| 118 void UpdateScrollPrediction(); | 121 void UpdateScrollPrediction(); |
| 119 | 122 |
| 120 UpdatableTile* TileAt(int i, int j) const; | 123 UpdatableTile* TileAt(int i, int j) const; |
| 121 UpdatableTile* CreateTile(int i, int j); | 124 UpdatableTile* CreateTile(int i, int j); |
| 122 | 125 |
| 123 bool IsSmallAnimatedLayer() const; | 126 bool IsSmallAnimatedLayer() const; |
| 124 | 127 |
| 125 ResourceFormat texture_format_; | 128 ResourceFormat texture_format_; |
| 126 bool skips_draw_; | 129 bool skips_draw_; |
| 127 bool failed_update_; | 130 bool failed_update_; |
| 128 | 131 |
| 129 // Used for predictive painting. | 132 // Used for predictive painting. |
| 130 gfx::Vector2d predicted_scroll_; | 133 gfx::Vector2d predicted_scroll_; |
| 131 gfx::Rect predicted_visible_rect_; | 134 gfx::Rect predicted_visible_rect_; |
| 132 gfx::Rect previous_visible_rect_; | 135 gfx::Rect previous_visible_rect_; |
| 133 gfx::Size previous_content_bounds_; | 136 gfx::Size previous_content_bounds_; |
| 134 | 137 |
| 135 TilingOption tiling_option_; | 138 TilingOption tiling_option_; |
| 136 scoped_ptr<LayerTilingData> tiler_; | 139 scoped_ptr<LayerTilingData> tiler_; |
| 137 | 140 |
| 138 DISALLOW_COPY_AND_ASSIGN(TiledLayer); | 141 DISALLOW_COPY_AND_ASSIGN(TiledLayer); |
| 139 }; | 142 }; |
| 140 | 143 |
| 141 } // namespace cc | 144 } // namespace cc |
| 142 | 145 |
| 143 #endif // CC_LAYERS_TILED_LAYER_H_ | 146 #endif // CC_LAYERS_TILED_LAYER_H_ |
| OLD | NEW |