OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/layers/picture_image_layer.h" | 6 #include "cc/layers/picture_image_layer.h" |
7 #include "cc/test/geometry_test_utils.h" | 7 #include "cc/test/geometry_test_utils.h" |
8 #include "cc/trees/layer_tree_host_common.h" | 8 #include "cc/trees/layer_tree_host_common.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatPoint.h" | 10 #include "third_party/WebKit/public/platform/WebFloatPoint.h" |
11 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" | 11 #include "third_party/WebKit/public/platform/WebSize.h" |
12 #include "third_party/skia/include/utils/SkMatrix44.h" | 12 #include "third_party/skia/include/utils/SkMatrix44.h" |
13 #include "ui/gfx/point3_f.h" | 13 #include "ui/gfx/point3_f.h" |
14 #include "webkit/renderer/compositor_bindings/web_layer_impl_fixed_bounds.h" | 14 #include "webkit/renderer/compositor_bindings/web_layer_impl_fixed_bounds.h" |
15 | 15 |
16 using WebKit::WebFloatPoint; | 16 using WebKit::WebFloatPoint; |
17 using WebKit::WebSize; | 17 using WebKit::WebSize; |
18 | 18 |
19 namespace webkit { | 19 namespace webkit { |
20 namespace { | 20 namespace { |
21 | 21 |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 | 191 |
192 // With non-zero anchor point, WebLayerImplFixedBounds will fall back to | 192 // With non-zero anchor point, WebLayerImplFixedBounds will fall back to |
193 // WebLayerImpl. | 193 // WebLayerImpl. |
194 CompareFixedBoundsLayerAndNormalLayer(WebFloatPoint(0.4f, 0.6f), | 194 CompareFixedBoundsLayerAndNormalLayer(WebFloatPoint(0.4f, 0.6f), |
195 transform, | 195 transform, |
196 sublayer_transform); | 196 sublayer_transform); |
197 } | 197 } |
198 | 198 |
199 } // namespace | 199 } // namespace |
200 } // namespace webkit | 200 } // namespace webkit |
OLD | NEW |