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

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

Issue 14651027: Move webkit/compositor_bindings into webkit/renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698