| 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 "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "CCOcclusionTracker.h" | 7 #include "CCOcclusionTracker.h" |
| 8 | 8 |
| 9 #include "CCLayerAnimationController.h" | 9 #include "CCLayerAnimationController.h" |
| 10 #include "CCLayerImpl.h" | 10 #include "CCLayerImpl.h" |
| 11 #include "CCLayerTreeHostCommon.h" | 11 #include "CCLayerTreeHostCommon.h" |
| 12 #include "CCMathUtil.h" | 12 #include "CCMathUtil.h" |
| 13 #include "CCOverdrawMetrics.h" | 13 #include "CCOverdrawMetrics.h" |
| 14 #include "CCSingleThreadProxy.h" | 14 #include "CCSingleThreadProxy.h" |
| 15 #include "LayerChromium.h" | |
| 16 #include "Region.h" | 15 #include "Region.h" |
| 16 #include "cc/layer.h" |
| 17 #include "cc/test/animation_test_common.h" | 17 #include "cc/test/animation_test_common.h" |
| 18 #include "cc/test/geometry_test_utils.h" | 18 #include "cc/test/geometry_test_utils.h" |
| 19 #include "cc/test/occlusion_tracker_test_common.h" | 19 #include "cc/test/occlusion_tracker_test_common.h" |
| 20 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
| 21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
| 22 #include <public/WebFilterOperation.h> | 22 #include <public/WebFilterOperation.h> |
| 23 #include <public/WebFilterOperations.h> | 23 #include <public/WebFilterOperations.h> |
| 24 #include <public/WebTransformationMatrix.h> | 24 #include <public/WebTransformationMatrix.h> |
| 25 | 25 |
| 26 using namespace cc; | 26 using namespace cc; |
| (...skipping 3007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3034 EXPECT_RECT_EQ(IntRect(IntPoint(), trackingSize), occlusion.occlusionInS
creenSpace().bounds()); | 3034 EXPECT_RECT_EQ(IntRect(IntPoint(), trackingSize), occlusion.occlusionInS
creenSpace().bounds()); |
| 3035 EXPECT_EQ(1u, occlusion.occlusionInScreenSpace().rects().size()); | 3035 EXPECT_EQ(1u, occlusion.occlusionInScreenSpace().rects().size()); |
| 3036 EXPECT_RECT_EQ(IntRect(IntPoint(), trackingSize), occlusion.occlusionInT
argetSurface().bounds()); | 3036 EXPECT_RECT_EQ(IntRect(IntPoint(), trackingSize), occlusion.occlusionInT
argetSurface().bounds()); |
| 3037 EXPECT_EQ(1u, occlusion.occlusionInTargetSurface().rects().size()); | 3037 EXPECT_EQ(1u, occlusion.occlusionInTargetSurface().rects().size()); |
| 3038 } | 3038 } |
| 3039 }; | 3039 }; |
| 3040 | 3040 |
| 3041 ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestMinimumTrackingSize); | 3041 ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestMinimumTrackingSize); |
| 3042 | 3042 |
| 3043 } // namespace | 3043 } // namespace |
| OLD | NEW |