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

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

Issue 1012853003: Add DisplayScheduler for Surfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use heuristic for active surfaces; avoid drawing while resources locked; Created 5 years, 8 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 <set> 8 #include <set>
9 9
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 13 matching lines...) Expand all
24 class SurfaceDrawQuad; 24 class SurfaceDrawQuad;
25 class SurfaceManager; 25 class SurfaceManager;
26 26
27 class CC_SURFACES_EXPORT SurfaceAggregator { 27 class CC_SURFACES_EXPORT SurfaceAggregator {
28 public: 28 public:
29 typedef base::hash_map<SurfaceId, int> SurfaceIndexMap; 29 typedef base::hash_map<SurfaceId, int> SurfaceIndexMap;
30 30
31 SurfaceAggregator(SurfaceManager* manager, ResourceProvider* provider); 31 SurfaceAggregator(SurfaceManager* manager, ResourceProvider* provider);
32 ~SurfaceAggregator(); 32 ~SurfaceAggregator();
33 33
34 bool CanAggregate();
jbauman 2015/04/03 22:27:51 Doesn't seem to be implemented.
34 scoped_ptr<CompositorFrame> Aggregate(SurfaceId surface_id); 35 scoped_ptr<CompositorFrame> Aggregate(SurfaceId surface_id);
35 void ReleaseResources(SurfaceId surface_id); 36 void ReleaseResources(SurfaceId surface_id);
36 SurfaceIndexMap& previous_contained_surfaces() { 37 SurfaceIndexMap& previous_contained_surfaces() {
37 return previous_contained_surfaces_; 38 return previous_contained_surfaces_;
38 } 39 }
39 40
40 private: 41 private:
41 struct ClipData { 42 struct ClipData {
42 ClipData() : is_clipped(false) {} 43 ClipData() : is_clipped(false) {}
43 ClipData(bool is_clipped, const gfx::Rect& rect) 44 ClipData(bool is_clipped, const gfx::Rect& rect)
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 114
114 // Resource list for the aggregated frame. 115 // Resource list for the aggregated frame.
115 TransferableResourceArray* dest_resource_list_; 116 TransferableResourceArray* dest_resource_list_;
116 117
117 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator); 118 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator);
118 }; 119 };
119 120
120 } // namespace cc 121 } // namespace cc
121 122
122 #endif // CC_SURFACES_SURFACE_AGGREGATOR_H_ 123 #endif // CC_SURFACES_SURFACE_AGGREGATOR_H_
OLDNEW
« cc/surfaces/display_scheduler.cc ('K') | « cc/surfaces/onscreen_display_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698