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

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

Issue 2106273002: cc: Change how/when we build layer list/property tress in tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 const SyncedTopControls* top_controls_shown_ratio() const { 255 const SyncedTopControls* top_controls_shown_ratio() const {
256 return top_controls_shown_ratio_.get(); 256 return top_controls_shown_ratio_.get();
257 } 257 }
258 258
259 void SetElementIdsForTesting(); 259 void SetElementIdsForTesting();
260 260
261 // Updates draw properties and render surface layer list, as well as tile 261 // Updates draw properties and render surface layer list, as well as tile
262 // priorities. Returns false if it was unable to update. Updating lcd 262 // priorities. Returns false if it was unable to update. Updating lcd
263 // text may cause invalidations, so should only be done after a commit. 263 // text may cause invalidations, so should only be done after a commit.
264 bool UpdateDrawProperties(bool update_lcd_text); 264 bool UpdateDrawProperties(bool update_lcd_text);
265 void BuildPropertyTreesForTesting();
265 void BuildLayerListAndPropertyTreesForTesting(); 266 void BuildLayerListAndPropertyTreesForTesting();
266 267
267 void set_needs_update_draw_properties() { 268 void set_needs_update_draw_properties() {
268 needs_update_draw_properties_ = true; 269 needs_update_draw_properties_ = true;
269 } 270 }
270 bool needs_update_draw_properties() const { 271 bool needs_update_draw_properties() const {
271 return needs_update_draw_properties_; 272 return needs_update_draw_properties_;
272 } 273 }
273 274
274 bool is_in_resourceless_software_draw_mode() { 275 bool is_in_resourceless_software_draw_mode() {
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 587
587 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 588 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
588 589
589 private: 590 private:
590 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 591 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
591 }; 592 };
592 593
593 } // namespace cc 594 } // namespace cc
594 595
595 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 596 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698