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

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

Issue 816453008: cc: Split tiling set raster queues into all and required. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update 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
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // examples are: 54 // examples are:
55 // - Tile version initialized. 55 // - Tile version initialized.
56 // - Tile resources freed. 56 // - Tile resources freed.
57 // - Tile marked for on-demand raster. 57 // - Tile marked for on-demand raster.
58 virtual void NotifyTileStateChanged(const Tile* tile) = 0; 58 virtual void NotifyTileStateChanged(const Tile* tile) = 0;
59 59
60 // Given an empty raster tile priority queue, this will build a priority queue 60 // Given an empty raster tile priority queue, this will build a priority queue
61 // that will return tiles in order in which they should be rasterized. 61 // that will return tiles in order in which they should be rasterized.
62 // Note if the queue was previous built, Reset must be called on it. 62 // Note if the queue was previous built, Reset must be called on it.
63 virtual void BuildRasterQueue(RasterTilePriorityQueue* queue, 63 virtual void BuildRasterQueue(RasterTilePriorityQueue* queue,
64 TreePriority tree_priority) = 0; 64 TreePriority tree_priority,
65 RasterTilePriorityQueue::Type type) = 0;
65 66
66 // Given an empty eviction tile priority queue, this will build a priority 67 // Given an empty eviction tile priority queue, this will build a priority
67 // queue that will return tiles in order in which they should be evicted. 68 // queue that will return tiles in order in which they should be evicted.
68 // Note if the queue was previous built, Reset must be called on it. 69 // Note if the queue was previous built, Reset must be called on it.
69 virtual void BuildEvictionQueue(EvictionTilePriorityQueue* queue, 70 virtual void BuildEvictionQueue(EvictionTilePriorityQueue* queue,
70 TreePriority tree_priority) = 0; 71 TreePriority tree_priority) = 0;
71 72
72 protected: 73 protected:
73 virtual ~TileManagerClient() {} 74 virtual ~TileManagerClient() {}
74 }; 75 };
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 309
309 bool did_notify_ready_to_activate_; 310 bool did_notify_ready_to_activate_;
310 bool did_notify_ready_to_draw_; 311 bool did_notify_ready_to_draw_;
311 312
312 DISALLOW_COPY_AND_ASSIGN(TileManager); 313 DISALLOW_COPY_AND_ASSIGN(TileManager);
313 }; 314 };
314 315
315 } // namespace cc 316 } // namespace cc
316 317
317 #endif // CC_RESOURCES_TILE_MANAGER_H_ 318 #endif // CC_RESOURCES_TILE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698