| 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 "cc/occlusion_tracker.h" | 7 #include "cc/occlusion_tracker.h" |
| 8 | 8 |
| 9 #include "Region.h" | 9 #include "Region.h" |
| 10 #include "cc/layer.h" | 10 #include "cc/layer.h" |
| (...skipping 3155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3166 | 3166 |
| 3167 EXPECT_RECT_EQ(gfx::Rect(gfx::Point(), trackingSize), occlusion.occlusio
nInScreenSpace().bounds()); | 3167 EXPECT_RECT_EQ(gfx::Rect(gfx::Point(), trackingSize), occlusion.occlusio
nInScreenSpace().bounds()); |
| 3168 EXPECT_EQ(1u, Region::Iterator(occlusion.occlusionInScreenSpace()).size(
)); | 3168 EXPECT_EQ(1u, Region::Iterator(occlusion.occlusionInScreenSpace()).size(
)); |
| 3169 EXPECT_RECT_EQ(gfx::Rect(gfx::Point(), trackingSize), occlusion.occlusio
nInTargetSurface().bounds()); | 3169 EXPECT_RECT_EQ(gfx::Rect(gfx::Point(), trackingSize), occlusion.occlusio
nInTargetSurface().bounds()); |
| 3170 EXPECT_EQ(1u, Region::Iterator(occlusion.occlusionInTargetSurface()).siz
e()); | 3170 EXPECT_EQ(1u, Region::Iterator(occlusion.occlusionInTargetSurface()).siz
e()); |
| 3171 } | 3171 } |
| 3172 }; | 3172 }; |
| 3173 | 3173 |
| 3174 ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestMinimumTrackingSize); | 3174 ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestMinimumTrackingSize); |
| 3175 | 3175 |
| 3176 } // namespace | 3176 } // anonymous namespace |
| OLD | NEW |