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 "cc/layer.h" | 9 #include "cc/layer.h" |
10 #include "cc/layer_animation_controller.h" | 10 #include "cc/layer_animation_controller.h" |
11 #include "cc/layer_impl.h" | 11 #include "cc/layer_impl.h" |
12 #include "cc/layer_tree_host_common.h" | 12 #include "cc/layer_tree_host_common.h" |
13 #include "cc/math_util.h" | 13 #include "cc/math_util.h" |
14 #include "cc/overdraw_metrics.h" | 14 #include "cc/overdraw_metrics.h" |
15 #include "cc/single_thread_proxy.h" | 15 #include "cc/single_thread_proxy.h" |
16 #include "cc/test/animation_test_common.h" | 16 #include "cc/test/animation_test_common.h" |
17 #include "cc/test/geometry_test_utils.h" | 17 #include "cc/test/geometry_test_utils.h" |
18 #include "cc/test/occlusion_tracker_test_common.h" | 18 #include "cc/test/occlusion_tracker_test_common.h" |
19 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
21 #include <public/WebFilterOperation.h> | 21 #include <public/WebFilterOperation.h> |
22 #include <public/WebFilterOperations.h> | 22 #include <public/WebFilterOperations.h> |
23 #include <public/WebTransformationMatrix.h> | 23 #include <public/WebTransformationMatrix.h> |
24 | 24 |
25 using namespace cc; | |
26 using namespace WebKit; | 25 using namespace WebKit; |
27 using namespace WebKitTests; | 26 using namespace WebKitTests; |
28 | 27 |
| 28 namespace cc { |
29 namespace { | 29 namespace { |
30 | 30 |
31 class TestContentLayer : public Layer { | 31 class TestContentLayer : public Layer { |
32 public: | 32 public: |
33 TestContentLayer() | 33 TestContentLayer() |
34 : Layer() | 34 : Layer() |
35 , m_overrideOpaqueContentsRect(false) | 35 , m_overrideOpaqueContentsRect(false) |
36 { | 36 { |
37 } | 37 } |
38 | 38 |
(...skipping 3033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3072 // The large layer is tracked as it is large enough. | 3072 // The large layer is tracked as it is large enough. |
3073 this->visitLayer(large, occlusion); | 3073 this->visitLayer(large, occlusion); |
3074 | 3074 |
3075 EXPECT_EQ(gfx::Rect(gfx::Point(), trackingSize).ToString(), occlusion.oc
clusionInScreenSpace().ToString()); | 3075 EXPECT_EQ(gfx::Rect(gfx::Point(), trackingSize).ToString(), occlusion.oc
clusionInScreenSpace().ToString()); |
3076 EXPECT_EQ(gfx::Rect(gfx::Point(), trackingSize).ToString(), occlusion.oc
clusionInTargetSurface().ToString()); | 3076 EXPECT_EQ(gfx::Rect(gfx::Point(), trackingSize).ToString(), occlusion.oc
clusionInTargetSurface().ToString()); |
3077 } | 3077 } |
3078 }; | 3078 }; |
3079 | 3079 |
3080 ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestMinimumTrackingSize); | 3080 ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestMinimumTrackingSize); |
3081 | 3081 |
3082 } // anonymous namespace | 3082 } // namespace |
| 3083 } // namespace cc |
OLD | NEW |