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 1917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1928 | 1928 |
1929 bool LayerTreeImpl::SmoothnessTakesPriority() const { | 1929 bool LayerTreeImpl::SmoothnessTakesPriority() const { |
1930 return layer_tree_host_impl_->GetTreePriority() == SMOOTHNESS_TAKES_PRIORITY; | 1930 return layer_tree_host_impl_->GetTreePriority() == SMOOTHNESS_TAKES_PRIORITY; |
1931 } | 1931 } |
1932 | 1932 |
1933 VideoFrameControllerClient* LayerTreeImpl::GetVideoFrameControllerClient() | 1933 VideoFrameControllerClient* LayerTreeImpl::GetVideoFrameControllerClient() |
1934 const { | 1934 const { |
1935 return layer_tree_host_impl_; | 1935 return layer_tree_host_impl_; |
1936 } | 1936 } |
1937 | 1937 |
| 1938 void LayerTreeImpl::SetFixedRasterScaleHasBlurryContent() { |
| 1939 layer_tree_host_impl_->set_fixed_raster_scale_has_blurry_content(); |
| 1940 } |
| 1941 |
| 1942 void LayerTreeImpl::SetFixedRasterScaleAttemptedToChangeScale() { |
| 1943 layer_tree_host_impl_->SetFixedRasterScaleAttemptedToChangeScale(); |
| 1944 } |
| 1945 |
1938 void LayerTreeImpl::SetPendingPageScaleAnimation( | 1946 void LayerTreeImpl::SetPendingPageScaleAnimation( |
1939 std::unique_ptr<PendingPageScaleAnimation> pending_animation) { | 1947 std::unique_ptr<PendingPageScaleAnimation> pending_animation) { |
1940 pending_page_scale_animation_ = std::move(pending_animation); | 1948 pending_page_scale_animation_ = std::move(pending_animation); |
1941 } | 1949 } |
1942 | 1950 |
1943 std::unique_ptr<PendingPageScaleAnimation> | 1951 std::unique_ptr<PendingPageScaleAnimation> |
1944 LayerTreeImpl::TakePendingPageScaleAnimation() { | 1952 LayerTreeImpl::TakePendingPageScaleAnimation() { |
1945 return std::move(pending_page_scale_animation_); | 1953 return std::move(pending_page_scale_animation_); |
1946 } | 1954 } |
1947 | 1955 |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2089 } | 2097 } |
2090 | 2098 |
2091 void LayerTreeImpl::ResetAllChangeTracking(PropertyTrees::ResetFlags flag) { | 2099 void LayerTreeImpl::ResetAllChangeTracking(PropertyTrees::ResetFlags flag) { |
2092 layers_that_should_push_properties_.clear(); | 2100 layers_that_should_push_properties_.clear(); |
2093 for (auto* layer : *this) | 2101 for (auto* layer : *this) |
2094 layer->ResetChangeTracking(); | 2102 layer->ResetChangeTracking(); |
2095 property_trees_.ResetAllChangeTracking(flag); | 2103 property_trees_.ResetAllChangeTracking(flag); |
2096 } | 2104 } |
2097 | 2105 |
2098 } // namespace cc | 2106 } // namespace cc |
OLD | NEW |