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

Side by Side Diff: cc/layers/layer_impl.cc

Issue 2360003002: cc: Compute SurfacePropertyChanged without depending on owning layer (Closed)
Patch Set: Address review comment Created 4 years, 2 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 | « cc/layers/layer.cc ('k') | cc/layers/layer_unittest.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 #include "cc/layers/layer_impl.h" 5 #include "cc/layers/layer_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 } 482 }
483 483
484 void LayerImpl::ResetChangeTracking() { 484 void LayerImpl::ResetChangeTracking() {
485 layer_property_changed_ = false; 485 layer_property_changed_ = false;
486 needs_push_properties_ = false; 486 needs_push_properties_ = false;
487 487
488 update_rect_.SetRect(0, 0, 0, 0); 488 update_rect_.SetRect(0, 0, 0, 0);
489 damage_rect_.SetRect(0, 0, 0, 0); 489 damage_rect_.SetRect(0, 0, 0, 0);
490 490
491 if (render_surface_) 491 if (render_surface_)
492 render_surface_->ResetPropertyChangedFlag(); 492 render_surface_->ResetPropertyChangedFlags();
493 } 493 }
494 494
495 int LayerImpl::num_copy_requests_in_target_subtree() { 495 int LayerImpl::num_copy_requests_in_target_subtree() {
496 return layer_tree_impl() 496 return layer_tree_impl()
497 ->property_trees() 497 ->property_trees()
498 ->effect_tree.Node(effect_tree_index()) 498 ->effect_tree.Node(effect_tree_index())
499 ->num_copy_requests_in_subtree; 499 ->num_copy_requests_in_subtree;
500 } 500 }
501 501
502 void LayerImpl::UpdatePropertyTreeTransformIsAnimated(bool is_animated) { 502 void LayerImpl::UpdatePropertyTreeTransformIsAnimated(bool is_animated) {
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
1107 .layer_transforms_should_scale_layer_contents) { 1107 .layer_transforms_should_scale_layer_contents) {
1108 return default_scale; 1108 return default_scale;
1109 } 1109 }
1110 1110
1111 gfx::Vector2dF transform_scales = MathUtil::ComputeTransform2dScaleComponents( 1111 gfx::Vector2dF transform_scales = MathUtil::ComputeTransform2dScaleComponents(
1112 ScreenSpaceTransform(), default_scale); 1112 ScreenSpaceTransform(), default_scale);
1113 return std::max(transform_scales.x(), transform_scales.y()); 1113 return std::max(transform_scales.x(), transform_scales.y());
1114 } 1114 }
1115 1115
1116 } // namespace cc 1116 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698