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 13 matching lines...) Expand all Loading... | |
24 class SurfaceDrawQuad; | 24 class SurfaceDrawQuad; |
25 class SurfaceManager; | 25 class SurfaceManager; |
26 | 26 |
27 class CC_SURFACES_EXPORT SurfaceAggregator { | 27 class CC_SURFACES_EXPORT SurfaceAggregator { |
28 public: | 28 public: |
29 typedef base::hash_map<SurfaceId, int> SurfaceIndexMap; | 29 typedef base::hash_map<SurfaceId, int> SurfaceIndexMap; |
30 | 30 |
31 SurfaceAggregator(SurfaceManager* manager, ResourceProvider* provider); | 31 SurfaceAggregator(SurfaceManager* manager, ResourceProvider* provider); |
32 ~SurfaceAggregator(); | 32 ~SurfaceAggregator(); |
33 | 33 |
34 bool CanAggregate(); | |
jbauman
2015/04/03 22:27:51
Doesn't seem to be implemented.
| |
34 scoped_ptr<CompositorFrame> Aggregate(SurfaceId surface_id); | 35 scoped_ptr<CompositorFrame> Aggregate(SurfaceId surface_id); |
35 void ReleaseResources(SurfaceId surface_id); | 36 void ReleaseResources(SurfaceId surface_id); |
36 SurfaceIndexMap& previous_contained_surfaces() { | 37 SurfaceIndexMap& previous_contained_surfaces() { |
37 return previous_contained_surfaces_; | 38 return previous_contained_surfaces_; |
38 } | 39 } |
39 | 40 |
40 private: | 41 private: |
41 struct ClipData { | 42 struct ClipData { |
42 ClipData() : is_clipped(false) {} | 43 ClipData() : is_clipped(false) {} |
43 ClipData(bool is_clipped, const gfx::Rect& rect) | 44 ClipData(bool is_clipped, const gfx::Rect& rect) |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
113 | 114 |
114 // Resource list for the aggregated frame. | 115 // Resource list for the aggregated frame. |
115 TransferableResourceArray* dest_resource_list_; | 116 TransferableResourceArray* dest_resource_list_; |
116 | 117 |
117 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator); | 118 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator); |
118 }; | 119 }; |
119 | 120 |
120 } // namespace cc | 121 } // namespace cc |
121 | 122 |
122 #endif // CC_SURFACES_SURFACE_AGGREGATOR_H_ | 123 #endif // CC_SURFACES_SURFACE_AGGREGATOR_H_ |
OLD | NEW |