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

Side by Side Diff: cc/trees/layer_tree_host.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_host.h" 5 #include "cc/trees/layer_tree_host.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 940 matching lines...) Expand 10 before | Expand all | Expand 10 after
951 PropertyTreeBuilder::PreCalculateMetaInformation(root_layer_.get()); 951 PropertyTreeBuilder::PreCalculateMetaInformation(root_layer_.get());
952 gfx::Transform identity_transform; 952 gfx::Transform identity_transform;
953 PropertyTreeBuilder::BuildPropertyTrees( 953 PropertyTreeBuilder::BuildPropertyTrees(
954 root_layer_.get(), page_scale_layer_.get(), 954 root_layer_.get(), page_scale_layer_.get(),
955 inner_viewport_scroll_layer_.get(), outer_viewport_scroll_layer_.get(), 955 inner_viewport_scroll_layer_.get(), outer_viewport_scroll_layer_.get(),
956 overscroll_elasticity_layer_.get(), elastic_overscroll_, 956 overscroll_elasticity_layer_.get(), elastic_overscroll_,
957 page_scale_factor_, device_scale_factor_, 957 page_scale_factor_, device_scale_factor_,
958 gfx::Rect(device_viewport_size_), identity_transform, &property_trees_); 958 gfx::Rect(device_viewport_size_), identity_transform, &property_trees_);
959 } 959 }
960 960
961 void LayerTreeHost::ReportFixedRasterScaleUseCounters(
962 bool has_fixed_raster_scale_blurry_content,
963 bool has_fixed_raster_scale_potential_performance_regression) {
964 client_->ReportFixedRasterScaleUseCounters(
965 has_fixed_raster_scale_blurry_content,
966 has_fixed_raster_scale_potential_performance_regression);
967 }
968
961 bool LayerTreeHost::UsingSharedMemoryResources() { 969 bool LayerTreeHost::UsingSharedMemoryResources() {
962 return GetRendererCapabilities().using_shared_memory_resources; 970 return GetRendererCapabilities().using_shared_memory_resources;
963 } 971 }
964 972
965 bool LayerTreeHost::DoUpdateLayers(Layer* root_layer) { 973 bool LayerTreeHost::DoUpdateLayers(Layer* root_layer) {
966 TRACE_EVENT1("cc", "LayerTreeHost::DoUpdateLayers", "source_frame_number", 974 TRACE_EVENT1("cc", "LayerTreeHost::DoUpdateLayers", "source_frame_number",
967 source_frame_number()); 975 source_frame_number());
968 976
969 UpdateHudLayer(); 977 UpdateHudLayer();
970 978
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
1661 int seq_num = property_trees_.sequence_number; 1669 int seq_num = property_trees_.sequence_number;
1662 LayerTreeHostCommon::CallFunctionForEveryLayer(this, [seq_num](Layer* layer) { 1670 LayerTreeHostCommon::CallFunctionForEveryLayer(this, [seq_num](Layer* layer) {
1663 layer->set_property_tree_sequence_number(seq_num); 1671 layer->set_property_tree_sequence_number(seq_num);
1664 }); 1672 });
1665 1673
1666 surface_id_namespace_ = proto.surface_id_namespace(); 1674 surface_id_namespace_ = proto.surface_id_namespace();
1667 next_surface_sequence_ = proto.next_surface_sequence(); 1675 next_surface_sequence_ = proto.next_surface_sequence();
1668 } 1676 }
1669 1677
1670 } // namespace cc 1678 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698