OLD | NEW |
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 #ifndef CC_TREES_LAYER_TREE_HOST_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_ |
6 #define CC_TREES_LAYER_TREE_HOST_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 bool IsSingleThreaded() const; | 412 bool IsSingleThreaded() const; |
413 bool IsThreaded() const; | 413 bool IsThreaded() const; |
414 bool IsRemoteServer() const; | 414 bool IsRemoteServer() const; |
415 bool IsRemoteClient() const; | 415 bool IsRemoteClient() const; |
416 void BuildPropertyTreesForTesting(); | 416 void BuildPropertyTreesForTesting(); |
417 | 417 |
418 ImageSerializationProcessor* image_serialization_processor() const { | 418 ImageSerializationProcessor* image_serialization_processor() const { |
419 return image_serialization_processor_; | 419 return image_serialization_processor_; |
420 } | 420 } |
421 | 421 |
| 422 void ReportFixedRasterScaleUseCounters( |
| 423 bool has_fixed_raster_scale_blurry_content, |
| 424 bool has_fixed_raster_scale_potential_performance_regression); |
| 425 |
422 protected: | 426 protected: |
423 LayerTreeHost(InitParams* params, CompositorMode mode); | 427 LayerTreeHost(InitParams* params, CompositorMode mode); |
424 void InitializeThreaded( | 428 void InitializeThreaded( |
425 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 429 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
426 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner, | 430 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner, |
427 std::unique_ptr<BeginFrameSource> external_begin_frame_source); | 431 std::unique_ptr<BeginFrameSource> external_begin_frame_source); |
428 void InitializeSingleThreaded( | 432 void InitializeSingleThreaded( |
429 LayerTreeHostSingleThreadClient* single_thread_client, | 433 LayerTreeHostSingleThreadClient* single_thread_client, |
430 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 434 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
431 std::unique_ptr<BeginFrameSource> external_begin_frame_source); | 435 std::unique_ptr<BeginFrameSource> external_begin_frame_source); |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 PropertyTrees property_trees_; | 584 PropertyTrees property_trees_; |
581 | 585 |
582 using LayerIdMap = std::unordered_map<int, Layer*>; | 586 using LayerIdMap = std::unordered_map<int, Layer*>; |
583 LayerIdMap layer_id_map_; | 587 LayerIdMap layer_id_map_; |
584 // Set of layers that need to push properties. | 588 // Set of layers that need to push properties. |
585 std::unordered_set<Layer*> layers_that_should_push_properties_; | 589 std::unordered_set<Layer*> layers_that_should_push_properties_; |
586 | 590 |
587 uint32_t surface_id_namespace_; | 591 uint32_t surface_id_namespace_; |
588 uint32_t next_surface_sequence_; | 592 uint32_t next_surface_sequence_; |
589 | 593 |
| 594 bool has_fixed_raster_scale_blurry_content_; |
| 595 bool has_fixed_raster_scale_potential_performance_regression_; |
| 596 |
590 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 597 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
591 }; | 598 }; |
592 | 599 |
593 } // namespace cc | 600 } // namespace cc |
594 | 601 |
595 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 602 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |