| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_PICTURE_LAYER_TILING_H_ | 5 #ifndef CC_PICTURE_LAYER_TILING_H_ |
| 6 #define CC_PICTURE_LAYER_TILING_H_ | 6 #define CC_PICTURE_LAYER_TILING_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/hash_tables.h" | 9 #include "base/hash_tables.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 const gfx::RectF viewport_in_layer_space, | 123 const gfx::RectF viewport_in_layer_space, |
| 124 gfx::Size last_layer_bounds, | 124 gfx::Size last_layer_bounds, |
| 125 gfx::Size current_layer_bounds, | 125 gfx::Size current_layer_bounds, |
| 126 gfx::Size last_layer_content_bounds, | 126 gfx::Size last_layer_content_bounds, |
| 127 gfx::Size current_layer_content_bounds, | 127 gfx::Size current_layer_content_bounds, |
| 128 float last_layer_contents_scale, | 128 float last_layer_contents_scale, |
| 129 float current_layer_contents_scale, | 129 float current_layer_contents_scale, |
| 130 const gfx::Transform& last_screen_transform, | 130 const gfx::Transform& last_screen_transform, |
| 131 const gfx::Transform& current_screen_transform, | 131 const gfx::Transform& current_screen_transform, |
| 132 int current_source_frame_number, | 132 int current_source_frame_number, |
| 133 double current_frame_time); | 133 double current_frame_time, |
| 134 bool store_screen_space_quads_on_tiles); |
| 134 | 135 |
| 135 // Copies the src_tree priority into the dst_tree priority for all tiles. | 136 // Copies the src_tree priority into the dst_tree priority for all tiles. |
| 136 // The src_tree priority is reset to the lowest priority possible. This | 137 // The src_tree priority is reset to the lowest priority possible. This |
| 137 // also updates the pile on each tile to be the current client's pile. | 138 // also updates the pile on each tile to be the current client's pile. |
| 138 void DidBecomeActive(); | 139 void DidBecomeActive(); |
| 139 | 140 |
| 140 protected: | 141 protected: |
| 141 typedef std::pair<int, int> TileMapKey; | 142 typedef std::pair<int, int> TileMapKey; |
| 142 typedef base::hash_map<TileMapKey, scoped_refptr<Tile> > TileMap; | 143 typedef base::hash_map<TileMapKey, scoped_refptr<Tile> > TileMap; |
| 143 | 144 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 156 TileResolution resolution_; | 157 TileResolution resolution_; |
| 157 int last_source_frame_number_; | 158 int last_source_frame_number_; |
| 158 double last_impl_frame_time_; | 159 double last_impl_frame_time_; |
| 159 | 160 |
| 160 friend class Iterator; | 161 friend class Iterator; |
| 161 }; | 162 }; |
| 162 | 163 |
| 163 } // namespace cc | 164 } // namespace cc |
| 164 | 165 |
| 165 #endif // CC_PICTURE_LAYER_TILING_H_ | 166 #endif // CC_PICTURE_LAYER_TILING_H_ |
| OLD | NEW |