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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 SurfaceId surface_id); | 57 SurfaceId surface_id); |
58 | 58 |
59 void HandleSurfaceQuad(const SurfaceDrawQuad* surface_quad, | 59 void HandleSurfaceQuad(const SurfaceDrawQuad* surface_quad, |
60 const gfx::Transform& target_transform, | 60 const gfx::Transform& target_transform, |
61 const ClipData& clip_rect, | 61 const ClipData& clip_rect, |
62 RenderPass* dest_pass); | 62 RenderPass* dest_pass); |
63 void CopySharedQuadState(const SharedQuadState* source_sqs, | 63 void CopySharedQuadState(const SharedQuadState* source_sqs, |
64 const gfx::Transform& target_transform, | 64 const gfx::Transform& target_transform, |
65 const ClipData& clip_rect, | 65 const ClipData& clip_rect, |
66 RenderPass* dest_render_pass); | 66 RenderPass* dest_render_pass); |
67 void CopyQuadsToPass(const QuadList& source_quad_list, | 67 void CopyQuadsToPass( |
68 const SharedQuadStateList& source_shared_quad_state_list, | 68 const QuadList& source_quad_list, |
69 const DrawQuad::ResourceIteratorCallback& remap, | 69 const SharedQuadStateList& source_shared_quad_state_list, |
70 const gfx::Transform& target_transform, | 70 const ResourceProvider::ResourceIdMap& resource_to_child_map, |
71 const ClipData& clip_rect, | 71 const gfx::Transform& target_transform, |
72 RenderPass* dest_pass, | 72 const ClipData& clip_rect, |
73 SurfaceId surface_id); | 73 RenderPass* dest_pass, |
| 74 SurfaceId surface_id); |
74 void CopyPasses(const DelegatedFrameData* frame_data, Surface* surface); | 75 void CopyPasses(const DelegatedFrameData* frame_data, Surface* surface); |
75 | 76 |
76 // Remove Surfaces that were referenced before but aren't currently | 77 // Remove Surfaces that were referenced before but aren't currently |
77 // referenced from the ResourceProvider. | 78 // referenced from the ResourceProvider. |
78 void RemoveUnreferencedChildren(); | 79 void RemoveUnreferencedChildren(); |
79 | 80 |
80 bool ValidateResources(Surface* surface, | 81 bool ValidateResources(Surface* surface, |
81 const DelegatedFrameData* frame_data); | 82 const DelegatedFrameData* frame_data); |
82 int ChildIdForSurface(Surface* surface); | 83 int ChildIdForSurface(Surface* surface); |
83 gfx::Rect DamageRectForSurface(const Surface* surface, | 84 gfx::Rect DamageRectForSurface(const Surface* surface, |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 116 |
116 // Resource list for the aggregated frame. | 117 // Resource list for the aggregated frame. |
117 TransferableResourceArray* dest_resource_list_; | 118 TransferableResourceArray* dest_resource_list_; |
118 | 119 |
119 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator); | 120 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator); |
120 }; | 121 }; |
121 | 122 |
122 } // namespace cc | 123 } // namespace cc |
123 | 124 |
124 #endif // CC_SURFACES_SURFACE_AGGREGATOR_H_ | 125 #endif // CC_SURFACES_SURFACE_AGGREGATOR_H_ |
OLD | NEW |