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

Side by Side Diff: cc/tile_manager.h

Issue 11879007: cc: Move tile sorting into separate function and add trace event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/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_TILE_MANAGER_H_ 5 #ifndef CC_TILE_MANAGER_H_
6 #define CC_TILE_MANAGER_H_ 6 #define CC_TILE_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <queue> 9 #include <queue>
10 #include <vector> 10 #include <vector>
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 protected: 92 protected:
93 // Methods called by Tile 93 // Methods called by Tile
94 friend class Tile; 94 friend class Tile;
95 void RegisterTile(Tile* tile); 95 void RegisterTile(Tile* tile);
96 void UnregisterTile(Tile* tile); 96 void UnregisterTile(Tile* tile);
97 void WillModifyTilePriority( 97 void WillModifyTilePriority(
98 Tile* tile, WhichTree tree, const TilePriority& new_priority); 98 Tile* tile, WhichTree tree, const TilePriority& new_priority);
99 99
100 private: 100 private:
101 void SortTiles();
101 void AssignGpuMemoryToTiles(); 102 void AssignGpuMemoryToTiles();
102 void FreeResourcesForTile(Tile* tile); 103 void FreeResourcesForTile(Tile* tile);
103 void ScheduleManageTiles(); 104 void ScheduleManageTiles();
104 void DispatchMoreTasks(); 105 void DispatchMoreTasks();
105 void GatherPixelRefsForTile(Tile* tile); 106 void GatherPixelRefsForTile(Tile* tile);
106 void DispatchImageDecodeTasksForTile(Tile* tile); 107 void DispatchImageDecodeTasksForTile(Tile* tile);
107 void DispatchOneImageDecodeTask( 108 void DispatchOneImageDecodeTask(
108 scoped_refptr<Tile> tile, skia::LazyPixelRef* pixel_ref); 109 scoped_refptr<Tile> tile, skia::LazyPixelRef* pixel_ref);
109 void OnImageDecodeTaskCompleted( 110 void OnImageDecodeTaskCompleted(
110 scoped_refptr<Tile> tile, uint32_t pixel_ref_id); 111 scoped_refptr<Tile> tile, uint32_t pixel_ref_id);
(...skipping 28 matching lines...) Expand all
139 TileQueue tiles_with_pending_set_pixels_; 140 TileQueue tiles_with_pending_set_pixels_;
140 141
141 RenderingStats rendering_stats_; 142 RenderingStats rendering_stats_;
142 143
143 DISALLOW_COPY_AND_ASSIGN(TileManager); 144 DISALLOW_COPY_AND_ASSIGN(TileManager);
144 }; 145 };
145 146
146 } // namespace cc 147 } // namespace cc
147 148
148 #endif // CC_TILE_MANAGER_H_ 149 #endif // CC_TILE_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698