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

Side by Side Diff: cc/layer_tree_impl.h

Issue 12259027: cc: Simplify the logic for deciding to update tile priorities. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Avoid project more agressively. Don't save state for tile prio if we didn't compute tile prio. Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/layer_tree_impl.cc » ('j') | cc/layer_tree_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_LAYER_TREE_IMPL_H_ 5 #ifndef CC_LAYER_TREE_IMPL_H_
6 #define CC_LAYER_TREE_IMPL_H_ 6 #define CC_LAYER_TREE_IMPL_H_
7 7
8 #include "base/hash_tables.h" 8 #include "base/hash_tables.h"
9 #include "cc/layer_impl.h" 9 #include "cc/layer_impl.h"
10 10
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 void set_needs_update_draw_properties() { 145 void set_needs_update_draw_properties() {
146 needs_update_draw_properties_ = true; 146 needs_update_draw_properties_ = true;
147 } 147 }
148 bool needs_update_draw_properties() const { 148 bool needs_update_draw_properties() const {
149 return needs_update_draw_properties_; 149 return needs_update_draw_properties_;
150 } 150 }
151 151
152 void set_needs_full_tree_sync(bool needs) { needs_full_tree_sync_ = needs; } 152 void set_needs_full_tree_sync(bool needs) { needs_full_tree_sync_ = needs; }
153 bool needs_full_tree_sync() const { return needs_full_tree_sync_; } 153 bool needs_full_tree_sync() const { return needs_full_tree_sync_; }
154 154
155 void set_needs_update_tile_priorities() {
156 needs_update_tile_priorities_ = true;
157 }
158
155 void ClearRenderSurfaces(); 159 void ClearRenderSurfaces();
156 160
157 bool AreVisibleResourcesReady() const; 161 bool AreVisibleResourcesReady() const;
158 162
159 const LayerList& RenderSurfaceLayerList() const; 163 const LayerList& RenderSurfaceLayerList() const;
160 164
161 // These return the size of the root scrollable area and the size of 165 // These return the size of the root scrollable area and the size of
162 // the user-visible scrolling viewport, in CSS layout coordinates. 166 // the user-visible scrolling viewport, in CSS layout coordinates.
163 gfx::Size ScrollableSize() const; 167 gfx::Size ScrollableSize() const;
164 gfx::SizeF ScrollableViewportSize() const; 168 gfx::SizeF ScrollableViewportSize() const;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 // Persisted state for non-impl-side-painting. 216 // Persisted state for non-impl-side-painting.
213 int scrolling_layer_id_from_previous_tree_; 217 int scrolling_layer_id_from_previous_tree_;
214 218
215 // List of visible layers for the most recently prepared frame. Used for 219 // List of visible layers for the most recently prepared frame. Used for
216 // rendering and input event hit testing. 220 // rendering and input event hit testing.
217 LayerList render_surface_layer_list_; 221 LayerList render_surface_layer_list_;
218 222
219 bool contents_textures_purged_; 223 bool contents_textures_purged_;
220 bool viewport_size_invalid_; 224 bool viewport_size_invalid_;
221 bool needs_update_draw_properties_; 225 bool needs_update_draw_properties_;
226 bool needs_update_tile_priorities_;
222 227
223 // In impl-side painting mode, this is true when the tree may contain 228 // In impl-side painting mode, this is true when the tree may contain
224 // structural differences relative to the active tree. 229 // structural differences relative to the active tree.
225 bool needs_full_tree_sync_; 230 bool needs_full_tree_sync_;
226 231
227 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 232 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
228 }; 233 };
229 234
230 } 235 }
231 236
232 #endif // CC_LAYER_TREE_IMPL_H_ 237 #endif // CC_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layer_tree_impl.cc » ('j') | cc/layer_tree_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698