| 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 "cc/base/math_util.h" | 7 #include "cc/base/math_util.h" |
| 8 #include "cc/layers/layer_impl.h" | 8 #include "cc/layers/layer_impl.h" |
| 9 #include "cc/test/fake_impl_proxy.h" | 9 #include "cc/test/fake_impl_proxy.h" |
| 10 #include "cc/test/fake_layer_tree_host_impl.h" | 10 #include "cc/test/fake_layer_tree_host_impl.h" |
| 11 #include "cc/test/geometry_test_utils.h" | 11 #include "cc/test/geometry_test_utils.h" |
| 12 #include "cc/trees/layer_tree_host_common.h" | 12 #include "cc/trees/layer_tree_host_common.h" |
| 13 #include "cc/trees/single_thread_proxy.h" | 13 #include "cc/trees/single_thread_proxy.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperation.
h" | 15 #include "third_party/WebKit/public/platform/WebFilterOperation.h" |
| 16 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperations
.h" | 16 #include "third_party/WebKit/public/platform/WebFilterOperations.h" |
| 17 #include "third_party/skia/include/effects/SkBlurImageFilter.h" | 17 #include "third_party/skia/include/effects/SkBlurImageFilter.h" |
| 18 #include "ui/gfx/quad_f.h" | 18 #include "ui/gfx/quad_f.h" |
| 19 | 19 |
| 20 using WebKit::WebFilterOperation; | 20 using WebKit::WebFilterOperation; |
| 21 using WebKit::WebFilterOperations; | 21 using WebKit::WebFilterOperations; |
| 22 | 22 |
| 23 namespace cc { | 23 namespace cc { |
| 24 namespace { | 24 namespace { |
| 25 | 25 |
| 26 void ExecuteCalculateDrawProperties( | 26 void ExecuteCalculateDrawProperties( |
| (...skipping 1325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1352 // Damage should remain empty even after one frame, since there's yet no new | 1352 // Damage should remain empty even after one frame, since there's yet no new |
| 1353 // damage. | 1353 // damage. |
| 1354 EmulateDrawingOneFrame(root.get()); | 1354 EmulateDrawingOneFrame(root.get()); |
| 1355 root_damage_rect = | 1355 root_damage_rect = |
| 1356 root->render_surface()->damage_tracker()->current_damage_rect(); | 1356 root->render_surface()->damage_tracker()->current_damage_rect(); |
| 1357 EXPECT_TRUE(root_damage_rect.IsEmpty()); | 1357 EXPECT_TRUE(root_damage_rect.IsEmpty()); |
| 1358 } | 1358 } |
| 1359 | 1359 |
| 1360 } // namespace | 1360 } // namespace |
| 1361 } // namespace cc | 1361 } // namespace cc |
| OLD | NEW |