| Index: cc/trees/layer_tree_host.cc
|
| diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
|
| index fee2d6c61e4f92a745574b96d3008c01245076af..8f7400bb42a5eed21094495574ed9c0feb65154b 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_ =
|
| + 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_,
|
| + has_fixed_raster_scale_potential_performance_regression_);
|
| +}
|
| +
|
| bool LayerTreeHost::UsingSharedMemoryResources() {
|
| return GetRendererCapabilities().using_shared_memory_resources;
|
| }
|
|
|