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

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

Issue 1839143004: Limit image filtering during scale animations Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | 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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 float ideal_device_scale_; 134 float ideal_device_scale_;
135 float ideal_source_scale_; 135 float ideal_source_scale_;
136 float ideal_contents_scale_; 136 float ideal_contents_scale_;
137 137
138 float raster_page_scale_; 138 float raster_page_scale_;
139 float raster_device_scale_; 139 float raster_device_scale_;
140 float raster_source_scale_; 140 float raster_source_scale_;
141 float raster_contents_scale_; 141 float raster_contents_scale_;
142 float low_res_raster_contents_scale_; 142 float low_res_raster_contents_scale_;
143 143
144 bool source_scale_has_changed_;
144 bool was_screen_space_transform_animating_; 145 bool was_screen_space_transform_animating_;
145 bool only_used_low_res_last_append_quads_; 146 bool only_used_low_res_last_append_quads_;
146 const bool is_mask_; 147 const bool is_mask_;
147 148
148 bool nearest_neighbor_; 149 bool nearest_neighbor_;
149 150
150 // Use this instead of |visible_layer_rect()| for tiling calculations. This 151 // Use this instead of |visible_layer_rect()| for tiling calculations. This
151 // takes external viewport and transform for tile priority into account. 152 // takes external viewport and transform for tile priority into account.
152 gfx::Rect viewport_rect_for_tile_priority_in_content_space_; 153 gfx::Rect viewport_rect_for_tile_priority_in_content_space_;
153 154
154 gfx::Size gpu_raster_max_texture_size_; 155 gfx::Size gpu_raster_max_texture_size_;
155 156
156 // List of tilings that were used last time we appended quads. This can be 157 // 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 158 // 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 159 // 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 160 // of comparing pointers, since objects pointed to are not guaranteed to
160 // exist. 161 // exist.
161 std::vector<PictureLayerTiling*> last_append_quads_tilings_; 162 std::vector<PictureLayerTiling*> last_append_quads_tilings_;
162 163
163 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 164 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
164 }; 165 };
165 166
166 } // namespace cc 167 } // namespace cc
167 168
168 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ 169 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698