| 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/trees/layer_tree_host_impl.h" | 5 #include "cc/trees/layer_tree_host_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <cmath> | 10 #include <cmath> |
| (...skipping 2869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2880 host_impl_->ScrollbarAnimationControllerForId(scroll->id()) | 2880 host_impl_->ScrollbarAnimationControllerForId(scroll->id()) |
| 2881 ->DidMouseMoveNear(0); | 2881 ->DidMouseMoveNear(0); |
| 2882 host_impl_->ScrollBegin(BeginState(gfx::Point()).get(), | 2882 host_impl_->ScrollBegin(BeginState(gfx::Point()).get(), |
| 2883 InputHandler::WHEEL); | 2883 InputHandler::WHEEL); |
| 2884 host_impl_->ScrollBy(UpdateState(gfx::Point(), gfx::Vector2dF(0, 5)).get()); | 2884 host_impl_->ScrollBy(UpdateState(gfx::Point(), gfx::Vector2dF(0, 5)).get()); |
| 2885 host_impl_->ScrollEnd(EndState().get()); | 2885 host_impl_->ScrollEnd(EndState().get()); |
| 2886 host_impl_->CreatePendingTree(); | 2886 host_impl_->CreatePendingTree(); |
| 2887 EffectNode* pending_tree_node = | 2887 EffectNode* pending_tree_node = |
| 2888 host_impl_->pending_tree()->property_trees()->effect_tree.Node( | 2888 host_impl_->pending_tree()->property_trees()->effect_tree.Node( |
| 2889 scrollbar_layer->effect_tree_index()); | 2889 scrollbar_layer->effect_tree_index()); |
| 2890 host_impl_->pending_tree() |
| 2891 ->property_trees() |
| 2892 ->always_use_active_tree_opacity_effect_ids.push_back(400); |
| 2890 EXPECT_FLOAT_EQ(1.f, active_tree_node->data.opacity); | 2893 EXPECT_FLOAT_EQ(1.f, active_tree_node->data.opacity); |
| 2891 EXPECT_FLOAT_EQ(1.f, scrollbar_layer->opacity()); | 2894 EXPECT_FLOAT_EQ(1.f, scrollbar_layer->opacity()); |
| 2892 EXPECT_FLOAT_EQ(0.f, pending_tree_node->data.opacity); | 2895 EXPECT_FLOAT_EQ(0.f, pending_tree_node->data.opacity); |
| 2893 host_impl_->ActivateSyncTree(); | 2896 host_impl_->ActivateSyncTree(); |
| 2894 active_tree_node = | 2897 active_tree_node = |
| 2895 host_impl_->active_tree()->property_trees()->effect_tree.Node( | 2898 host_impl_->active_tree()->property_trees()->effect_tree.Node( |
| 2896 scrollbar_layer->effect_tree_index()); | 2899 scrollbar_layer->effect_tree_index()); |
| 2897 EXPECT_FLOAT_EQ(1.f, active_tree_node->data.opacity); | 2900 EXPECT_FLOAT_EQ(1.f, active_tree_node->data.opacity); |
| 2898 EXPECT_FLOAT_EQ(1.f, scrollbar_layer->opacity()); | 2901 EXPECT_FLOAT_EQ(1.f, scrollbar_layer->opacity()); |
| 2899 } | 2902 } |
| (...skipping 7847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10747 | 10750 |
| 10748 // Re-initialize with a software output surface. | 10751 // Re-initialize with a software output surface. |
| 10749 output_surface_ = FakeOutputSurface::CreateSoftware( | 10752 output_surface_ = FakeOutputSurface::CreateSoftware( |
| 10750 base::WrapUnique(new SoftwareOutputDevice)); | 10753 base::WrapUnique(new SoftwareOutputDevice)); |
| 10751 host_impl_->InitializeRenderer(output_surface_.get()); | 10754 host_impl_->InitializeRenderer(output_surface_.get()); |
| 10752 EXPECT_FALSE(host_impl_->use_gpu_rasterization()); | 10755 EXPECT_FALSE(host_impl_->use_gpu_rasterization()); |
| 10753 } | 10756 } |
| 10754 | 10757 |
| 10755 } // namespace | 10758 } // namespace |
| 10756 } // namespace cc | 10759 } // namespace cc |
| OLD | NEW |