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

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

Issue 2582823002: WIP: Surface Synchronization System
Patch Set: Only create ClientSurfaceEmbedder if window is visible. Trash it otherwise. Created 3 years, 11 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
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 <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 ClipData CalculateClipRect(const ClipData& surface_clip, 73 ClipData CalculateClipRect(const ClipData& surface_clip,
74 const ClipData& quad_clip, 74 const ClipData& quad_clip,
75 const gfx::Transform& target_transform); 75 const gfx::Transform& target_transform);
76 76
77 int RemapPassId(int surface_local_pass_id, const SurfaceId& surface_id); 77 int RemapPassId(int surface_local_pass_id, const SurfaceId& surface_id);
78 78
79 void HandleSurfaceQuad(const SurfaceDrawQuad* surface_quad, 79 void HandleSurfaceQuad(const SurfaceDrawQuad* surface_quad,
80 const gfx::Transform& target_transform, 80 const gfx::Transform& target_transform,
81 const ClipData& clip_rect, 81 const ClipData& clip_rect,
82 RenderPass* dest_pass); 82 RenderPass* dest_pass,
83 bool ignore_undamaged,
84 gfx::Rect* damage_rect_in_quad_space,
85 bool* damage_rect_in_quad_space_valid);
86
83 SharedQuadState* CopySharedQuadState(const SharedQuadState* source_sqs, 87 SharedQuadState* CopySharedQuadState(const SharedQuadState* source_sqs,
84 const gfx::Transform& target_transform, 88 const gfx::Transform& target_transform,
85 const ClipData& clip_rect, 89 const ClipData& clip_rect,
86 RenderPass* dest_render_pass); 90 RenderPass* dest_render_pass);
87 void CopyQuadsToPass( 91 void CopyQuadsToPass(
88 const QuadList& source_quad_list, 92 const QuadList& source_quad_list,
89 const SharedQuadStateList& source_shared_quad_state_list, 93 const SharedQuadStateList& source_shared_quad_state_list,
90 const std::unordered_map<ResourceId, ResourceId>& resource_to_child_map, 94 const std::unordered_map<ResourceId, ResourceId>& resource_to_child_map,
91 const gfx::Transform& target_transform, 95 const gfx::Transform& target_transform,
92 const ClipData& clip_rect, 96 const ClipData& clip_rect,
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 TransferableResourceArray* dest_resource_list_; 177 TransferableResourceArray* dest_resource_list_;
174 178
175 base::WeakPtrFactory<SurfaceAggregator> weak_factory_; 179 base::WeakPtrFactory<SurfaceAggregator> weak_factory_;
176 180
177 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator); 181 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator);
178 }; 182 };
179 183
180 } // namespace cc 184 } // namespace cc
181 185
182 #endif // CC_SURFACES_SURFACE_AGGREGATOR_H_ 186 #endif // CC_SURFACES_SURFACE_AGGREGATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698