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

Unified Diff: cc/tile_manager.h

Issue 12194015: cc: Rasterize cheap tiles immediately (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Schedule cheap tasks in worker pool. 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 side-by-side diff with in-line comments
Download patch
Index: cc/tile_manager.h
diff --git a/cc/tile_manager.h b/cc/tile_manager.h
index 6e42f75bee75d49f48d65720cabd7eb8a46e4a37..80ed08a559f8b682b37b76ea32c1a67031a99f27 100644
--- a/cc/tile_manager.h
+++ b/cc/tile_manager.h
@@ -111,6 +111,7 @@ class CC_EXPORT TileManager {
void ManageTiles();
void CheckForCompletedTileUploads();
void AbortPendingTileUploads();
+ void DidCompleteFrame();
scoped_ptr<base::Value> BasicStateAsValue() const;
scoped_ptr<base::Value> AllTilesAsValue() const;
@@ -152,10 +153,9 @@ class CC_EXPORT TileManager {
scoped_refptr<Tile> tile, skia::LazyPixelRef* pixel_ref);
void OnImageDecodeTaskCompleted(
scoped_refptr<Tile> tile, uint32_t pixel_ref_id);
- bool CanDispatchRasterTask(Tile* tile);
+ bool CanDispatchRasterTask(Tile* tile) const;
scoped_ptr<ResourcePool::Resource> PrepareTileForRaster(Tile* tile);
void DispatchOneRasterTask(scoped_refptr<Tile> tile);
- void PerformOneRaster(Tile* tile);
void OnRasterCompleted(
scoped_refptr<Tile> tile,
scoped_ptr<ResourcePool::Resource> resource,
@@ -177,7 +177,7 @@ class CC_EXPORT TileManager {
bool use_cheapness_estimator,
PicturePileImpl* picture_pile,
RenderingStats* stats);
- static void RunImageDecodeTask(skia::LazyPixelRef* pixel_ref,
+ static void PerformImageDecode(skia::LazyPixelRef* pixel_ref,
RenderingStats* stats);
static void RecordCheapnessPredictorResults(bool is_predicted_cheap,

Powered by Google App Engine
This is Rietveld 408576698