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 "cc/picture_image_layer.h" | 5 #include "cc/layers/picture_image_layer.h" |
6 #include "cc/test/geometry_test_utils.h" | 6 #include "cc/test/geometry_test_utils.h" |
7 #include "cc/trees/layer_tree_host_common.h" | 7 #include "cc/trees/layer_tree_host_common.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
9 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatPoint.h" | 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatPoint.h" |
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" | 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" |
11 #include "third_party/skia/include/utils/SkMatrix44.h" | 11 #include "third_party/skia/include/utils/SkMatrix44.h" |
12 #include "ui/gfx/point3_f.h" | 12 #include "ui/gfx/point3_f.h" |
13 #include "webkit/compositor_bindings/web_layer_impl_fixed_bounds.h" | 13 #include "webkit/compositor_bindings/web_layer_impl_fixed_bounds.h" |
14 | 14 |
15 using namespace WebKit; | 15 using namespace WebKit; |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 CompareFixedBoundsLayerAndNormalLayer(WebFloatPoint(0, 0), | 180 CompareFixedBoundsLayerAndNormalLayer(WebFloatPoint(0, 0), |
181 transform, | 181 transform, |
182 sublayer_transform); | 182 sublayer_transform); |
183 | 183 |
184 // With non-zero anchor point, WebLayerImplFixedBounds will fall back to | 184 // With non-zero anchor point, WebLayerImplFixedBounds will fall back to |
185 // WebLayerImpl. | 185 // WebLayerImpl. |
186 CompareFixedBoundsLayerAndNormalLayer(WebFloatPoint(0.4f, 0.6f), | 186 CompareFixedBoundsLayerAndNormalLayer(WebFloatPoint(0.4f, 0.6f), |
187 transform, | 187 transform, |
188 sublayer_transform); | 188 sublayer_transform); |
189 } | 189 } |
OLD | NEW |