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

Side by Side Diff: cc/trees/layer_tree_impl.h

Issue 332433003: cc: Remove EnsureRenderSurfaceLayerList, do UpdateDrawProps when needed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ensurersll: checkinside Created 6 years, 6 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 | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_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_TREES_LAYER_TREE_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_
6 #define CC_TREES_LAYER_TREE_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 float page_scale_factor() const { return page_scale_factor_; } 160 float page_scale_factor() const { return page_scale_factor_; }
161 float min_page_scale_factor() const { return min_page_scale_factor_; } 161 float min_page_scale_factor() const { return min_page_scale_factor_; }
162 float max_page_scale_factor() const { return max_page_scale_factor_; } 162 float max_page_scale_factor() const { return max_page_scale_factor_; }
163 float page_scale_delta() const { return page_scale_delta_; } 163 float page_scale_delta() const { return page_scale_delta_; }
164 void set_sent_page_scale_delta(float delta) { 164 void set_sent_page_scale_delta(float delta) {
165 sent_page_scale_delta_ = delta; 165 sent_page_scale_delta_ = delta;
166 } 166 }
167 float sent_page_scale_delta() const { return sent_page_scale_delta_; } 167 float sent_page_scale_delta() const { return sent_page_scale_delta_; }
168 168
169 // Updates draw properties and render surface layer list, as well as tile 169 // Updates draw properties and render surface layer list, as well as tile
170 // priorities. 170 // priorities. Returns false if it was unable to update.
171 void UpdateDrawProperties(); 171 bool UpdateDrawProperties();
172 172
173 void set_needs_update_draw_properties() { 173 void set_needs_update_draw_properties() {
174 needs_update_draw_properties_ = true; 174 needs_update_draw_properties_ = true;
175 } 175 }
176 bool needs_update_draw_properties() const { 176 bool needs_update_draw_properties() const {
177 return needs_update_draw_properties_; 177 return needs_update_draw_properties_;
178 } 178 }
179 179
180 void set_needs_full_tree_sync(bool needs) { needs_full_tree_sync_ = needs; } 180 void set_needs_full_tree_sync(bool needs) { needs_full_tree_sync_ = needs; }
181 bool needs_full_tree_sync() const { return needs_full_tree_sync_; } 181 bool needs_full_tree_sync() const { return needs_full_tree_sync_; }
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 314
315 int render_surface_layer_list_id_; 315 int render_surface_layer_list_id_;
316 316
317 private: 317 private:
318 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 318 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
319 }; 319 };
320 320
321 } // namespace cc 321 } // namespace cc
322 322
323 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 323 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698