OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <vector> | 5 #include <vector> |
6 #include "cc/blink/web_layer_impl_fixed_bounds.h" | 6 #include "cc/blink/web_layer_impl_fixed_bounds.h" |
| 7 #include "cc/layers/layer_settings.h" |
7 #include "cc/layers/picture_image_layer.h" | 8 #include "cc/layers/picture_image_layer.h" |
8 #include "cc/test/fake_layer_tree_host.h" | 9 #include "cc/test/fake_layer_tree_host.h" |
9 #include "cc/test/geometry_test_utils.h" | 10 #include "cc/test/geometry_test_utils.h" |
10 #include "cc/test/test_task_graph_runner.h" | 11 #include "cc/test/test_task_graph_runner.h" |
11 #include "cc/trees/layer_tree_host_common.h" | 12 #include "cc/trees/layer_tree_host_common.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "third_party/WebKit/public/platform/WebFloatPoint.h" | 14 #include "third_party/WebKit/public/platform/WebFloatPoint.h" |
14 #include "third_party/WebKit/public/platform/WebSize.h" | 15 #include "third_party/WebKit/public/platform/WebSize.h" |
15 #include "third_party/skia/include/utils/SkMatrix44.h" | 16 #include "third_party/skia/include/utils/SkMatrix44.h" |
16 #include "ui/gfx/geometry/point3_f.h" | 17 #include "ui/gfx/geometry/point3_f.h" |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 | 171 |
171 CompareFixedBoundsLayerAndNormalLayer(WebFloatPoint(0, 0), transform); | 172 CompareFixedBoundsLayerAndNormalLayer(WebFloatPoint(0, 0), transform); |
172 | 173 |
173 // With non-zero anchor point, WebLayerImplFixedBounds will fall back to | 174 // With non-zero anchor point, WebLayerImplFixedBounds will fall back to |
174 // WebLayerImpl. | 175 // WebLayerImpl. |
175 CompareFixedBoundsLayerAndNormalLayer(WebFloatPoint(0.4f, 0.6f), transform); | 176 CompareFixedBoundsLayerAndNormalLayer(WebFloatPoint(0.4f, 0.6f), transform); |
176 } | 177 } |
177 | 178 |
178 } // namespace | 179 } // namespace |
179 } // namespace cc_blink | 180 } // namespace cc_blink |
OLD | NEW |