OLD | NEW |
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/filter_operation.h" |
| 10 #include "cc/base/filter_operations.h" |
9 #include "cc/base/math_util.h" | 11 #include "cc/base/math_util.h" |
10 #include "cc/layers/layer_impl.h" | 12 #include "cc/layers/layer_impl.h" |
11 #include "cc/output/filter_operation.h" | |
12 #include "cc/output/filter_operations.h" | |
13 #include "cc/test/fake_impl_task_runner_provider.h" | 13 #include "cc/test/fake_impl_task_runner_provider.h" |
14 #include "cc/test/fake_layer_tree_host_impl.h" | 14 #include "cc/test/fake_layer_tree_host_impl.h" |
15 #include "cc/test/geometry_test_utils.h" | 15 #include "cc/test/geometry_test_utils.h" |
16 #include "cc/test/test_task_graph_runner.h" | 16 #include "cc/test/test_task_graph_runner.h" |
17 #include "cc/trees/layer_tree_host_common.h" | 17 #include "cc/trees/layer_tree_host_common.h" |
18 #include "cc/trees/layer_tree_impl.h" | 18 #include "cc/trees/layer_tree_impl.h" |
19 #include "cc/trees/single_thread_proxy.h" | 19 #include "cc/trees/single_thread_proxy.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
21 #include "third_party/skia/include/effects/SkBlurImageFilter.h" | 21 #include "third_party/skia/include/effects/SkBlurImageFilter.h" |
22 #include "ui/gfx/geometry/quad_f.h" | 22 #include "ui/gfx/geometry/quad_f.h" |
(...skipping 1688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1711 ASSERT_TRUE(root->GetRenderSurface()->damage_tracker()->GetDamageRectIfValid( | 1711 ASSERT_TRUE(root->GetRenderSurface()->damage_tracker()->GetDamageRectIfValid( |
1712 &damage_rect)); | 1712 &damage_rect)); |
1713 EXPECT_TRUE(damage_rect.Contains(root->GetRenderSurface()->content_rect())); | 1713 EXPECT_TRUE(damage_rect.Contains(root->GetRenderSurface()->content_rect())); |
1714 EXPECT_TRUE(damage_rect.Contains( | 1714 EXPECT_TRUE(damage_rect.Contains( |
1715 gfx::ToEnclosingRect(child1->GetRenderSurface()->DrawableContentRect()))); | 1715 gfx::ToEnclosingRect(child1->GetRenderSurface()->DrawableContentRect()))); |
1716 EXPECT_EQ(damage_rect, root->GetRenderSurface()->GetDamageRect()); | 1716 EXPECT_EQ(damage_rect, root->GetRenderSurface()->GetDamageRect()); |
1717 } | 1717 } |
1718 | 1718 |
1719 } // namespace | 1719 } // namespace |
1720 } // namespace cc | 1720 } // namespace cc |
OLD | NEW |