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

Side by Side Diff: cc/tile_manager.h

Issue 11575015: adding render stats for deferred image decoding (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 8 years 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 | « cc/rendering_stats.cc ('k') | 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 void ScheduleCheckForCompletedSetPixels(); 97 void ScheduleCheckForCompletedSetPixels();
98 void DispatchMoreTasks(); 98 void DispatchMoreTasks();
99 void DispatchOneRasterTask(RasterThread*, scoped_refptr<Tile>); 99 void DispatchOneRasterTask(RasterThread*, scoped_refptr<Tile>);
100 void OnRasterTaskCompleted( 100 void OnRasterTaskCompleted(
101 scoped_refptr<Tile>, 101 scoped_refptr<Tile>,
102 scoped_ptr<ResourcePool::Resource>, 102 scoped_ptr<ResourcePool::Resource>,
103 scoped_refptr<PicturePileImpl>, 103 scoped_refptr<PicturePileImpl>,
104 RenderingStats*); 104 RenderingStats*);
105 void DidFinishTileInitialization(Tile*); 105 void DidFinishTileInitialization(Tile*);
106 void DispatchImageDecodingTasksForTile(Tile*); 106 void DispatchImageDecodingTasksForTile(Tile*);
107 void OnImageDecodingTaskCompleted(scoped_refptr<Tile>, uint32_t); 107 void OnImageDecodingTaskCompleted(scoped_refptr<Tile>,
108 uint32_t,
109 RenderingStats*);
108 void DispatchOneImageDecodingTask( 110 void DispatchOneImageDecodingTask(
109 RasterThread*, scoped_refptr<Tile>, skia::LazyPixelRef*); 111 RasterThread*, scoped_refptr<Tile>, skia::LazyPixelRef*);
112 void GatherPixelRefsForFile(Tile*);
110 RasterThread* GetFreeRasterThread(); 113 RasterThread* GetFreeRasterThread();
111 114
112 TileManagerClient* client_; 115 TileManagerClient* client_;
113 scoped_ptr<ResourcePool> resource_pool_; 116 scoped_ptr<ResourcePool> resource_pool_;
114 bool manage_tiles_pending_; 117 bool manage_tiles_pending_;
115 bool check_for_completed_set_pixels_pending_; 118 bool check_for_completed_set_pixels_pending_;
116 119
117 GlobalStateThatImpactsTilePriority global_state_; 120 GlobalStateThatImpactsTilePriority global_state_;
118 121
119 typedef std::vector<Tile*> TileVector; 122 typedef std::vector<Tile*> TileVector;
(...skipping 15 matching lines...) Expand all
135 RasterThreadVector raster_threads_; 138 RasterThreadVector raster_threads_;
136 139
137 RenderingStats rendering_stats_; 140 RenderingStats rendering_stats_;
138 141
139 DISALLOW_COPY_AND_ASSIGN(TileManager); 142 DISALLOW_COPY_AND_ASSIGN(TileManager);
140 }; 143 };
141 144
142 } // namespace cc 145 } // namespace cc
143 146
144 #endif // CC_TILE_MANAGER_H_ 147 #endif // CC_TILE_MANAGER_H_
OLDNEW
« no previous file with comments | « cc/rendering_stats.cc ('k') | cc/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698