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_LAYERS_PICTURE_LAYER_IMPL_H_ | 5 #ifndef CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
6 #define CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 6 #define CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 float ideal_contents_scale_; | 151 float ideal_contents_scale_; |
152 | 152 |
153 float raster_page_scale_; | 153 float raster_page_scale_; |
154 float raster_device_scale_; | 154 float raster_device_scale_; |
155 float raster_source_scale_; | 155 float raster_source_scale_; |
156 float raster_contents_scale_; | 156 float raster_contents_scale_; |
157 float low_res_raster_contents_scale_; | 157 float low_res_raster_contents_scale_; |
158 | 158 |
159 bool raster_source_scale_is_fixed_; | 159 bool raster_source_scale_is_fixed_; |
160 bool was_screen_space_transform_animating_; | 160 bool was_screen_space_transform_animating_; |
161 // A sanity state check to make sure UpdateTilePriorities only gets called | |
162 // after a CalculateContentsScale/ManageTilings. | |
163 bool should_update_tile_priorities_; | |
164 bool only_used_low_res_last_append_quads_; | 161 bool only_used_low_res_last_append_quads_; |
165 const bool is_mask_; | 162 const bool is_mask_; |
166 | 163 |
167 bool nearest_neighbor_; | 164 bool nearest_neighbor_; |
168 | 165 |
169 // Any draw properties derived from |transform|, |viewport|, and |clip| | 166 // Any draw properties derived from |transform|, |viewport|, and |clip| |
170 // parameters in LayerTreeHostImpl::SetExternalDrawConstraints are not valid | 167 // parameters in LayerTreeHostImpl::SetExternalDrawConstraints are not valid |
171 // for prioritizing tiles during resourceless software draws. This is because | 168 // for prioritizing tiles during resourceless software draws. This is because |
172 // resourceless software draws can have wildly different transforms/viewports | 169 // resourceless software draws can have wildly different transforms/viewports |
173 // from regular draws. Save a copy of the required draw properties of the last | 170 // from regular draws. Save a copy of the required draw properties of the last |
174 // frame that has a valid viewport for prioritizing tiles. | 171 // frame that has a valid viewport for prioritizing tiles. |
175 gfx::Rect visible_rect_for_tile_priority_; | 172 gfx::Rect visible_rect_for_tile_priority_; |
176 gfx::Rect viewport_rect_for_tile_priority_in_content_space_; | 173 gfx::Rect viewport_rect_for_tile_priority_in_content_space_; |
177 | 174 |
178 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 175 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
179 }; | 176 }; |
180 | 177 |
181 } // namespace cc | 178 } // namespace cc |
182 | 179 |
183 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 180 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |