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 "webkit/compositor_bindings/web_layer_impl_fixed_bounds.h" | 5 #include "webkit/renderer/compositor_bindings/web_layer_impl_fixed_bounds.h" |
6 | 6 |
7 #include "cc/layers/layer.h" | 7 #include "cc/layers/layer.h" |
8 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatPoint.h" | 8 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatPoint.h" |
9 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" | 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" |
10 #include "third_party/skia/include/utils/SkMatrix44.h" | 10 #include "third_party/skia/include/utils/SkMatrix44.h" |
11 | 11 |
12 using cc::Layer; | 12 using cc::Layer; |
13 | 13 |
14 namespace webkit { | 14 namespace webkit { |
15 | 15 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 // sublayers, here undo the scale on sublayers. | 119 // sublayers, here undo the scale on sublayers. |
120 gfx::Transform sublayer_transform_with_inverse_bounds_scale; | 120 gfx::Transform sublayer_transform_with_inverse_bounds_scale; |
121 sublayer_transform_with_inverse_bounds_scale.Scale(1.f / bounds_scale_x, | 121 sublayer_transform_with_inverse_bounds_scale.Scale(1.f / bounds_scale_x, |
122 1.f / bounds_scale_y); | 122 1.f / bounds_scale_y); |
123 sublayer_transform_with_inverse_bounds_scale.PreconcatTransform( | 123 sublayer_transform_with_inverse_bounds_scale.PreconcatTransform( |
124 original_sublayer_transform_); | 124 original_sublayer_transform_); |
125 layer_->SetSublayerTransform(sublayer_transform_with_inverse_bounds_scale); | 125 layer_->SetSublayerTransform(sublayer_transform_with_inverse_bounds_scale); |
126 } | 126 } |
127 | 127 |
128 } // namespace WebKit | 128 } // namespace WebKit |
OLD | NEW |