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 <set> | 8 #include <set> |
9 | 9 |
10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 void CopySharedQuadState(const SharedQuadState* source_sqs, | 45 void CopySharedQuadState(const SharedQuadState* source_sqs, |
46 const gfx::Transform& content_to_target_transform, | 46 const gfx::Transform& content_to_target_transform, |
47 RenderPass* dest_render_pass); | 47 RenderPass* dest_render_pass); |
48 void CopyQuadsToPass(const QuadList& source_quad_list, | 48 void CopyQuadsToPass(const QuadList& source_quad_list, |
49 const SharedQuadStateList& source_shared_quad_state_list, | 49 const SharedQuadStateList& source_shared_quad_state_list, |
50 const gfx::Transform& content_to_target_transform, | 50 const gfx::Transform& content_to_target_transform, |
51 RenderPass* dest_pass, | 51 RenderPass* dest_pass, |
52 SurfaceId surface_id); | 52 SurfaceId surface_id); |
53 void CopyPasses(const DelegatedFrameData* frame_data, Surface* surface); | 53 void CopyPasses(const DelegatedFrameData* frame_data, Surface* surface); |
54 | 54 |
| 55 // Remove Surfaces that were referenced before but aren't currently |
| 56 // referenced from the ResourceProvider. |
| 57 void RemoveUnreferencedChildren(); |
| 58 |
55 bool TakeResources(Surface* surface, | 59 bool TakeResources(Surface* surface, |
56 const DelegatedFrameData* frame_data, | 60 const DelegatedFrameData* frame_data, |
57 RenderPassList* render_pass_list); | 61 RenderPassList* render_pass_list); |
58 int ChildIdForSurface(Surface* surface); | 62 int ChildIdForSurface(Surface* surface); |
59 gfx::Rect DamageRectForSurface(const Surface* surface, | 63 gfx::Rect DamageRectForSurface(const Surface* surface, |
60 const RenderPass& source); | 64 const RenderPass& source); |
61 | 65 |
62 SurfaceManager* manager_; | 66 SurfaceManager* manager_; |
63 ResourceProvider* provider_; | 67 ResourceProvider* provider_; |
64 | 68 |
(...skipping 25 matching lines...) Expand all Loading... |
90 | 94 |
91 // Resource list for the aggregated frame. | 95 // Resource list for the aggregated frame. |
92 TransferableResourceArray* dest_resource_list_; | 96 TransferableResourceArray* dest_resource_list_; |
93 | 97 |
94 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator); | 98 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator); |
95 }; | 99 }; |
96 | 100 |
97 } // namespace cc | 101 } // namespace cc |
98 | 102 |
99 #endif // CC_SURFACES_SURFACE_AGGREGATOR_H_ | 103 #endif // CC_SURFACES_SURFACE_AGGREGATOR_H_ |
OLD | NEW |