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 <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <set> | 10 #include <set> |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 RenderPass* dest_render_pass); | 86 RenderPass* dest_render_pass); |
87 void CopyQuadsToPass( | 87 void CopyQuadsToPass( |
88 const QuadList& source_quad_list, | 88 const QuadList& source_quad_list, |
89 const SharedQuadStateList& source_shared_quad_state_list, | 89 const SharedQuadStateList& source_shared_quad_state_list, |
90 const std::unordered_map<ResourceId, ResourceId>& resource_to_child_map, | 90 const std::unordered_map<ResourceId, ResourceId>& resource_to_child_map, |
91 const gfx::Transform& target_transform, | 91 const gfx::Transform& target_transform, |
92 const ClipData& clip_rect, | 92 const ClipData& clip_rect, |
93 RenderPass* dest_pass, | 93 RenderPass* dest_pass, |
94 const SurfaceId& surface_id); | 94 const SurfaceId& surface_id); |
95 gfx::Rect PrewalkTree(const SurfaceId& surface_id, | 95 gfx::Rect PrewalkTree(const SurfaceId& surface_id, |
96 bool in_moved_pixel_pass, | 96 bool in_moved_pixel_surface, |
97 int parent_pass, | 97 int parent_pass, |
98 PrewalkResult* result); | 98 PrewalkResult* result); |
99 void CopyUndrawnSurfaces(PrewalkResult* prewalk); | 99 void CopyUndrawnSurfaces(PrewalkResult* prewalk); |
100 void CopyPasses(const CompositorFrame& frame, Surface* surface); | 100 void CopyPasses(const CompositorFrame& frame, Surface* surface); |
101 | 101 |
102 // Remove Surfaces that were referenced before but aren't currently | 102 // Remove Surfaces that were referenced before but aren't currently |
103 // referenced from the ResourceProvider. | 103 // referenced from the ResourceProvider. |
104 // Also notifies SurfaceAggregatorClient of newly added and removed | 104 // Also notifies SurfaceAggregatorClient of newly added and removed |
105 // child surfaces. | 105 // child surfaces. |
106 void ProcessAddedAndRemovedSurfaces(); | 106 void ProcessAddedAndRemovedSurfaces(); |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 TransferableResourceArray* dest_resource_list_; | 173 TransferableResourceArray* dest_resource_list_; |
174 | 174 |
175 base::WeakPtrFactory<SurfaceAggregator> weak_factory_; | 175 base::WeakPtrFactory<SurfaceAggregator> weak_factory_; |
176 | 176 |
177 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator); | 177 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator); |
178 }; | 178 }; |
179 | 179 |
180 } // namespace cc | 180 } // namespace cc |
181 | 181 |
182 #endif // CC_SURFACES_SURFACE_AGGREGATOR_H_ | 182 #endif // CC_SURFACES_SURFACE_AGGREGATOR_H_ |
OLD | NEW |