Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: cc/layers/picture_layer_impl.h

Issue 885443002: Roll Chrome into Mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase to ToT mojo Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/layers/picture_layer.cc ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « cc/layers/picture_layer.cc ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698