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

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

Issue 1479883002: cc: Fix draw transform computation for non-drawn layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove LayerImpl::draw_transform() Created 5 years 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 | « cc/trees/layer_tree_host_unittest_occlusion.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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 } 216 }
217 const SyncedTopControls* top_controls_shown_ratio() const { 217 const SyncedTopControls* top_controls_shown_ratio() const {
218 return top_controls_shown_ratio_.get(); 218 return top_controls_shown_ratio_.get();
219 } 219 }
220 220
221 // Updates draw properties and render surface layer list, as well as tile 221 // Updates draw properties and render surface layer list, as well as tile
222 // priorities. Returns false if it was unable to update. Updating lcd 222 // priorities. Returns false if it was unable to update. Updating lcd
223 // text may cause invalidations, so should only be done after a commit. 223 // text may cause invalidations, so should only be done after a commit.
224 bool UpdateDrawProperties(bool update_lcd_text); 224 bool UpdateDrawProperties(bool update_lcd_text);
225 void BuildPropertyTreesForTesting(); 225 void BuildPropertyTreesForTesting();
226 void IncrementRenderSurfaceListIdForTesting();
ajuma 2015/11/30 17:55:52 In several unit tests, the render surface list id
226 227
227 void set_needs_update_draw_properties() { 228 void set_needs_update_draw_properties() {
228 needs_update_draw_properties_ = true; 229 needs_update_draw_properties_ = true;
229 } 230 }
230 bool needs_update_draw_properties() const { 231 bool needs_update_draw_properties() const {
231 return needs_update_draw_properties_; 232 return needs_update_draw_properties_;
232 } 233 }
233 234
234 void set_needs_full_tree_sync(bool needs) { needs_full_tree_sync_ = needs; } 235 void set_needs_full_tree_sync(bool needs) { needs_full_tree_sync_ = needs; }
235 bool needs_full_tree_sync() const { return needs_full_tree_sync_; } 236 bool needs_full_tree_sync() const { return needs_full_tree_sync_; }
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 501
501 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 502 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
502 503
503 private: 504 private:
504 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 505 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
505 }; 506 };
506 507
507 } // namespace cc 508 } // namespace cc
508 509
509 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 510 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest_occlusion.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698