| 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 16 matching lines...) Expand all Loading... |
| 27 class CC_SURFACES_EXPORT SurfaceAggregator { | 27 class CC_SURFACES_EXPORT SurfaceAggregator { |
| 28 public: | 28 public: |
| 29 SurfaceAggregator(SurfaceManager* manager, ResourceProvider* provider); | 29 SurfaceAggregator(SurfaceManager* manager, ResourceProvider* provider); |
| 30 ~SurfaceAggregator(); | 30 ~SurfaceAggregator(); |
| 31 | 31 |
| 32 scoped_ptr<CompositorFrame> Aggregate( | 32 scoped_ptr<CompositorFrame> Aggregate( |
| 33 SurfaceId surface_id, | 33 SurfaceId surface_id, |
| 34 std::set<SurfaceId>* contained_surfaces); | 34 std::set<SurfaceId>* contained_surfaces); |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 RenderPass::Id RemapPassId(RenderPass::Id surface_local_pass_id, | 37 RenderPassId RemapPassId(RenderPassId surface_local_pass_id, |
| 38 SurfaceId surface_id); | 38 SurfaceId surface_id); |
| 39 | 39 |
| 40 void HandleSurfaceQuad(const SurfaceDrawQuad* surface_quad, | 40 void HandleSurfaceQuad(const SurfaceDrawQuad* surface_quad, |
| 41 RenderPass* dest_pass); | 41 RenderPass* dest_pass); |
| 42 void CopySharedQuadState(const SharedQuadState* source_sqs, | 42 void CopySharedQuadState(const SharedQuadState* source_sqs, |
| 43 const gfx::Transform& content_to_target_transform, | 43 const gfx::Transform& content_to_target_transform, |
| 44 RenderPass* dest_render_pass); | 44 RenderPass* dest_render_pass); |
| 45 void CopyQuadsToPass(const QuadList& source_quad_list, | 45 void CopyQuadsToPass(const QuadList& source_quad_list, |
| 46 const SharedQuadStateList& source_shared_quad_state_list, | 46 const SharedQuadStateList& source_shared_quad_state_list, |
| 47 const gfx::Transform& content_to_target_transform, | 47 const gfx::Transform& content_to_target_transform, |
| 48 RenderPass* dest_pass, | 48 RenderPass* dest_pass, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 | 82 |
| 83 // Resource list for the aggregated frame. | 83 // Resource list for the aggregated frame. |
| 84 TransferableResourceArray* dest_resource_list_; | 84 TransferableResourceArray* dest_resource_list_; |
| 85 | 85 |
| 86 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator); | 86 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator); |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 } // namespace cc | 89 } // namespace cc |
| 90 | 90 |
| 91 #endif // CC_SURFACES_SURFACE_AGGREGATOR_H_ | 91 #endif // CC_SURFACES_SURFACE_AGGREGATOR_H_ |
| OLD | NEW |