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 <stdio.h> | 5 #include <stdio.h> |
6 | 6 |
7 #include "cc/nine_patch_layer_impl.h" | 7 #include "cc/layers/append_quads_data.h" |
8 | 8 #include "cc/layers/nine_patch_layer_impl.h" |
9 #include "cc/append_quads_data.h" | |
10 #include "cc/quads/texture_draw_quad.h" | 9 #include "cc/quads/texture_draw_quad.h" |
11 #include "cc/test/fake_impl_proxy.h" | 10 #include "cc/test/fake_impl_proxy.h" |
12 #include "cc/test/fake_layer_tree_host_impl.h" | 11 #include "cc/test/fake_layer_tree_host_impl.h" |
13 #include "cc/test/geometry_test_utils.h" | 12 #include "cc/test/geometry_test_utils.h" |
14 #include "cc/test/layer_test_common.h" | 13 #include "cc/test/layer_test_common.h" |
15 #include "cc/test/mock_quad_culler.h" | 14 #include "cc/test/mock_quad_culler.h" |
16 #include "cc/trees/single_thread_proxy.h" | 15 #include "cc/trees/single_thread_proxy.h" |
17 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
19 #include "ui/gfx/rect_conversions.h" | 18 #include "ui/gfx/rect_conversions.h" |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 Region expectedRemainingRegion = Region(gfx::Rect(bitmapSize)); | 141 Region expectedRemainingRegion = Region(gfx::Rect(bitmapSize)); |
143 expectedRemainingRegion.Subtract(gfx::Rect(0, 0, 17, 28)); | 142 expectedRemainingRegion.Subtract(gfx::Rect(0, 0, 17, 28)); |
144 expectedRemainingRegion.Subtract(gfx::Rect(67, 0, 34, 28)); | 143 expectedRemainingRegion.Subtract(gfx::Rect(67, 0, 34, 28)); |
145 expectedRemainingRegion.Subtract(gfx::Rect(0, 78, 17, 23)); | 144 expectedRemainingRegion.Subtract(gfx::Rect(0, 78, 17, 23)); |
146 expectedRemainingRegion.Subtract(gfx::Rect(67, 78, 34, 23)); | 145 expectedRemainingRegion.Subtract(gfx::Rect(67, 78, 34, 23)); |
147 EXPECT_EQ(expectedRemainingRegion, texRemaining); | 146 EXPECT_EQ(expectedRemainingRegion, texRemaining); |
148 } | 147 } |
149 | 148 |
150 } // namespace | 149 } // namespace |
151 } // namespace cc | 150 } // namespace cc |
OLD | NEW |