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

Side by Side Diff: cc/resources/tile_manager.h

Issue 251003002: cc: prevent TileManager raster/eviction tile iterators copy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/resources/tile_manager_unittest.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_RESOURCES_TILE_MANAGER_H_ 5 #ifndef CC_RESOURCES_TILE_MANAGER_H_
6 #define CC_RESOURCES_TILE_MANAGER_H_ 6 #define CC_RESOURCES_TILE_MANAGER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <queue> 9 #include <queue>
10 #include <set> 10 #include <set>
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 PairedPictureLayerIterator* b) const; 95 PairedPictureLayerIterator* b) const;
96 96
97 private: 97 private:
98 TreePriority tree_priority_; 98 TreePriority tree_priority_;
99 }; 99 };
100 100
101 std::vector<PairedPictureLayerIterator> paired_iterators_; 101 std::vector<PairedPictureLayerIterator> paired_iterators_;
102 std::vector<PairedPictureLayerIterator*> iterator_heap_; 102 std::vector<PairedPictureLayerIterator*> iterator_heap_;
103 TreePriority tree_priority_; 103 TreePriority tree_priority_;
104 RasterOrderComparator comparator_; 104 RasterOrderComparator comparator_;
105
106 DISALLOW_COPY_AND_ASSIGN(RasterTileIterator);
105 }; 107 };
106 108
107 struct CC_EXPORT EvictionTileIterator { 109 struct CC_EXPORT EvictionTileIterator {
108 public: 110 public:
109 EvictionTileIterator(); 111 EvictionTileIterator();
110 EvictionTileIterator(TileManager* tile_manager, TreePriority tree_priority); 112 EvictionTileIterator(TileManager* tile_manager, TreePriority tree_priority);
111 ~EvictionTileIterator(); 113 ~EvictionTileIterator();
112 114
113 EvictionTileIterator& operator++(); 115 EvictionTileIterator& operator++();
114 operator bool() const; 116 operator bool() const;
(...skipping 24 matching lines...) Expand all
139 PairedPictureLayerIterator* b) const; 141 PairedPictureLayerIterator* b) const;
140 142
141 private: 143 private:
142 TreePriority tree_priority_; 144 TreePriority tree_priority_;
143 }; 145 };
144 146
145 std::vector<PairedPictureLayerIterator> paired_iterators_; 147 std::vector<PairedPictureLayerIterator> paired_iterators_;
146 std::vector<PairedPictureLayerIterator*> iterator_heap_; 148 std::vector<PairedPictureLayerIterator*> iterator_heap_;
147 TreePriority tree_priority_; 149 TreePriority tree_priority_;
148 EvictionOrderComparator comparator_; 150 EvictionOrderComparator comparator_;
151
152 DISALLOW_COPY_AND_ASSIGN(EvictionTileIterator);
149 }; 153 };
150 154
151 static scoped_ptr<TileManager> Create( 155 static scoped_ptr<TileManager> Create(
152 TileManagerClient* client, 156 TileManagerClient* client,
153 ResourcePool* resource_pool, 157 ResourcePool* resource_pool,
154 Rasterizer* rasterizer, 158 Rasterizer* rasterizer,
155 Rasterizer* gpu_rasterizer, 159 Rasterizer* gpu_rasterizer,
156 size_t max_raster_usage_bytes, 160 size_t max_raster_usage_bytes,
157 bool use_rasterize_on_demand, 161 bool use_rasterize_on_demand,
158 RenderingStatsInstrumentation* rendering_stats_instrumentation); 162 RenderingStatsInstrumentation* rendering_stats_instrumentation);
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 std::vector<scoped_refptr<RasterTask> > orphan_raster_tasks_; 343 std::vector<scoped_refptr<RasterTask> > orphan_raster_tasks_;
340 344
341 std::vector<PictureLayerImpl*> layers_; 345 std::vector<PictureLayerImpl*> layers_;
342 346
343 DISALLOW_COPY_AND_ASSIGN(TileManager); 347 DISALLOW_COPY_AND_ASSIGN(TileManager);
344 }; 348 };
345 349
346 } // namespace cc 350 } // namespace cc
347 351
348 #endif // CC_RESOURCES_TILE_MANAGER_H_ 352 #endif // CC_RESOURCES_TILE_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/resources/tile_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698