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

Side by Side Diff: cc/trees/property_tree_unittest.cc

Issue 2451273003: cc : Snap texture layers to pixel boundary (Closed)
Patch Set: comments Created 4 years, 1 month 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
« no previous file with comments | « cc/trees/property_tree_builder.cc ('k') | cc/trees/transform_node.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/trees/property_tree.h" 5 #include "cc/trees/property_tree.h"
6 6
7 #include "cc/input/main_thread_scrolling_reason.h" 7 #include "cc/input/main_thread_scrolling_reason.h"
8 #include "cc/proto/property_tree.pb.h" 8 #include "cc/proto/property_tree.pb.h"
9 #include "cc/test/geometry_test_utils.h" 9 #include "cc/test/geometry_test_utils.h"
10 #include "cc/trees/clip_node.h" 10 #include "cc/trees/clip_node.h"
(...skipping 26 matching lines...) Expand all
37 original.node_and_ancestors_are_flat = false; 37 original.node_and_ancestors_are_flat = false;
38 original.node_and_ancestors_have_only_integer_translation = false; 38 original.node_and_ancestors_have_only_integer_translation = false;
39 original.scrolls = false; 39 original.scrolls = false;
40 original.affected_by_inner_viewport_bounds_delta_x = false; 40 original.affected_by_inner_viewport_bounds_delta_x = false;
41 original.affected_by_inner_viewport_bounds_delta_y = false; 41 original.affected_by_inner_viewport_bounds_delta_y = false;
42 original.affected_by_outer_viewport_bounds_delta_x = false; 42 original.affected_by_outer_viewport_bounds_delta_x = false;
43 original.affected_by_outer_viewport_bounds_delta_y = false; 43 original.affected_by_outer_viewport_bounds_delta_y = false;
44 original.in_subtree_of_page_scale_layer = false; 44 original.in_subtree_of_page_scale_layer = false;
45 original.post_local_scale_factor = 0.5f; 45 original.post_local_scale_factor = 0.5f;
46 original.scroll_offset = gfx::ScrollOffset(1.5f, 1.5f); 46 original.scroll_offset = gfx::ScrollOffset(1.5f, 1.5f);
47 original.scroll_snap = gfx::Vector2dF(0.4f, 0.4f); 47 original.snap_amount = gfx::Vector2dF(0.4f, 0.4f);
48 original.source_offset = gfx::Vector2dF(2.5f, 2.4f); 48 original.source_offset = gfx::Vector2dF(2.5f, 2.4f);
49 original.source_to_parent = gfx::Vector2dF(3.2f, 3.2f); 49 original.source_to_parent = gfx::Vector2dF(3.2f, 3.2f);
50 50
51 proto::TreeNode proto; 51 proto::TreeNode proto;
52 original.ToProtobuf(&proto); 52 original.ToProtobuf(&proto);
53 TransformNode result; 53 TransformNode result;
54 result.FromProtobuf(proto); 54 result.FromProtobuf(proto);
55 55
56 EXPECT_EQ(original, result); 56 EXPECT_EQ(original, result);
57 } 57 }
(...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after
1024 1024
1025 DIRECT_AND_SERIALIZED_PROPERTY_TREE_TEST_F( 1025 DIRECT_AND_SERIALIZED_PROPERTY_TREE_TEST_F(
1026 PropertyTreeTestSingularTransformSnapTest); 1026 PropertyTreeTestSingularTransformSnapTest);
1027 1027
1028 #undef DIRECT_AND_SERIALIZED_PROPERTY_TREE_TEST_F 1028 #undef DIRECT_AND_SERIALIZED_PROPERTY_TREE_TEST_F
1029 #undef SERIALIZED_PROPERTY_TREE_TEST_F 1029 #undef SERIALIZED_PROPERTY_TREE_TEST_F
1030 #undef DIRECT_PROPERTY_TREE_TEST_F 1030 #undef DIRECT_PROPERTY_TREE_TEST_F
1031 1031
1032 } // namespace 1032 } // namespace
1033 } // namespace cc 1033 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/property_tree_builder.cc ('k') | cc/trees/transform_node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698