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" |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 return &layer_impl->layer_tree_impl()->property_trees()->scroll_tree; | 448 return &layer_impl->layer_tree_impl()->property_trees()->scroll_tree; |
449 } | 449 } |
450 | 450 |
451 LayerTreeHostImpl& host_impl() { return host_impl_; } | 451 LayerTreeHostImpl& host_impl() { return host_impl_; } |
452 | 452 |
453 LayerTreeImpl* tree() { return host_impl_.active_tree(); } | 453 LayerTreeImpl* tree() { return host_impl_.active_tree(); } |
454 | 454 |
455 LayerTreeSettings settings() { | 455 LayerTreeSettings settings() { |
456 LayerTreeSettings settings; | 456 LayerTreeSettings settings; |
457 settings.verify_clip_tree_calculations = true; | 457 settings.verify_clip_tree_calculations = true; |
| 458 settings.verify_visible_rect_calculations = true; |
458 settings.verify_transform_tree_calculations = true; | 459 settings.verify_transform_tree_calculations = true; |
459 return settings; | 460 return settings; |
460 } | 461 } |
461 | 462 |
462 private: | 463 private: |
463 FakeImplTaskRunnerProvider task_runner_provider_; | 464 FakeImplTaskRunnerProvider task_runner_provider_; |
464 TestSharedBitmapManager shared_bitmap_manager_; | 465 TestSharedBitmapManager shared_bitmap_manager_; |
465 TestTaskGraphRunner task_graph_runner_; | 466 TestTaskGraphRunner task_graph_runner_; |
466 FakeLayerTreeHostImpl host_impl_; | 467 FakeLayerTreeHostImpl host_impl_; |
467 int root_id_; | 468 int root_id_; |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
593 | 594 |
594 pending_layer->PushPropertiesTo(layer()); | 595 pending_layer->PushPropertiesTo(layer()); |
595 | 596 |
596 EXPECT_VECTOR_EQ(gfx::Vector2dF(22, 23), layer()->CurrentScrollOffset()); | 597 EXPECT_VECTOR_EQ(gfx::Vector2dF(22, 23), layer()->CurrentScrollOffset()); |
597 EXPECT_VECTOR_EQ(layer()->CurrentScrollOffset(), | 598 EXPECT_VECTOR_EQ(layer()->CurrentScrollOffset(), |
598 pending_layer->CurrentScrollOffset()); | 599 pending_layer->CurrentScrollOffset()); |
599 } | 600 } |
600 | 601 |
601 } // namespace | 602 } // namespace |
602 } // namespace cc | 603 } // namespace cc |
OLD | NEW |