| 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 29 matching lines...) Expand all Loading... |
| 40 void CopySharedQuadState(const SharedQuadState* source_sqs, | 40 void CopySharedQuadState(const SharedQuadState* source_sqs, |
| 41 const gfx::Transform& content_to_target_transform, | 41 const gfx::Transform& content_to_target_transform, |
| 42 RenderPass* dest_render_pass); | 42 RenderPass* dest_render_pass); |
| 43 void CopyQuadsToPass(const QuadList& source_quad_list, | 43 void CopyQuadsToPass(const QuadList& source_quad_list, |
| 44 const SharedQuadStateList& source_shared_quad_state_list, | 44 const SharedQuadStateList& source_shared_quad_state_list, |
| 45 const gfx::Transform& content_to_target_transform, | 45 const gfx::Transform& content_to_target_transform, |
| 46 RenderPass* dest_pass, | 46 RenderPass* dest_pass, |
| 47 SurfaceId surface_id); | 47 SurfaceId surface_id); |
| 48 void CopyPasses(const RenderPassList& source_pass_list, SurfaceId surface_id); | 48 void CopyPasses(const RenderPassList& source_pass_list, SurfaceId surface_id); |
| 49 | 49 |
| 50 bool TakeResources(Surface* surface, DelegatedFrameData* frame_data); | 50 bool TakeResources(Surface* surface, |
| 51 const DelegatedFrameData* frame_data, |
| 52 RenderPassList* render_pass_list); |
| 51 int ChildIdForSurface(Surface* surface); | 53 int ChildIdForSurface(Surface* surface); |
| 52 | 54 |
| 53 SurfaceManager* manager_; | 55 SurfaceManager* manager_; |
| 54 ResourceProvider* provider_; | 56 ResourceProvider* provider_; |
| 55 | 57 |
| 56 class RenderPassIdAllocator; | 58 class RenderPassIdAllocator; |
| 57 typedef base::ScopedPtrHashMap<SurfaceId, RenderPassIdAllocator> | 59 typedef base::ScopedPtrHashMap<SurfaceId, RenderPassIdAllocator> |
| 58 RenderPassIdAllocatorMap; | 60 RenderPassIdAllocatorMap; |
| 59 RenderPassIdAllocatorMap render_pass_allocator_map_; | 61 RenderPassIdAllocatorMap render_pass_allocator_map_; |
| 60 | 62 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 75 | 77 |
| 76 // Resource list for the aggregated frame. | 78 // Resource list for the aggregated frame. |
| 77 TransferableResourceArray* dest_resource_list_; | 79 TransferableResourceArray* dest_resource_list_; |
| 78 | 80 |
| 79 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator); | 81 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator); |
| 80 }; | 82 }; |
| 81 | 83 |
| 82 } // namespace cc | 84 } // namespace cc |
| 83 | 85 |
| 84 #endif // CC_SURFACES_SURFACE_AGGREGATOR_H_ | 86 #endif // CC_SURFACES_SURFACE_AGGREGATOR_H_ |
| OLD | NEW |