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

Side by Side Diff: cc/tile_manager.h

Issue 12088110: HACK: Rasterize tiles immediately if there are only a few of them (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 void FreeResourcesForTile(Tile* tile); 125 void FreeResourcesForTile(Tile* tile);
126 void ScheduleManageTiles(); 126 void ScheduleManageTiles();
127 void DispatchMoreTasks(); 127 void DispatchMoreTasks();
128 void GatherPixelRefsForTile(Tile* tile); 128 void GatherPixelRefsForTile(Tile* tile);
129 void DispatchImageDecodeTasksForTile(Tile* tile); 129 void DispatchImageDecodeTasksForTile(Tile* tile);
130 void DispatchOneImageDecodeTask( 130 void DispatchOneImageDecodeTask(
131 scoped_refptr<Tile> tile, skia::LazyPixelRef* pixel_ref); 131 scoped_refptr<Tile> tile, skia::LazyPixelRef* pixel_ref);
132 void OnImageDecodeTaskCompleted( 132 void OnImageDecodeTaskCompleted(
133 scoped_refptr<Tile> tile, uint32_t pixel_ref_id); 133 scoped_refptr<Tile> tile, uint32_t pixel_ref_id);
134 bool CanDispatchRasterTask(Tile* tile); 134 bool CanDispatchRasterTask(Tile* tile);
135 void DispatchOneRasterTask(scoped_refptr<Tile> tile); 135 void DispatchOneRasterTask(scoped_refptr<Tile> tile, bool immediate);
136 void OnRasterTaskCompleted( 136 void OnRasterTaskCompleted(
137 scoped_refptr<Tile> tile, 137 scoped_refptr<Tile> tile,
138 scoped_ptr<ResourcePool::Resource> resource, 138 scoped_ptr<ResourcePool::Resource> resource,
139 int manage_tiles_call_count_when_dispatched); 139 int manage_tiles_call_count_when_dispatched,
140 bool dispatch_more);
140 void DidFinishTileInitialization(Tile* tile); 141 void DidFinishTileInitialization(Tile* tile);
141 void DidTileRasterStateChange(Tile* tile, TileRasterState state); 142 void DidTileRasterStateChange(Tile* tile, TileRasterState state);
142 void DidTileBinChange(Tile* tile, 143 void DidTileBinChange(Tile* tile,
143 TileManagerBin bin, 144 TileManagerBin bin,
144 WhichTree tree); 145 WhichTree tree);
145 scoped_ptr<Value> GetMemoryRequirementsAsValue() const; 146 scoped_ptr<Value> GetMemoryRequirementsAsValue() const;
146 147
147 static void RunRasterTask(uint8* buffer, 148 static void RunRasterTask(uint8* buffer,
148 const gfx::Rect& rect, 149 const gfx::Rect& rect,
149 float contents_scale, 150 float contents_scale,
(...skipping 30 matching lines...) Expand all
180 RenderingStats rendering_stats_; 181 RenderingStats rendering_stats_;
181 182
182 int raster_state_count_[NUM_STATES][NUM_TREES][NUM_BINS]; 183 int raster_state_count_[NUM_STATES][NUM_TREES][NUM_BINS];
183 184
184 DISALLOW_COPY_AND_ASSIGN(TileManager); 185 DISALLOW_COPY_AND_ASSIGN(TileManager);
185 }; 186 };
186 187
187 } // namespace cc 188 } // namespace cc
188 189
189 #endif // CC_TILE_MANAGER_H_ 190 #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