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 1919 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1930 | 1930 |
1931 bool LayerTreeImpl::SmoothnessTakesPriority() const { | 1931 bool LayerTreeImpl::SmoothnessTakesPriority() const { |
1932 return layer_tree_host_impl_->GetTreePriority() == SMOOTHNESS_TAKES_PRIORITY; | 1932 return layer_tree_host_impl_->GetTreePriority() == SMOOTHNESS_TAKES_PRIORITY; |
1933 } | 1933 } |
1934 | 1934 |
1935 VideoFrameControllerClient* LayerTreeImpl::GetVideoFrameControllerClient() | 1935 VideoFrameControllerClient* LayerTreeImpl::GetVideoFrameControllerClient() |
1936 const { | 1936 const { |
1937 return layer_tree_host_impl_; | 1937 return layer_tree_host_impl_; |
1938 } | 1938 } |
1939 | 1939 |
1940 void LayerTreeImpl::SetFixedRasterScaleHasBlurryContent() { | |
1941 layer_tree_host_impl_->set_fixed_raster_scale_has_blurry_content(); | |
1942 } | |
1943 | |
1944 void LayerTreeImpl::SetFixedRasterScaleAttemptedToChangeScale() { | |
1945 layer_tree_host_impl_->SetFixedRasterScaleAttemptedToChangeScale(); | |
1946 } | |
1947 | |
1948 void LayerTreeImpl::SetPendingPageScaleAnimation( | 1940 void LayerTreeImpl::SetPendingPageScaleAnimation( |
1949 std::unique_ptr<PendingPageScaleAnimation> pending_animation) { | 1941 std::unique_ptr<PendingPageScaleAnimation> pending_animation) { |
1950 pending_page_scale_animation_ = std::move(pending_animation); | 1942 pending_page_scale_animation_ = std::move(pending_animation); |
1951 } | 1943 } |
1952 | 1944 |
1953 std::unique_ptr<PendingPageScaleAnimation> | 1945 std::unique_ptr<PendingPageScaleAnimation> |
1954 LayerTreeImpl::TakePendingPageScaleAnimation() { | 1946 LayerTreeImpl::TakePendingPageScaleAnimation() { |
1955 return std::move(pending_page_scale_animation_); | 1947 return std::move(pending_page_scale_animation_); |
1956 } | 1948 } |
1957 | 1949 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2078 | 2070 |
2079 void LayerTreeImpl::ResetAllChangeTracking() { | 2071 void LayerTreeImpl::ResetAllChangeTracking() { |
2080 layers_that_should_push_properties_.clear(); | 2072 layers_that_should_push_properties_.clear(); |
2081 // Iterate over all layers, including masks and replicas. | 2073 // Iterate over all layers, including masks and replicas. |
2082 for (auto& layer : *layers_) | 2074 for (auto& layer : *layers_) |
2083 layer->ResetChangeTracking(); | 2075 layer->ResetChangeTracking(); |
2084 property_trees_.ResetAllChangeTracking(); | 2076 property_trees_.ResetAllChangeTracking(); |
2085 } | 2077 } |
2086 | 2078 |
2087 } // namespace cc | 2079 } // namespace cc |
OLD | NEW |