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_impl.h" | 5 #include "cc/trees/layer_tree_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 1934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1945 | 1945 |
1946 bool LayerTreeImpl::SmoothnessTakesPriority() const { | 1946 bool LayerTreeImpl::SmoothnessTakesPriority() const { |
1947 return layer_tree_host_impl_->GetTreePriority() == SMOOTHNESS_TAKES_PRIORITY; | 1947 return layer_tree_host_impl_->GetTreePriority() == SMOOTHNESS_TAKES_PRIORITY; |
1948 } | 1948 } |
1949 | 1949 |
1950 VideoFrameControllerClient* LayerTreeImpl::GetVideoFrameControllerClient() | 1950 VideoFrameControllerClient* LayerTreeImpl::GetVideoFrameControllerClient() |
1951 const { | 1951 const { |
1952 return layer_tree_host_impl_; | 1952 return layer_tree_host_impl_; |
1953 } | 1953 } |
1954 | 1954 |
| 1955 void LayerTreeImpl::SetFixedRasterScaleHasBlurryContent() { |
| 1956 layer_tree_host_impl_->set_fixed_raster_scale_has_blurry_content(); |
| 1957 } |
| 1958 |
| 1959 void LayerTreeImpl::SetFixedRasterScaleAttemptedToChangeScale() { |
| 1960 layer_tree_host_impl_->SetFixedRasterScaleAttemptedToChangeScale(); |
| 1961 } |
| 1962 |
1955 void LayerTreeImpl::SetPendingPageScaleAnimation( | 1963 void LayerTreeImpl::SetPendingPageScaleAnimation( |
1956 std::unique_ptr<PendingPageScaleAnimation> pending_animation) { | 1964 std::unique_ptr<PendingPageScaleAnimation> pending_animation) { |
1957 pending_page_scale_animation_ = std::move(pending_animation); | 1965 pending_page_scale_animation_ = std::move(pending_animation); |
1958 } | 1966 } |
1959 | 1967 |
1960 std::unique_ptr<PendingPageScaleAnimation> | 1968 std::unique_ptr<PendingPageScaleAnimation> |
1961 LayerTreeImpl::TakePendingPageScaleAnimation() { | 1969 LayerTreeImpl::TakePendingPageScaleAnimation() { |
1962 return std::move(pending_page_scale_animation_); | 1970 return std::move(pending_page_scale_animation_); |
1963 } | 1971 } |
1964 | 1972 |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2090 } | 2098 } |
2091 | 2099 |
2092 void LayerTreeImpl::ResetAllChangeTracking(PropertyTrees::ResetFlags flag) { | 2100 void LayerTreeImpl::ResetAllChangeTracking(PropertyTrees::ResetFlags flag) { |
2093 layers_that_should_push_properties_.clear(); | 2101 layers_that_should_push_properties_.clear(); |
2094 for (auto* layer : *this) | 2102 for (auto* layer : *this) |
2095 layer->ResetChangeTracking(); | 2103 layer->ResetChangeTracking(); |
2096 property_trees_.ResetAllChangeTracking(flag); | 2104 property_trees_.ResetAllChangeTracking(flag); |
2097 } | 2105 } |
2098 | 2106 |
2099 } // namespace cc | 2107 } // namespace cc |
OLD | NEW |