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

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

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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/surfaces/surface.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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 // Remove Surfaces that were referenced before but aren't currently 57 // Remove Surfaces that were referenced before but aren't currently
58 // referenced from the ResourceProvider. 58 // referenced from the ResourceProvider.
59 void RemoveUnreferencedChildren(); 59 void RemoveUnreferencedChildren();
60 60
61 bool TakeResources(Surface* surface, 61 bool TakeResources(Surface* surface,
62 const DelegatedFrameData* frame_data, 62 const DelegatedFrameData* frame_data,
63 RenderPassList* render_pass_list); 63 RenderPassList* render_pass_list);
64 int ChildIdForSurface(Surface* surface); 64 int ChildIdForSurface(Surface* surface);
65 gfx::Rect DamageRectForSurface(const Surface* surface, 65 gfx::Rect DamageRectForSurface(const Surface* surface,
66 const RenderPass& source); 66 const RenderPass& source,
67 const gfx::Rect& full_rect);
67 68
68 SurfaceManager* manager_; 69 SurfaceManager* manager_;
69 ResourceProvider* provider_; 70 ResourceProvider* provider_;
70 71
71 class RenderPassIdAllocator; 72 class RenderPassIdAllocator;
72 typedef base::ScopedPtrHashMap<SurfaceId, RenderPassIdAllocator> 73 typedef base::ScopedPtrHashMap<SurfaceId, RenderPassIdAllocator>
73 RenderPassIdAllocatorMap; 74 RenderPassIdAllocatorMap;
74 RenderPassIdAllocatorMap render_pass_allocator_map_; 75 RenderPassIdAllocatorMap render_pass_allocator_map_;
75 int next_render_pass_id_; 76 int next_render_pass_id_;
76 77
(...skipping 19 matching lines...) Expand all
96 97
97 // Resource list for the aggregated frame. 98 // Resource list for the aggregated frame.
98 TransferableResourceArray* dest_resource_list_; 99 TransferableResourceArray* dest_resource_list_;
99 100
100 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator); 101 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator);
101 }; 102 };
102 103
103 } // namespace cc 104 } // namespace cc
104 105
105 #endif // CC_SURFACES_SURFACE_AGGREGATOR_H_ 106 #endif // CC_SURFACES_SURFACE_AGGREGATOR_H_
OLDNEW
« no previous file with comments | « cc/surfaces/surface.cc ('k') | cc/surfaces/surface_aggregator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698