Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: cc/trees/layer_tree_impl.cc

Issue 1946403003: Add fixed raster scale use counter histograms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review+fixup Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
2106 } 2114 }
2107 2115
2108 void LayerTreeImpl::ResetAllChangeTracking(PropertyTrees::ResetFlags flag) { 2116 void LayerTreeImpl::ResetAllChangeTracking(PropertyTrees::ResetFlags flag) {
2109 layers_that_should_push_properties_.clear(); 2117 layers_that_should_push_properties_.clear();
2110 for (auto* layer : *this) 2118 for (auto* layer : *this)
2111 layer->ResetChangeTracking(); 2119 layer->ResetChangeTracking();
2112 property_trees_.ResetAllChangeTracking(flag); 2120 property_trees_.ResetAllChangeTracking(flag);
2113 } 2121 }
2114 2122
2115 } // namespace cc 2123 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698