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/trees/occlusion_tracker.h" | 5 #include "cc/trees/occlusion_tracker.h" |
6 | 6 |
7 #include "cc/animation/layer_animation_controller.h" | 7 #include "cc/animation/layer_animation_controller.h" |
8 #include "cc/base/math_util.h" | 8 #include "cc/base/math_util.h" |
9 #include "cc/debug/overdraw_metrics.h" | 9 #include "cc/debug/overdraw_metrics.h" |
10 #include "cc/layers/layer.h" | 10 #include "cc/layers/layer.h" |
11 #include "cc/layers/layer_impl.h" | 11 #include "cc/layers/layer_impl.h" |
12 #include "cc/test/animation_test_common.h" | 12 #include "cc/test/animation_test_common.h" |
13 #include "cc/test/fake_impl_proxy.h" | 13 #include "cc/test/fake_impl_proxy.h" |
14 #include "cc/test/fake_layer_tree_host_impl.h" | 14 #include "cc/test/fake_layer_tree_host_impl.h" |
15 #include "cc/test/geometry_test_utils.h" | 15 #include "cc/test/geometry_test_utils.h" |
16 #include "cc/test/occlusion_tracker_test_common.h" | 16 #include "cc/test/occlusion_tracker_test_common.h" |
17 #include "cc/trees/layer_tree_host_common.h" | 17 #include "cc/trees/layer_tree_host_common.h" |
18 #include "cc/trees/single_thread_proxy.h" | 18 #include "cc/trees/single_thread_proxy.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 "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperation.
h" | 21 #include "third_party/WebKit/public/platform/WebFilterOperation.h" |
22 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperations
.h" | 22 #include "third_party/WebKit/public/platform/WebFilterOperations.h" |
23 #include "ui/gfx/transform.h" | 23 #include "ui/gfx/transform.h" |
24 | 24 |
25 namespace cc { | 25 namespace cc { |
26 namespace { | 26 namespace { |
27 | 27 |
28 class TestContentLayer : public Layer { | 28 class TestContentLayer : public Layer { |
29 public: | 29 public: |
30 TestContentLayer() : Layer(), override_opaque_contents_rect_(false) {} | 30 TestContentLayer() : Layer(), override_opaque_contents_rect_(false) {} |
31 | 31 |
32 virtual bool DrawsContent() const OVERRIDE { return true; } | 32 virtual bool DrawsContent() const OVERRIDE { return true; } |
(...skipping 4776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4809 occlusion.occlusion_from_outside_target().ToString()); | 4809 occlusion.occlusion_from_outside_target().ToString()); |
4810 EXPECT_EQ(gfx::Rect(10, 10, 50, 50).ToString(), | 4810 EXPECT_EQ(gfx::Rect(10, 10, 50, 50).ToString(), |
4811 occlusion.occlusion_from_inside_target().ToString()); | 4811 occlusion.occlusion_from_inside_target().ToString()); |
4812 } | 4812 } |
4813 }; | 4813 }; |
4814 | 4814 |
4815 ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestScaledLayerInSurfaceIsClipped) | 4815 ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestScaledLayerInSurfaceIsClipped) |
4816 | 4816 |
4817 } // namespace | 4817 } // namespace |
4818 } // namespace cc | 4818 } // namespace cc |
OLD | NEW |