OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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/layers/layer_impl.h" | 5 #include "cc/layers/layer_impl.h" |
6 | 6 |
7 #include "cc/animation/mutable_properties.h" | 7 #include "cc/animation/mutable_properties.h" |
8 #include "cc/layers/painted_scrollbar_layer_impl.h" | 8 #include "cc/layers/painted_scrollbar_layer_impl.h" |
9 #include "cc/layers/solid_color_scrollbar_layer_impl.h" | 9 #include "cc/layers/solid_color_scrollbar_layer_impl.h" |
10 #include "cc/output/filter_operation.h" | 10 #include "cc/output/filter_operation.h" |
11 #include "cc/output/filter_operations.h" | 11 #include "cc/output/filter_operations.h" |
12 #include "cc/test/animation_test_common.h" | 12 #include "cc/test/animation_test_common.h" |
13 #include "cc/test/fake_impl_task_runner_provider.h" | 13 #include "cc/test/fake_impl_task_runner_provider.h" |
14 #include "cc/test/fake_layer_tree_host_impl.h" | 14 #include "cc/test/fake_layer_tree_host_impl.h" |
15 #include "cc/test/fake_output_surface.h" | 15 #include "cc/test/fake_output_surface.h" |
16 #include "cc/test/geometry_test_utils.h" | 16 #include "cc/test/geometry_test_utils.h" |
17 #include "cc/test/test_shared_bitmap_manager.h" | 17 #include "cc/test/test_shared_bitmap_manager.h" |
18 #include "cc/test/test_task_graph_runner.h" | 18 #include "cc/test/test_task_graph_runner.h" |
19 #include "cc/trees/layer_tree_impl.h" | 19 #include "cc/trees/layer_tree_impl.h" |
20 #include "cc/trees/single_thread_proxy.h" | 20 #include "cc/trees/single_thread_proxy.h" |
21 #include "cc/trees/tree_synchronizer.h" | 21 #include "cc/trees/tree_synchronizer.h" |
22 #include "testing/gmock/include/gmock/gmock.h" | 22 #include "testing/gmock/include/gmock/gmock.h" |
23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
24 #include "third_party/skia/include/effects/SkBlurImageFilter.h" | 24 #include "third_party/skia/include/effects/SkBlurImageFilter.h" |
25 | 25 |
26 namespace cc { | 26 namespace cc { |
27 namespace { | 27 namespace { |
28 | 28 |
29 #define EXECUTE_AND_VERIFY_SUBTREE_CHANGED(code_to_test) \ | 29 #define EXECUTE_AND_VERIFY_SUBTREE_CHANGED(code_to_test) \ |
30 root->ResetAllChangeTrackingForSubtree(); \ | 30 root->ResetAllChangeTrackingForSubtree(); \ |
31 root->layer_tree_impl() \ | 31 root->layer_tree_impl()->property_trees()->ResetAllChangeTracking( \ |
32 ->property_trees() \ | 32 PropertyTrees::ResetFlags::ALL_TREES); \ |
33 ->transform_tree.ResetChangeTracking(); \ | 33 code_to_test; \ |
34 root->layer_tree_impl() \ | 34 EXPECT_TRUE(root->needs_push_properties()); \ |
35 ->property_trees() \ | 35 EXPECT_FALSE(child->needs_push_properties()); \ |
36 ->effect_tree.ResetChangeTracking(); \ | 36 EXPECT_FALSE(grand_child->needs_push_properties()); \ |
37 code_to_test; \ | 37 EXPECT_TRUE(root->LayerPropertyChanged()); \ |
38 EXPECT_TRUE(root->needs_push_properties()); \ | 38 EXPECT_TRUE(child->LayerPropertyChanged()); \ |
39 EXPECT_FALSE(child->needs_push_properties()); \ | |
40 EXPECT_FALSE(grand_child->needs_push_properties()); \ | |
41 EXPECT_TRUE(root->LayerPropertyChanged()); \ | |
42 EXPECT_TRUE(child->LayerPropertyChanged()); \ | |
43 EXPECT_TRUE(grand_child->LayerPropertyChanged()); | 39 EXPECT_TRUE(grand_child->LayerPropertyChanged()); |
44 | 40 |
45 #define EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE(code_to_test) \ | 41 #define EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE(code_to_test) \ |
46 root->ResetAllChangeTrackingForSubtree(); \ | 42 root->ResetAllChangeTrackingForSubtree(); \ |
47 code_to_test; \ | 43 code_to_test; \ |
48 EXPECT_FALSE(root->needs_push_properties()); \ | 44 EXPECT_FALSE(root->needs_push_properties()); \ |
49 EXPECT_FALSE(child->needs_push_properties()); \ | 45 EXPECT_FALSE(child->needs_push_properties()); \ |
50 EXPECT_FALSE(grand_child->needs_push_properties()); \ | 46 EXPECT_FALSE(grand_child->needs_push_properties()); \ |
51 EXPECT_FALSE(root->LayerPropertyChanged()); \ | 47 EXPECT_FALSE(root->LayerPropertyChanged()); \ |
52 EXPECT_FALSE(child->LayerPropertyChanged()); \ | 48 EXPECT_FALSE(child->LayerPropertyChanged()); \ |
53 EXPECT_FALSE(grand_child->LayerPropertyChanged()); | 49 EXPECT_FALSE(grand_child->LayerPropertyChanged()); |
54 | 50 |
55 #define EXECUTE_AND_VERIFY_NEEDS_PUSH_PROPERTIES_AND_SUBTREE_DID_NOT_CHANGE( \ | 51 #define EXECUTE_AND_VERIFY_NEEDS_PUSH_PROPERTIES_AND_SUBTREE_DID_NOT_CHANGE( \ |
56 code_to_test) \ | 52 code_to_test) \ |
57 root->ResetAllChangeTrackingForSubtree(); \ | 53 root->ResetAllChangeTrackingForSubtree(); \ |
58 code_to_test; \ | 54 code_to_test; \ |
59 EXPECT_TRUE(root->needs_push_properties()); \ | 55 EXPECT_TRUE(root->needs_push_properties()); \ |
60 EXPECT_FALSE(child->needs_push_properties()); \ | 56 EXPECT_FALSE(child->needs_push_properties()); \ |
61 EXPECT_FALSE(grand_child->needs_push_properties()); \ | 57 EXPECT_FALSE(grand_child->needs_push_properties()); \ |
62 EXPECT_FALSE(root->LayerPropertyChanged()); \ | 58 EXPECT_FALSE(root->LayerPropertyChanged()); \ |
63 EXPECT_FALSE(child->LayerPropertyChanged()); \ | 59 EXPECT_FALSE(child->LayerPropertyChanged()); \ |
64 EXPECT_FALSE(grand_child->LayerPropertyChanged()); | 60 EXPECT_FALSE(grand_child->LayerPropertyChanged()); |
65 | 61 |
66 #define EXECUTE_AND_VERIFY_ONLY_LAYER_CHANGED(code_to_test) \ | 62 #define EXECUTE_AND_VERIFY_ONLY_LAYER_CHANGED(code_to_test) \ |
67 root->ResetAllChangeTrackingForSubtree(); \ | 63 root->ResetAllChangeTrackingForSubtree(); \ |
68 code_to_test; \ | 64 root->layer_tree_impl()->property_trees()->full_tree_damaged = false; \ |
69 EXPECT_TRUE(root->needs_push_properties()); \ | 65 code_to_test; \ |
70 EXPECT_FALSE(child->needs_push_properties()); \ | 66 EXPECT_TRUE(root->needs_push_properties()); \ |
71 EXPECT_FALSE(grand_child->needs_push_properties()); \ | 67 EXPECT_FALSE(child->needs_push_properties()); \ |
72 EXPECT_TRUE(root->LayerPropertyChanged()); \ | 68 EXPECT_FALSE(grand_child->needs_push_properties()); \ |
73 EXPECT_FALSE(child->LayerPropertyChanged()); \ | 69 EXPECT_TRUE(root->LayerPropertyChanged()); \ |
| 70 EXPECT_FALSE(child->LayerPropertyChanged()); \ |
74 EXPECT_FALSE(grand_child->LayerPropertyChanged()); | 71 EXPECT_FALSE(grand_child->LayerPropertyChanged()); |
75 | 72 |
76 #define VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES(code_to_test) \ | 73 #define VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES(code_to_test) \ |
77 root->ResetAllChangeTrackingForSubtree(); \ | 74 root->ResetAllChangeTrackingForSubtree(); \ |
78 host_impl.active_tree()->property_trees()->needs_rebuild = true; \ | 75 host_impl.active_tree()->property_trees()->needs_rebuild = true; \ |
79 host_impl.active_tree()->BuildPropertyTreesForTesting(); \ | 76 host_impl.active_tree()->BuildPropertyTreesForTesting(); \ |
80 host_impl.ForcePrepareToDraw(); \ | 77 host_impl.ForcePrepareToDraw(); \ |
81 EXPECT_FALSE(host_impl.active_tree()->needs_update_draw_properties()); \ | 78 EXPECT_FALSE(host_impl.active_tree()->needs_update_draw_properties()); \ |
82 code_to_test; \ | 79 code_to_test; \ |
83 EXPECT_TRUE(host_impl.active_tree()->needs_update_draw_properties()); | 80 EXPECT_TRUE(host_impl.active_tree()->needs_update_draw_properties()); |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 | 158 |
162 // These properties are internal, and should not be considered "change" when | 159 // These properties are internal, and should not be considered "change" when |
163 // they are used. | 160 // they are used. |
164 EXECUTE_AND_VERIFY_NEEDS_PUSH_PROPERTIES_AND_SUBTREE_DID_NOT_CHANGE( | 161 EXECUTE_AND_VERIFY_NEEDS_PUSH_PROPERTIES_AND_SUBTREE_DID_NOT_CHANGE( |
165 root->SetUpdateRect(arbitrary_rect)); | 162 root->SetUpdateRect(arbitrary_rect)); |
166 EXECUTE_AND_VERIFY_ONLY_LAYER_CHANGED(root->SetBounds(arbitrary_size)); | 163 EXECUTE_AND_VERIFY_ONLY_LAYER_CHANGED(root->SetBounds(arbitrary_size)); |
167 host_impl.active_tree()->property_trees()->needs_rebuild = true; | 164 host_impl.active_tree()->property_trees()->needs_rebuild = true; |
168 host_impl.active_tree()->BuildPropertyTreesForTesting(); | 165 host_impl.active_tree()->BuildPropertyTreesForTesting(); |
169 | 166 |
170 // Changing these properties affects the entire subtree of layers. | 167 // Changing these properties affects the entire subtree of layers. |
171 EXECUTE_AND_VERIFY_SUBTREE_CHANGED(root->SetFilters(arbitrary_filters)); | 168 EXECUTE_AND_VERIFY_SUBTREE_CHANGED(root->OnFilterAnimated(arbitrary_filters)); |
172 EXECUTE_AND_VERIFY_SUBTREE_CHANGED(root->SetFilters(FilterOperations())); | 169 EXECUTE_AND_VERIFY_SUBTREE_CHANGED( |
| 170 root->OnFilterAnimated(FilterOperations())); |
173 EXECUTE_AND_VERIFY_SUBTREE_CHANGED(root->ScrollBy(arbitrary_vector2d)); | 171 EXECUTE_AND_VERIFY_SUBTREE_CHANGED(root->ScrollBy(arbitrary_vector2d)); |
174 EXECUTE_AND_VERIFY_SUBTREE_CHANGED(root->SetScrollDelta(gfx::Vector2d())); | 172 EXECUTE_AND_VERIFY_SUBTREE_CHANGED(root->SetScrollDelta(gfx::Vector2d())); |
175 EXECUTE_AND_VERIFY_SUBTREE_CHANGED(root->PushScrollOffsetFromMainThread( | 173 EXECUTE_AND_VERIFY_SUBTREE_CHANGED(root->PushScrollOffsetFromMainThread( |
176 gfx::ScrollOffset(arbitrary_vector2d))); | 174 gfx::ScrollOffset(arbitrary_vector2d))); |
177 EXECUTE_AND_VERIFY_SUBTREE_CHANGED(root->OnOpacityAnimated(arbitrary_number)); | 175 EXECUTE_AND_VERIFY_SUBTREE_CHANGED(root->OnOpacityAnimated(arbitrary_number)); |
178 EXECUTE_AND_VERIFY_SUBTREE_CHANGED( | 176 EXECUTE_AND_VERIFY_SUBTREE_CHANGED( |
179 root->OnTransformAnimated(arbitrary_transform)); | 177 root->OnTransformAnimated(arbitrary_transform)); |
| 178 // SetBoundsDelta changes subtree only when masks_to_bounds is true and it |
| 179 // doesn't set needs_push_properties as it is always called on active tree. |
| 180 root->SetMasksToBounds(true); |
| 181 EXECUTE_AND_VERIFY_SUBTREE_CHANGED(root->SetBoundsDelta(arbitrary_vector2d); |
| 182 root->SetNeedsPushProperties()); |
180 | 183 |
181 // Changing these properties only affects the layer itself. | 184 // Changing these properties only affects the layer itself. |
182 EXECUTE_AND_VERIFY_ONLY_LAYER_CHANGED(root->SetDrawsContent(true)); | 185 EXECUTE_AND_VERIFY_ONLY_LAYER_CHANGED(root->SetDrawsContent(true)); |
183 EXECUTE_AND_VERIFY_ONLY_LAYER_CHANGED( | 186 EXECUTE_AND_VERIFY_ONLY_LAYER_CHANGED( |
184 root->SetBackgroundColor(arbitrary_color)); | 187 root->SetBackgroundColor(arbitrary_color)); |
185 EXECUTE_AND_VERIFY_ONLY_LAYER_CHANGED( | 188 EXECUTE_AND_VERIFY_ONLY_LAYER_CHANGED( |
186 root->SetBackgroundFilters(arbitrary_filters)); | 189 root->SetBackgroundFilters(arbitrary_filters)); |
187 | 190 |
188 // Special case: check that SetBounds changes behavior depending on | 191 // Special case: check that SetBounds changes behavior depending on |
189 // masksToBounds. | 192 // masksToBounds. |
| 193 gfx::Size bounds_size(135, 246); |
190 root->SetMasksToBounds(false); | 194 root->SetMasksToBounds(false); |
191 EXECUTE_AND_VERIFY_ONLY_LAYER_CHANGED(root->SetBounds(gfx::Size(135, 246))); | 195 EXECUTE_AND_VERIFY_ONLY_LAYER_CHANGED(root->SetBounds(bounds_size)); |
192 host_impl.active_tree()->property_trees()->needs_rebuild = true; | 196 host_impl.active_tree()->property_trees()->needs_rebuild = true; |
193 host_impl.active_tree()->BuildPropertyTreesForTesting(); | 197 host_impl.active_tree()->BuildPropertyTreesForTesting(); |
194 | 198 |
195 root->SetMasksToBounds(true); | 199 root->SetMasksToBounds(true); |
196 host_impl.active_tree()->property_trees()->needs_rebuild = true; | 200 host_impl.active_tree()->property_trees()->needs_rebuild = true; |
197 host_impl.active_tree()->BuildPropertyTreesForTesting(); | 201 host_impl.active_tree()->BuildPropertyTreesForTesting(); |
198 | 202 |
199 // Changing these properties does not cause the layer to be marked as changed | 203 // Changing these properties does not cause the layer to be marked as changed |
200 // but does cause the layer to need to push properties. | 204 // but does cause the layer to need to push properties. |
201 EXECUTE_AND_VERIFY_NEEDS_PUSH_PROPERTIES_AND_SUBTREE_DID_NOT_CHANGE( | 205 EXECUTE_AND_VERIFY_NEEDS_PUSH_PROPERTIES_AND_SUBTREE_DID_NOT_CHANGE( |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE( | 238 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE( |
235 root->PushScrollOffsetFromMainThread( | 239 root->PushScrollOffsetFromMainThread( |
236 gfx::ScrollOffset(arbitrary_vector2d))); | 240 gfx::ScrollOffset(arbitrary_vector2d))); |
237 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE(root->SetContentsOpaque(true)); | 241 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE(root->SetContentsOpaque(true)); |
238 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE(root->SetOpacity(arbitrary_number)); | 242 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE(root->SetOpacity(arbitrary_number)); |
239 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE( | 243 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE( |
240 root->SetBlendMode(arbitrary_blend_mode)); | 244 root->SetBlendMode(arbitrary_blend_mode)); |
241 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE( | 245 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE( |
242 root->SetIsRootForIsolatedGroup(true)); | 246 root->SetIsRootForIsolatedGroup(true)); |
243 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE(root->SetDrawsContent(true)); | 247 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE(root->SetDrawsContent(true)); |
244 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE(root->SetBounds(arbitrary_size)); | 248 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE(root->SetBounds(bounds_size)); |
245 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE( | 249 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE( |
246 root->SetScrollParent(scroll_parent.get())); | 250 root->SetScrollParent(scroll_parent.get())); |
247 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE( | 251 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE( |
248 root->SetScrollChildren(scroll_children)); | 252 root->SetScrollChildren(scroll_children)); |
249 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE( | 253 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE( |
250 root->SetClipParent(clip_parent.get())); | 254 root->SetClipParent(clip_parent.get())); |
251 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE( | 255 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE( |
252 root->SetClipChildren(clip_children)); | 256 root->SetClipChildren(clip_children)); |
253 } | 257 } |
254 | 258 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 // Create a render surface, because we must have a render surface if we have | 308 // Create a render surface, because we must have a render surface if we have |
305 // filters. | 309 // filters. |
306 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(layer->SetHasRenderSurface(true)); | 310 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(layer->SetHasRenderSurface(true)); |
307 | 311 |
308 VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES(layer->SetForceRenderSurface(true)); | 312 VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES(layer->SetForceRenderSurface(true)); |
309 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(layer->SetForceRenderSurface(true)); | 313 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(layer->SetForceRenderSurface(true)); |
310 VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES(layer->SetForceRenderSurface(false)); | 314 VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES(layer->SetForceRenderSurface(false)); |
311 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(layer->SetForceRenderSurface(false)); | 315 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(layer->SetForceRenderSurface(false)); |
312 | 316 |
313 // Related filter functions. | 317 // Related filter functions. |
314 VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES(layer->SetFilters(arbitrary_filters)); | 318 VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES( |
315 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(layer->SetFilters(arbitrary_filters)); | 319 root->OnFilterAnimated(arbitrary_filters)); |
316 VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES(layer->SetFilters(FilterOperations())); | 320 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES( |
317 VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES(layer->SetFilters(arbitrary_filters)); | 321 root->OnFilterAnimated(arbitrary_filters)); |
| 322 VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES( |
| 323 root->OnFilterAnimated(FilterOperations())); |
| 324 VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES( |
| 325 root->OnFilterAnimated(arbitrary_filters)); |
318 | 326 |
319 // Related scrolling functions. | 327 // Related scrolling functions. |
320 VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES(layer->SetBounds(large_size)); | 328 VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES(layer->SetBounds(large_size)); |
321 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(layer->SetBounds(large_size)); | 329 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(layer->SetBounds(large_size)); |
322 VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES(layer->ScrollBy(arbitrary_vector2d)); | 330 VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES(layer->ScrollBy(arbitrary_vector2d)); |
323 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(layer->ScrollBy(gfx::Vector2d())); | 331 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(layer->ScrollBy(gfx::Vector2d())); |
324 layer->SetScrollDelta(gfx::Vector2d(0, 0)); | 332 layer->SetScrollDelta(gfx::Vector2d(0, 0)); |
325 host_impl.ForcePrepareToDraw(); | 333 host_impl.ForcePrepareToDraw(); |
326 VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES( | 334 VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES( |
327 layer->SetScrollDelta(arbitrary_vector2d)); | 335 layer->SetScrollDelta(arbitrary_vector2d)); |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 | 616 |
609 pending_layer->PushPropertiesTo(layer()); | 617 pending_layer->PushPropertiesTo(layer()); |
610 | 618 |
611 EXPECT_VECTOR_EQ(gfx::Vector2dF(22, 23), layer()->CurrentScrollOffset()); | 619 EXPECT_VECTOR_EQ(gfx::Vector2dF(22, 23), layer()->CurrentScrollOffset()); |
612 EXPECT_VECTOR_EQ(layer()->CurrentScrollOffset(), | 620 EXPECT_VECTOR_EQ(layer()->CurrentScrollOffset(), |
613 pending_layer->CurrentScrollOffset()); | 621 pending_layer->CurrentScrollOffset()); |
614 } | 622 } |
615 | 623 |
616 } // namespace | 624 } // namespace |
617 } // namespace cc | 625 } // namespace cc |
OLD | NEW |