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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 PictureLayerImpl* twin_layer_; | 123 PictureLayerImpl* twin_layer_; |
124 | 124 |
125 std::unique_ptr<PictureLayerTilingSet> tilings_; | 125 std::unique_ptr<PictureLayerTilingSet> tilings_; |
126 scoped_refptr<RasterSource> raster_source_; | 126 scoped_refptr<RasterSource> raster_source_; |
127 Region invalidation_; | 127 Region invalidation_; |
128 | 128 |
129 float ideal_page_scale_; | 129 float ideal_page_scale_; |
130 float ideal_device_scale_; | 130 float ideal_device_scale_; |
131 float ideal_source_scale_; | 131 float ideal_source_scale_; |
132 float ideal_contents_scale_; | 132 float ideal_contents_scale_; |
133 // This refers to the ideal scale from the previous frame (or a previous time | |
134 // the ideal scale was updated). | |
135 float last_ideal_source_scale_; | |
136 | 133 |
137 float raster_page_scale_; | 134 float raster_page_scale_; |
138 float raster_device_scale_; | 135 float raster_device_scale_; |
139 float raster_source_scale_; | 136 float raster_source_scale_; |
140 float raster_contents_scale_; | 137 float raster_contents_scale_; |
141 float low_res_raster_contents_scale_; | 138 float low_res_raster_contents_scale_; |
142 | 139 |
143 bool raster_source_scale_is_fixed_; | |
144 bool was_screen_space_transform_animating_; | 140 bool was_screen_space_transform_animating_; |
145 bool only_used_low_res_last_append_quads_; | 141 bool only_used_low_res_last_append_quads_; |
146 const bool is_mask_; | 142 const bool is_mask_; |
147 | 143 |
148 bool nearest_neighbor_; | 144 bool nearest_neighbor_; |
149 | 145 |
150 // Use this instead of |visible_layer_rect()| for tiling calculations. This | 146 // Use this instead of |visible_layer_rect()| for tiling calculations. This |
151 // takes external viewport and transform for tile priority into account. | 147 // takes external viewport and transform for tile priority into account. |
152 gfx::Rect viewport_rect_for_tile_priority_in_content_space_; | 148 gfx::Rect viewport_rect_for_tile_priority_in_content_space_; |
153 | 149 |
154 gfx::Size gpu_raster_max_texture_size_; | 150 gfx::Size gpu_raster_max_texture_size_; |
155 | 151 |
156 // List of tilings that were used last time we appended quads. This can be | 152 // List of tilings that were used last time we appended quads. This can be |
157 // used as an optimization not to remove tilings if they are still being | 153 // used as an optimization not to remove tilings if they are still being |
158 // drawn. Note that accessing this vector should only be done in the context | 154 // drawn. Note that accessing this vector should only be done in the context |
159 // of comparing pointers, since objects pointed to are not guaranteed to | 155 // of comparing pointers, since objects pointed to are not guaranteed to |
160 // exist. | 156 // exist. |
161 std::vector<PictureLayerTiling*> last_append_quads_tilings_; | 157 std::vector<PictureLayerTiling*> last_append_quads_tilings_; |
162 | 158 |
163 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 159 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
164 }; | 160 }; |
165 | 161 |
166 } // namespace cc | 162 } // namespace cc |
167 | 163 |
168 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 164 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |