OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SURFACES_SURFACE_AGGREGATOR_H_ | 5 #ifndef CC_SURFACES_SURFACE_AGGREGATOR_H_ |
6 #define CC_SURFACES_SURFACE_AGGREGATOR_H_ | 6 #define CC_SURFACES_SURFACE_AGGREGATOR_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <set> | 9 #include <set> |
10 #include <unordered_map> | 10 #include <unordered_map> |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 RenderPass* dest_render_pass); | 79 RenderPass* dest_render_pass); |
80 void CopyQuadsToPass( | 80 void CopyQuadsToPass( |
81 const QuadList& source_quad_list, | 81 const QuadList& source_quad_list, |
82 const SharedQuadStateList& source_shared_quad_state_list, | 82 const SharedQuadStateList& source_shared_quad_state_list, |
83 const std::unordered_map<ResourceId, ResourceId>& resource_to_child_map, | 83 const std::unordered_map<ResourceId, ResourceId>& resource_to_child_map, |
84 const gfx::Transform& target_transform, | 84 const gfx::Transform& target_transform, |
85 const ClipData& clip_rect, | 85 const ClipData& clip_rect, |
86 RenderPass* dest_pass, | 86 RenderPass* dest_pass, |
87 const SurfaceId& surface_id); | 87 const SurfaceId& surface_id); |
88 gfx::Rect PrewalkTree(const SurfaceId& surface_id, | 88 gfx::Rect PrewalkTree(const SurfaceId& surface_id, |
89 bool in_moved_pixel_pass, | 89 bool in_moved_pixel_surface, |
90 RenderPassId parent_pass, | 90 RenderPassId parent_pass, |
91 PrewalkResult* result); | 91 PrewalkResult* result); |
92 void CopyUndrawnSurfaces(PrewalkResult* prewalk); | 92 void CopyUndrawnSurfaces(PrewalkResult* prewalk); |
93 void CopyPasses(const CompositorFrame& frame, Surface* surface); | 93 void CopyPasses(const CompositorFrame& frame, Surface* surface); |
94 | 94 |
95 // Remove Surfaces that were referenced before but aren't currently | 95 // Remove Surfaces that were referenced before but aren't currently |
96 // referenced from the ResourceProvider. | 96 // referenced from the ResourceProvider. |
97 // Also notifies SurfaceAggregatorClient of newly added and removed | 97 // Also notifies SurfaceAggregatorClient of newly added and removed |
98 // child surfaces. | 98 // child surfaces. |
99 void ProcessAddedAndRemovedSurfaces(); | 99 void ProcessAddedAndRemovedSurfaces(); |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 TransferableResourceArray* dest_resource_list_; | 168 TransferableResourceArray* dest_resource_list_; |
169 | 169 |
170 base::WeakPtrFactory<SurfaceAggregator> weak_factory_; | 170 base::WeakPtrFactory<SurfaceAggregator> weak_factory_; |
171 | 171 |
172 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator); | 172 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator); |
173 }; | 173 }; |
174 | 174 |
175 } // namespace cc | 175 } // namespace cc |
176 | 176 |
177 #endif // CC_SURFACES_SURFACE_AGGREGATOR_H_ | 177 #endif // CC_SURFACES_SURFACE_AGGREGATOR_H_ |
OLD | NEW |