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

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

Issue 837533002: cc: Re-enable prepaint for GPU rasterization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | cc/resources/tile_manager.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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 TaskSetCollection TasksThatShouldBeForcedToComplete() const override; 189 TaskSetCollection TasksThatShouldBeForcedToComplete() const override;
190 190
191 typedef std::vector<Tile*> TileVector; 191 typedef std::vector<Tile*> TileVector;
192 typedef std::set<Tile*> TileSet; 192 typedef std::set<Tile*> TileSet;
193 193
194 // Virtual for test 194 // Virtual for test
195 virtual void ScheduleTasks( 195 virtual void ScheduleTasks(
196 const TileVector& tiles_that_need_to_be_rasterized); 196 const TileVector& tiles_that_need_to_be_rasterized);
197 197
198 void AssignGpuMemoryToTiles(TileVector* tiles_that_need_to_be_rasterized, 198 void AssignGpuMemoryToTiles(TileVector* tiles_that_need_to_be_rasterized,
199 size_t scheduled_raser_task_limit, 199 size_t scheduled_raser_task_limit);
200 bool required_for_draw_only);
201 200
202 void SynchronouslyRasterizeTiles( 201 void SynchronouslyRasterizeTiles(
203 const GlobalStateThatImpactsTilePriority& state); 202 const GlobalStateThatImpactsTilePriority& state);
204 203
205 private: 204 private:
206 class MemoryUsage { 205 class MemoryUsage {
207 public: 206 public:
208 MemoryUsage(); 207 MemoryUsage();
209 MemoryUsage(int64 memory_bytes, int resource_count); 208 MemoryUsage(int64 memory_bytes, int resource_count);
210 209
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 303
305 bool did_notify_ready_to_activate_; 304 bool did_notify_ready_to_activate_;
306 bool did_notify_ready_to_draw_; 305 bool did_notify_ready_to_draw_;
307 306
308 DISALLOW_COPY_AND_ASSIGN(TileManager); 307 DISALLOW_COPY_AND_ASSIGN(TileManager);
309 }; 308 };
310 309
311 } // namespace cc 310 } // namespace cc
312 311
313 #endif // CC_RESOURCES_TILE_MANAGER_H_ 312 #endif // CC_RESOURCES_TILE_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/resources/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698