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

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

Issue 844503004: Revert of 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);
200 201
201 void SynchronouslyRasterizeTiles( 202 void SynchronouslyRasterizeTiles(
202 const GlobalStateThatImpactsTilePriority& state); 203 const GlobalStateThatImpactsTilePriority& state);
203 204
204 private: 205 private:
205 class MemoryUsage { 206 class MemoryUsage {
206 public: 207 public:
207 MemoryUsage(); 208 MemoryUsage();
208 MemoryUsage(int64 memory_bytes, int resource_count); 209 MemoryUsage(int64 memory_bytes, int resource_count);
209 210
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 304
304 bool did_notify_ready_to_activate_; 305 bool did_notify_ready_to_activate_;
305 bool did_notify_ready_to_draw_; 306 bool did_notify_ready_to_draw_;
306 307
307 DISALLOW_COPY_AND_ASSIGN(TileManager); 308 DISALLOW_COPY_AND_ASSIGN(TileManager);
308 }; 309 };
309 310
310 } // namespace cc 311 } // namespace cc
311 312
312 #endif // CC_RESOURCES_TILE_MANAGER_H_ 313 #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