| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 <stddef.h> | 5 #include <stddef.h> |
| 6 | 6 |
| 7 #include <unordered_map> | 7 #include <unordered_map> |
| 8 | 8 |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "base/threading/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
| (...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 739 layer_tree_host_->UpdateLayers(); | 739 layer_tree_host_->UpdateLayers(); |
| 740 LayerTreeHostImpl* host_impl = layer_tree_host_->host_impl(); | 740 LayerTreeHostImpl* host_impl = layer_tree_host_->host_impl(); |
| 741 host_impl->CreatePendingTree(); | 741 host_impl->CreatePendingTree(); |
| 742 layer_tree_host_->CommitAndCreatePendingTree(); | 742 layer_tree_host_->CommitAndCreatePendingTree(); |
| 743 host_impl->ActivateSyncTree(); | 743 host_impl->ActivateSyncTree(); |
| 744 EXPECT_TRUE(host_impl->ScrollbarAnimationControllerForElementId( | 744 EXPECT_TRUE(host_impl->ScrollbarAnimationControllerForElementId( |
| 745 scroll_layer->element_id())); | 745 scroll_layer->element_id())); |
| 746 | 746 |
| 747 scroll_layer->SetBounds(gfx::Size(20, 20)); | 747 scroll_layer->SetBounds(gfx::Size(20, 20)); |
| 748 scroll_layer->ShowScrollbars(); | 748 scroll_layer->ShowScrollbars(); |
| 749 scroll_layer->SetForceRenderSurfaceForTesting(true); | 749 scroll_layer->SetForceRenderSurface(true); |
| 750 layer_tree_host_->UpdateLayers(); | 750 layer_tree_host_->UpdateLayers(); |
| 751 host_impl->CreatePendingTree(); | 751 host_impl->CreatePendingTree(); |
| 752 layer_tree_host_->CommitAndCreatePendingTree(); | 752 layer_tree_host_->CommitAndCreatePendingTree(); |
| 753 host_impl->ActivateSyncTree(); | 753 host_impl->ActivateSyncTree(); |
| 754 EffectNode* node = | 754 EffectNode* node = |
| 755 host_impl->active_tree()->property_trees()->effect_tree.Node( | 755 host_impl->active_tree()->property_trees()->effect_tree.Node( |
| 756 scrollbar_layer->effect_tree_index()); | 756 scrollbar_layer->effect_tree_index()); |
| 757 EXPECT_EQ(node->opacity, 1.f); | 757 EXPECT_EQ(node->opacity, 1.f); |
| 758 } | 758 } |
| 759 | 759 |
| (...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1270 TestScale(gfx::Rect(1240, 0, 15, 1333), 2.7754839f); | 1270 TestScale(gfx::Rect(1240, 0, 15, 1333), 2.7754839f); |
| 1271 TestScale(gfx::Rect(1240, 0, 15, 677), 2.46677136f); | 1271 TestScale(gfx::Rect(1240, 0, 15, 677), 2.46677136f); |
| 1272 | 1272 |
| 1273 // Horizontal Scrollbars. | 1273 // Horizontal Scrollbars. |
| 1274 TestScale(gfx::Rect(0, 1240, 1333, 15), 2.7754839f); | 1274 TestScale(gfx::Rect(0, 1240, 1333, 15), 2.7754839f); |
| 1275 TestScale(gfx::Rect(0, 1240, 677, 15), 2.46677136f); | 1275 TestScale(gfx::Rect(0, 1240, 677, 15), 2.46677136f); |
| 1276 } | 1276 } |
| 1277 | 1277 |
| 1278 } // namespace | 1278 } // namespace |
| 1279 } // namespace cc | 1279 } // namespace cc |
| OLD | NEW |