| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 // Remove Surfaces that were referenced before but aren't currently | 57 // Remove Surfaces that were referenced before but aren't currently |
| 58 // referenced from the ResourceProvider. | 58 // referenced from the ResourceProvider. |
| 59 void RemoveUnreferencedChildren(); | 59 void RemoveUnreferencedChildren(); |
| 60 | 60 |
| 61 bool TakeResources(Surface* surface, | 61 bool TakeResources(Surface* surface, |
| 62 const DelegatedFrameData* frame_data, | 62 const DelegatedFrameData* frame_data, |
| 63 RenderPassList* render_pass_list); | 63 RenderPassList* render_pass_list); |
| 64 int ChildIdForSurface(Surface* surface); | 64 int ChildIdForSurface(Surface* surface); |
| 65 gfx::Rect DamageRectForSurface(const Surface* surface, | 65 gfx::Rect DamageRectForSurface(const Surface* surface, |
| 66 const RenderPass& source); | 66 const RenderPass& source, |
| 67 const gfx::Rect& full_rect); |
| 67 | 68 |
| 68 SurfaceManager* manager_; | 69 SurfaceManager* manager_; |
| 69 ResourceProvider* provider_; | 70 ResourceProvider* provider_; |
| 70 | 71 |
| 71 class RenderPassIdAllocator; | 72 class RenderPassIdAllocator; |
| 72 typedef base::ScopedPtrHashMap<SurfaceId, RenderPassIdAllocator> | 73 typedef base::ScopedPtrHashMap<SurfaceId, RenderPassIdAllocator> |
| 73 RenderPassIdAllocatorMap; | 74 RenderPassIdAllocatorMap; |
| 74 RenderPassIdAllocatorMap render_pass_allocator_map_; | 75 RenderPassIdAllocatorMap render_pass_allocator_map_; |
| 75 int next_render_pass_id_; | 76 int next_render_pass_id_; |
| 76 | 77 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 96 | 97 |
| 97 // Resource list for the aggregated frame. | 98 // Resource list for the aggregated frame. |
| 98 TransferableResourceArray* dest_resource_list_; | 99 TransferableResourceArray* dest_resource_list_; |
| 99 | 100 |
| 100 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator); | 101 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator); |
| 101 }; | 102 }; |
| 102 | 103 |
| 103 } // namespace cc | 104 } // namespace cc |
| 104 | 105 |
| 105 #endif // CC_SURFACES_SURFACE_AGGREGATOR_H_ | 106 #endif // CC_SURFACES_SURFACE_AGGREGATOR_H_ |
| OLD | NEW |