| 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_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <bitset> | 10 #include <bitset> |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 #include "cc/resources/ui_resource_client.h" | 35 #include "cc/resources/ui_resource_client.h" |
| 36 #include "cc/scheduler/begin_frame_tracker.h" | 36 #include "cc/scheduler/begin_frame_tracker.h" |
| 37 #include "cc/scheduler/commit_earlyout_reason.h" | 37 #include "cc/scheduler/commit_earlyout_reason.h" |
| 38 #include "cc/scheduler/draw_result.h" | 38 #include "cc/scheduler/draw_result.h" |
| 39 #include "cc/scheduler/video_frame_controller.h" | 39 #include "cc/scheduler/video_frame_controller.h" |
| 40 #include "cc/tiles/image_decode_controller.h" | 40 #include "cc/tiles/image_decode_controller.h" |
| 41 #include "cc/tiles/tile_manager.h" | 41 #include "cc/tiles/tile_manager.h" |
| 42 #include "cc/trees/layer_tree_settings.h" | 42 #include "cc/trees/layer_tree_settings.h" |
| 43 #include "cc/trees/mutator_host_client.h" | 43 #include "cc/trees/mutator_host_client.h" |
| 44 #include "cc/trees/task_runner_provider.h" | 44 #include "cc/trees/task_runner_provider.h" |
| 45 #include "gpu/command_buffer/client/context_support.h" |
| 45 #include "ui/gfx/geometry/rect.h" | 46 #include "ui/gfx/geometry/rect.h" |
| 46 | 47 |
| 47 namespace gfx { | 48 namespace gfx { |
| 48 class ScrollOffset; | 49 class ScrollOffset; |
| 49 } | 50 } |
| 50 | 51 |
| 51 namespace cc { | 52 namespace cc { |
| 52 | 53 |
| 53 class AnimationEvents; | 54 class AnimationEvents; |
| 54 class AnimationHost; | 55 class AnimationHost; |
| (...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 715 using UIResourceMap = std::unordered_map<UIResourceId, UIResourceData>; | 716 using UIResourceMap = std::unordered_map<UIResourceId, UIResourceData>; |
| 716 UIResourceMap ui_resource_map_; | 717 UIResourceMap ui_resource_map_; |
| 717 | 718 |
| 718 // Resources that were evicted by EvictAllUIResources. Resources are removed | 719 // Resources that were evicted by EvictAllUIResources. Resources are removed |
| 719 // from this when they are touched by a create or destroy from the UI resource | 720 // from this when they are touched by a create or destroy from the UI resource |
| 720 // request queue. | 721 // request queue. |
| 721 std::set<UIResourceId> evicted_ui_resources_; | 722 std::set<UIResourceId> evicted_ui_resources_; |
| 722 | 723 |
| 723 OutputSurface* output_surface_; | 724 OutputSurface* output_surface_; |
| 724 | 725 |
| 726 std::unique_ptr<gpu::ContextSupport::ScopedVisibility> |
| 727 main_context_client_visibility_; |
| 728 std::unique_ptr<gpu::ContextSupport::ScopedVisibility> |
| 729 worker_context_client_visibility_; |
| 730 |
| 725 std::unique_ptr<ResourceProvider> resource_provider_; | 731 std::unique_ptr<ResourceProvider> resource_provider_; |
| 726 bool need_update_gpu_rasterization_status_; | 732 bool need_update_gpu_rasterization_status_; |
| 727 bool content_is_suitable_for_gpu_rasterization_; | 733 bool content_is_suitable_for_gpu_rasterization_; |
| 728 bool has_gpu_rasterization_trigger_; | 734 bool has_gpu_rasterization_trigger_; |
| 729 bool use_gpu_rasterization_; | 735 bool use_gpu_rasterization_; |
| 730 bool use_msaa_; | 736 bool use_msaa_; |
| 731 GpuRasterizationStatus gpu_rasterization_status_; | 737 GpuRasterizationStatus gpu_rasterization_status_; |
| 732 std::unique_ptr<RasterBufferProvider> raster_buffer_provider_; | 738 std::unique_ptr<RasterBufferProvider> raster_buffer_provider_; |
| 733 std::unique_ptr<TileTaskManager> tile_task_manager_; | 739 std::unique_ptr<TileTaskManager> tile_task_manager_; |
| 734 std::unique_ptr<ResourcePool> resource_pool_; | 740 std::unique_ptr<ResourcePool> resource_pool_; |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 840 | 846 |
| 841 std::unique_ptr<PendingTreeDurationHistogramTimer> | 847 std::unique_ptr<PendingTreeDurationHistogramTimer> |
| 842 pending_tree_duration_timer_; | 848 pending_tree_duration_timer_; |
| 843 | 849 |
| 844 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 850 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 845 }; | 851 }; |
| 846 | 852 |
| 847 } // namespace cc | 853 } // namespace cc |
| 848 | 854 |
| 849 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 855 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |