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

Unified 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: 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 side-by-side diff with in-line comments
Download patch
Index: cc/trees/layer_tree_host.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index f41bc9fea43e116e44e5cb744e9d05c65199a90c..8f6f658d76e6f9e165b70b617f310b9f683e5eb1 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -246,7 +246,9 @@ LayerTreeHost::LayerTreeHost(InitParams* params, CompositorMode mode)
task_graph_runner_(params->task_graph_runner),
image_serialization_processor_(params->image_serialization_processor),
surface_id_namespace_(0u),
- next_surface_sequence_(1u) {
+ next_surface_sequence_(1u),
+ has_fixed_raster_scale_blurry_content_(false),
+ has_fixed_raster_scale_potential_performance_regression_(false) {
DCHECK(task_graph_runner_);
animation_host_ = AnimationHost::Create(ThreadInstance::MAIN);
@@ -546,6 +548,11 @@ void LayerTreeHost::FinishCommitOnImplThread(LayerTreeHostImpl* host_impl) {
else
property_trees_.ResetAllChangeTracking(
PropertyTrees::ResetFlags::TRANSFORM_TREE);
+
+ has_fixed_raster_scale_blurry_content_ =
danakj 2016/05/10 22:05:30 What happened to sending them in begin main frame?
vmpstr 2016/05/13 00:13:34 Leftover code from the previous patch. Removed.
+ host_impl->has_fixed_raster_scale_blurry_content();
+ has_fixed_raster_scale_potential_performance_regression_ =
+ host_impl->HasFixedRasterScalePotentialPerformanceRegression();
}
void LayerTreeHost::WillCommit() {
@@ -958,6 +965,14 @@ void LayerTreeHost::BuildPropertyTreesForTesting() {
gfx::Rect(device_viewport_size_), identity_transform, &property_trees_);
}
+void LayerTreeHost::ReportFixedRasterScaleUseCounters(
+ bool has_fixed_raster_scale_blurry_content,
+ bool has_fixed_raster_scale_potential_performance_regression) {
+ client_->ReportFixedRasterScaleUseCounters(
+ has_fixed_raster_scale_blurry_content_,
danakj 2016/05/10 22:05:30 whats going on here? receive vars as args, but use
vmpstr 2016/05/13 00:13:34 Fixed.
+ has_fixed_raster_scale_potential_performance_regression_);
+}
+
bool LayerTreeHost::UsingSharedMemoryResources() {
return GetRendererCapabilities().using_shared_memory_resources;
}

Powered by Google App Engine
This is Rietveld 408576698