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

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: rebase+fix 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
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | cc/trees/layer_tree_host_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 931 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 PropertyTreeBuilder::PreCalculateMetaInformation(root_layer_.get()); 942 PropertyTreeBuilder::PreCalculateMetaInformation(root_layer_.get());
943 gfx::Transform identity_transform; 943 gfx::Transform identity_transform;
944 PropertyTreeBuilder::BuildPropertyTrees( 944 PropertyTreeBuilder::BuildPropertyTrees(
945 root_layer_.get(), page_scale_layer_.get(), 945 root_layer_.get(), page_scale_layer_.get(),
946 inner_viewport_scroll_layer_.get(), outer_viewport_scroll_layer_.get(), 946 inner_viewport_scroll_layer_.get(), outer_viewport_scroll_layer_.get(),
947 overscroll_elasticity_layer_.get(), elastic_overscroll_, 947 overscroll_elasticity_layer_.get(), elastic_overscroll_,
948 page_scale_factor_, device_scale_factor_, 948 page_scale_factor_, device_scale_factor_,
949 gfx::Rect(device_viewport_size_), identity_transform, &property_trees_); 949 gfx::Rect(device_viewport_size_), identity_transform, &property_trees_);
950 } 950 }
951 951
952 void LayerTreeHost::ReportFixedRasterScaleUseCounters(
953 bool has_fixed_raster_scale_blurry_content,
954 bool has_fixed_raster_scale_potential_performance_regression) {
955 client_->ReportFixedRasterScaleUseCounters(
956 has_fixed_raster_scale_blurry_content,
957 has_fixed_raster_scale_potential_performance_regression);
958 }
959
952 bool LayerTreeHost::UsingSharedMemoryResources() { 960 bool LayerTreeHost::UsingSharedMemoryResources() {
953 return GetRendererCapabilities().using_shared_memory_resources; 961 return GetRendererCapabilities().using_shared_memory_resources;
954 } 962 }
955 963
956 bool LayerTreeHost::DoUpdateLayers(Layer* root_layer) { 964 bool LayerTreeHost::DoUpdateLayers(Layer* root_layer) {
957 TRACE_EVENT1("cc", "LayerTreeHost::DoUpdateLayers", "source_frame_number", 965 TRACE_EVENT1("cc", "LayerTreeHost::DoUpdateLayers", "source_frame_number",
958 source_frame_number()); 966 source_frame_number());
959 967
960 UpdateHudLayer(); 968 UpdateHudLayer();
961 969
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
1651 int seq_num = property_trees_.sequence_number; 1659 int seq_num = property_trees_.sequence_number;
1652 LayerTreeHostCommon::CallFunctionForEveryLayer(this, [seq_num](Layer* layer) { 1660 LayerTreeHostCommon::CallFunctionForEveryLayer(this, [seq_num](Layer* layer) {
1653 layer->set_property_tree_sequence_number(seq_num); 1661 layer->set_property_tree_sequence_number(seq_num);
1654 }); 1662 });
1655 1663
1656 surface_id_namespace_ = proto.surface_id_namespace(); 1664 surface_id_namespace_ = proto.surface_id_namespace();
1657 next_surface_sequence_ = proto.next_surface_sequence(); 1665 next_surface_sequence_ = proto.next_surface_sequence();
1658 } 1666 }
1659 1667
1660 } // namespace cc 1668 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | cc/trees/layer_tree_host_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698