Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: webkit/compositor_bindings/web_layer_impl_fixed_bounds.cc

Issue 12603013: Part 10 of cc/ directory shuffles: layers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/compositor_bindings/web_layer_impl_fixed_bounds.h"
6 6
7 #include "cc/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
16 WebLayerImplFixedBounds::WebLayerImplFixedBounds() { 16 WebLayerImplFixedBounds::WebLayerImplFixedBounds() {
17 } 17 }
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // sublayers, here undo the scale on sublayers. 120 // sublayers, here undo the scale on sublayers.
121 gfx::Transform sublayer_transform_with_inverse_bounds_scale; 121 gfx::Transform sublayer_transform_with_inverse_bounds_scale;
122 sublayer_transform_with_inverse_bounds_scale.Scale(1.f / bounds_scale_x, 122 sublayer_transform_with_inverse_bounds_scale.Scale(1.f / bounds_scale_x,
123 1.f / bounds_scale_y); 123 1.f / bounds_scale_y);
124 sublayer_transform_with_inverse_bounds_scale.PreconcatTransform( 124 sublayer_transform_with_inverse_bounds_scale.PreconcatTransform(
125 original_sublayer_transform_); 125 original_sublayer_transform_);
126 layer_->SetSublayerTransform(sublayer_transform_with_inverse_bounds_scale); 126 layer_->SetSublayerTransform(sublayer_transform_with_inverse_bounds_scale);
127 } 127 }
128 128
129 } // namespace WebKit 129 } // namespace WebKit
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/web_layer_impl.cc ('k') | webkit/compositor_bindings/web_layer_impl_fixed_bounds_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698