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

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

Issue 1013273003: cc: Force an update on tile size after viewport resize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: only call if on pending tree Created 5 years, 9 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') | cc/layers/picture_layer_impl.cc » ('J')
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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 164
165 // Any draw properties derived from |transform|, |viewport|, and |clip| 165 // Any draw properties derived from |transform|, |viewport|, and |clip|
166 // parameters in LayerTreeHostImpl::SetExternalDrawConstraints are not valid 166 // parameters in LayerTreeHostImpl::SetExternalDrawConstraints are not valid
167 // for prioritizing tiles during resourceless software draws. This is because 167 // for prioritizing tiles during resourceless software draws. This is because
168 // resourceless software draws can have wildly different transforms/viewports 168 // resourceless software draws can have wildly different transforms/viewports
169 // from regular draws. Save a copy of the required draw properties of the last 169 // from regular draws. Save a copy of the required draw properties of the last
170 // frame that has a valid viewport for prioritizing tiles. 170 // frame that has a valid viewport for prioritizing tiles.
171 gfx::Rect visible_rect_for_tile_priority_; 171 gfx::Rect visible_rect_for_tile_priority_;
172 gfx::Rect viewport_rect_for_tile_priority_in_content_space_; 172 gfx::Rect viewport_rect_for_tile_priority_in_content_space_;
173 173
174 // Keep track of the last viewport rect. If it changes, we need to ensure that
175 // the texture size is correct in the tiling.
176 gfx::Size last_viewport_size_;
177
174 // List of tilings that were used last time we appended quads. This can be 178 // List of tilings that were used last time we appended quads. This can be
175 // used as an optimization not to remove tilings if they are still being 179 // used as an optimization not to remove tilings if they are still being
176 // drawn. Note that accessing this vector should only be done in the context 180 // drawn. Note that accessing this vector should only be done in the context
177 // of comparing pointers, since objects pointed to are not guaranteed to 181 // of comparing pointers, since objects pointed to are not guaranteed to
178 // exist. 182 // exist.
179 std::vector<PictureLayerTiling*> last_append_quads_tilings_; 183 std::vector<PictureLayerTiling*> last_append_quads_tilings_;
180 184
181 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 185 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
182 }; 186 };
183 187
184 } // namespace cc 188 } // namespace cc
185 189
186 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ 190 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl.cc » ('j') | cc/layers/picture_layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698