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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 RenderPassList* render_pass_list); | 79 RenderPassList* render_pass_list); |
80 int ChildIdForSurface(Surface* surface); | 80 int ChildIdForSurface(Surface* surface); |
81 gfx::Rect DamageRectForSurface(const Surface* surface, | 81 gfx::Rect DamageRectForSurface(const Surface* surface, |
82 const RenderPass& source, | 82 const RenderPass& source, |
83 const gfx::Rect& full_rect); | 83 const gfx::Rect& full_rect); |
84 | 84 |
85 SurfaceManager* manager_; | 85 SurfaceManager* manager_; |
86 ResourceProvider* provider_; | 86 ResourceProvider* provider_; |
87 | 87 |
88 class RenderPassIdAllocator; | 88 class RenderPassIdAllocator; |
89 typedef base::ScopedPtrHashMap<SurfaceId, RenderPassIdAllocator> | 89 typedef base::ScopedPtrHashMap<SurfaceId, scoped_ptr<RenderPassIdAllocator>> |
90 RenderPassIdAllocatorMap; | 90 RenderPassIdAllocatorMap; |
91 RenderPassIdAllocatorMap render_pass_allocator_map_; | 91 RenderPassIdAllocatorMap render_pass_allocator_map_; |
92 int next_render_pass_id_; | 92 int next_render_pass_id_; |
93 | 93 |
94 typedef base::hash_map<SurfaceId, int> SurfaceToResourceChildIdMap; | 94 typedef base::hash_map<SurfaceId, int> SurfaceToResourceChildIdMap; |
95 SurfaceToResourceChildIdMap surface_id_to_resource_child_id_; | 95 SurfaceToResourceChildIdMap surface_id_to_resource_child_id_; |
96 | 96 |
97 // The following state is only valid for the duration of one Aggregate call | 97 // The following state is only valid for the duration of one Aggregate call |
98 // and is only stored on the class to avoid having to pass through every | 98 // and is only stored on the class to avoid having to pass through every |
99 // function call. | 99 // function call. |
(...skipping 13 matching lines...) Expand all Loading... |
113 | 113 |
114 // Resource list for the aggregated frame. | 114 // Resource list for the aggregated frame. |
115 TransferableResourceArray* dest_resource_list_; | 115 TransferableResourceArray* dest_resource_list_; |
116 | 116 |
117 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator); | 117 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator); |
118 }; | 118 }; |
119 | 119 |
120 } // namespace cc | 120 } // namespace cc |
121 | 121 |
122 #endif // CC_SURFACES_SURFACE_AGGREGATOR_H_ | 122 #endif // CC_SURFACES_SURFACE_AGGREGATOR_H_ |
OLD | NEW |