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

Side by Side Diff: webkit/compositor_bindings/web_layer_impl_fixed_bounds_unittest.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 "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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698