| OLD | NEW |
| 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/occlusion_tracker.h" | 5 #include "cc/occlusion_tracker.h" |
| 6 | 6 |
| 7 #include <public/WebFilterOperation.h> | |
| 8 #include <public/WebFilterOperations.h> | |
| 9 | |
| 10 #include "cc/layer.h" | 7 #include "cc/layer.h" |
| 11 #include "cc/layer_animation_controller.h" | 8 #include "cc/layer_animation_controller.h" |
| 12 #include "cc/layer_impl.h" | 9 #include "cc/layer_impl.h" |
| 13 #include "cc/layer_tree_host_common.h" | 10 #include "cc/layer_tree_host_common.h" |
| 14 #include "cc/math_util.h" | 11 #include "cc/math_util.h" |
| 15 #include "cc/overdraw_metrics.h" | 12 #include "cc/overdraw_metrics.h" |
| 16 #include "cc/single_thread_proxy.h" | 13 #include "cc/single_thread_proxy.h" |
| 17 #include "cc/test/animation_test_common.h" | 14 #include "cc/test/animation_test_common.h" |
| 18 #include "cc/test/fake_impl_proxy.h" | 15 #include "cc/test/fake_impl_proxy.h" |
| 19 #include "cc/test/fake_layer_tree_host_impl.h" | 16 #include "cc/test/fake_layer_tree_host_impl.h" |
| 20 #include "cc/test/geometry_test_utils.h" | 17 #include "cc/test/geometry_test_utils.h" |
| 21 #include "cc/test/occlusion_tracker_test_common.h" | 18 #include "cc/test/occlusion_tracker_test_common.h" |
| 22 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
| 23 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
| 21 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperation.
h" |
| 22 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperations
.h" |
| 24 #include "ui/gfx/transform.h" | 23 #include "ui/gfx/transform.h" |
| 25 | 24 |
| 26 namespace cc { | 25 namespace cc { |
| 27 namespace { | 26 namespace { |
| 28 | 27 |
| 29 class TestContentLayer : public Layer { | 28 class TestContentLayer : public Layer { |
| 30 public: | 29 public: |
| 31 TestContentLayer() | 30 TestContentLayer() |
| 32 : Layer() | 31 : Layer() |
| 33 , m_overrideOpaqueContentsRect(false) | 32 , m_overrideOpaqueContentsRect(false) |
| (...skipping 3084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3118 | 3117 |
| 3119 EXPECT_EQ(gfx::Rect().ToString(), occlusion.occlusionFromOutsideTarget()
.ToString()); | 3118 EXPECT_EQ(gfx::Rect().ToString(), occlusion.occlusionFromOutsideTarget()
.ToString()); |
| 3120 EXPECT_EQ(gfx::Rect(gfx::Point(), trackingSize).ToString(), occlusion.oc
clusionFromInsideTarget().ToString()); | 3119 EXPECT_EQ(gfx::Rect(gfx::Point(), trackingSize).ToString(), occlusion.oc
clusionFromInsideTarget().ToString()); |
| 3121 } | 3120 } |
| 3122 }; | 3121 }; |
| 3123 | 3122 |
| 3124 ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestMinimumTrackingSize); | 3123 ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestMinimumTrackingSize); |
| 3125 | 3124 |
| 3126 } // namespace | 3125 } // namespace |
| 3127 } // namespace cc | 3126 } // namespace cc |
| OLD | NEW |