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

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

Issue 670183003: Update from chromium 62675d9fb31fb8cedc40f68e78e8445a74f362e7 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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/surfaces/surface.h ('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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 gfx::Rect DamageRectForSurface(const Surface* surface, 59 gfx::Rect DamageRectForSurface(const Surface* surface,
60 const RenderPass& source); 60 const RenderPass& source);
61 61
62 SurfaceManager* manager_; 62 SurfaceManager* manager_;
63 ResourceProvider* provider_; 63 ResourceProvider* provider_;
64 64
65 class RenderPassIdAllocator; 65 class RenderPassIdAllocator;
66 typedef base::ScopedPtrHashMap<SurfaceId, RenderPassIdAllocator> 66 typedef base::ScopedPtrHashMap<SurfaceId, RenderPassIdAllocator>
67 RenderPassIdAllocatorMap; 67 RenderPassIdAllocatorMap;
68 RenderPassIdAllocatorMap render_pass_allocator_map_; 68 RenderPassIdAllocatorMap render_pass_allocator_map_;
69 int next_render_pass_id_;
69 70
70 typedef base::hash_map<SurfaceId, int> SurfaceToResourceChildIdMap; 71 typedef base::hash_map<SurfaceId, int> SurfaceToResourceChildIdMap;
71 SurfaceToResourceChildIdMap surface_id_to_resource_child_id_; 72 SurfaceToResourceChildIdMap surface_id_to_resource_child_id_;
72 73
73 // The following state is only valid for the duration of one Aggregate call 74 // The following state is only valid for the duration of one Aggregate call
74 // and is only stored on the class to avoid having to pass through every 75 // and is only stored on the class to avoid having to pass through every
75 // function call. 76 // function call.
76 77
77 // This is the set of surfaces referenced in the aggregation so far, used to 78 // This is the set of surfaces referenced in the aggregation so far, used to
78 // detect cycles. 79 // detect cycles.
(...skipping 10 matching lines...) Expand all
89 90
90 // Resource list for the aggregated frame. 91 // Resource list for the aggregated frame.
91 TransferableResourceArray* dest_resource_list_; 92 TransferableResourceArray* dest_resource_list_;
92 93
93 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator); 94 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator);
94 }; 95 };
95 96
96 } // namespace cc 97 } // namespace cc
97 98
98 #endif // CC_SURFACES_SURFACE_AGGREGATOR_H_ 99 #endif // CC_SURFACES_SURFACE_AGGREGATOR_H_
OLDNEW
« no previous file with comments | « cc/surfaces/surface.h ('k') | cc/surfaces/surface_aggregator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698