| 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 <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <unordered_map> | 10 #include <unordered_map> |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 bool is_clipped; | 53 bool is_clipped; |
| 54 gfx::Rect rect; | 54 gfx::Rect rect; |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 struct PrewalkResult { | 57 struct PrewalkResult { |
| 58 PrewalkResult(); | 58 PrewalkResult(); |
| 59 ~PrewalkResult(); | 59 ~PrewalkResult(); |
| 60 // This is the set of Surfaces that were referenced by another Surface, but | 60 // This is the set of Surfaces that were referenced by another Surface, but |
| 61 // not included in a SurfaceDrawQuad. | 61 // not included in a SurfaceDrawQuad. |
| 62 std::set<SurfaceId> undrawn_surfaces; | 62 std::set<SurfaceId> undrawn_surfaces; |
| 63 bool may_contain_video = false; |
| 63 }; | 64 }; |
| 64 | 65 |
| 65 ClipData CalculateClipRect(const ClipData& surface_clip, | 66 ClipData CalculateClipRect(const ClipData& surface_clip, |
| 66 const ClipData& quad_clip, | 67 const ClipData& quad_clip, |
| 67 const gfx::Transform& target_transform); | 68 const gfx::Transform& target_transform); |
| 68 | 69 |
| 69 RenderPassId RemapPassId(RenderPassId surface_local_pass_id, | 70 RenderPassId RemapPassId(RenderPassId surface_local_pass_id, |
| 70 const SurfaceId& surface_id); | 71 const SurfaceId& surface_id); |
| 71 | 72 |
| 72 void HandleSurfaceQuad(const SurfaceDrawQuad* surface_quad, | 73 void HandleSurfaceQuad(const SurfaceDrawQuad* surface_quad, |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 TransferableResourceArray* dest_resource_list_; | 169 TransferableResourceArray* dest_resource_list_; |
| 169 | 170 |
| 170 base::WeakPtrFactory<SurfaceAggregator> weak_factory_; | 171 base::WeakPtrFactory<SurfaceAggregator> weak_factory_; |
| 171 | 172 |
| 172 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator); | 173 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator); |
| 173 }; | 174 }; |
| 174 | 175 |
| 175 } // namespace cc | 176 } // namespace cc |
| 176 | 177 |
| 177 #endif // CC_SURFACES_SURFACE_AGGREGATOR_H_ | 178 #endif // CC_SURFACES_SURFACE_AGGREGATOR_H_ |
| OLD | NEW |