Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: cc/surfaces/surface_aggregator.h

Issue 404563005: Make RenderPass::Id an isolated class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more case in mojo Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/quads/render_pass_unittest.cc ('k') | cc/surfaces/surface_aggregator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « cc/quads/render_pass_unittest.cc ('k') | cc/surfaces/surface_aggregator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698