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

Side by Side Diff: cc/trees/damage_tracker_unittest.cc

Issue 1752993002: cc : Delete LayerImpl::NoteLayerPropertyChangedForSubtree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/proto/property_tree.proto ('k') | cc/trees/layer_tree_host.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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/trees/damage_tracker.h" 5 #include "cc/trees/damage_tracker.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "cc/base/math_util.h" 9 #include "cc/base/math_util.h"
10 #include "cc/layers/layer_impl.h" 10 #include "cc/layers/layer_impl.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 render_surface_layer_list[index]->render_surface(); 70 render_surface_layer_list[index]->render_surface();
71 target_surface->damage_tracker()->UpdateDamageTrackingState( 71 target_surface->damage_tracker()->UpdateDamageTrackingState(
72 target_surface->layer_list(), target_surface->OwningLayerId(), 72 target_surface->layer_list(), target_surface->OwningLayerId(),
73 target_surface->SurfacePropertyChangedOnlyFromDescendant(), 73 target_surface->SurfacePropertyChangedOnlyFromDescendant(),
74 target_surface->content_rect(), 74 target_surface->content_rect(),
75 render_surface_layer_list[index]->mask_layer(), 75 render_surface_layer_list[index]->mask_layer(),
76 render_surface_layer_list[index]->filters()); 76 render_surface_layer_list[index]->filters());
77 } 77 }
78 78
79 root->ResetAllChangeTrackingForSubtree(); 79 root->ResetAllChangeTrackingForSubtree();
80 root->layer_tree_impl() 80 root->layer_tree_impl()->property_trees()->ResetAllChangeTracking(
81 ->property_trees() 81 PropertyTrees::ResetFlags::ALL_TREES);
82 ->transform_tree.ResetChangeTracking();
83 root->layer_tree_impl()->property_trees()->effect_tree.ResetChangeTracking(); 82 root->layer_tree_impl()->property_trees()->effect_tree.ResetChangeTracking();
84 } 83 }
85 84
86 class DamageTrackerTest : public testing::Test { 85 class DamageTrackerTest : public testing::Test {
87 public: 86 public:
88 DamageTrackerTest() 87 DamageTrackerTest()
89 : host_impl_(&task_runner_provider_, 88 : host_impl_(&task_runner_provider_,
90 &shared_bitmap_manager_, 89 &shared_bitmap_manager_,
91 &task_graph_runner_) {} 90 &task_graph_runner_) {}
92 91
(...skipping 1459 matching lines...) Expand 10 before | Expand all | Expand 10 after
1552 gfx::Rect root_damage_rect = 1551 gfx::Rect root_damage_rect =
1553 root->render_surface()->damage_tracker()->current_damage_rect(); 1552 root->render_surface()->damage_tracker()->current_damage_rect();
1554 gfx::Rect damage_we_care_about = gfx::Rect(i, i); 1553 gfx::Rect damage_we_care_about = gfx::Rect(i, i);
1555 EXPECT_LE(damage_we_care_about.right(), root_damage_rect.right()); 1554 EXPECT_LE(damage_we_care_about.right(), root_damage_rect.right());
1556 EXPECT_LE(damage_we_care_about.bottom(), root_damage_rect.bottom()); 1555 EXPECT_LE(damage_we_care_about.bottom(), root_damage_rect.bottom());
1557 } 1556 }
1558 } 1557 }
1559 1558
1560 } // namespace 1559 } // namespace
1561 } // namespace cc 1560 } // namespace cc
OLDNEW
« no previous file with comments | « cc/proto/property_tree.proto ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698