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

Unified Diff: cc/tiles/tile_manager.h

Issue 2726343004: cc: Optimize decode scheduling for checker-images. (Closed)
Patch Set: .. Created 3 years, 9 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/tiles/tile_manager.h
diff --git a/cc/tiles/tile_manager.h b/cc/tiles/tile_manager.h
index 5de0a15485a61a511906fa1552354f07d906643d..31007fc6b02db97d485cba57a84e357da8ac7297 100644
--- a/cc/tiles/tile_manager.h
+++ b/cc/tiles/tile_manager.h
@@ -282,7 +282,8 @@ class CC_EXPORT TileManager : CheckerImageTrackerClient {
void FreeResourcesForTileAndNotifyClientIfTileWasReadyToDraw(Tile* tile);
scoped_refptr<TileTask> CreateRasterTask(
const PrioritizedTile& prioritized_tile,
- const gfx::ColorSpace& color_space);
+ const gfx::ColorSpace& color_space,
+ CheckerImageTracker::ImageDecodeQueue* checker_image_decode_queue);
std::unique_ptr<EvictionTilePriorityQueue>
FreeTileResourcesUntilUsageIsWithinLimit(
@@ -314,6 +315,13 @@ class CC_EXPORT TileManager : CheckerImageTrackerClient {
PrioritizedWorkToSchedule AssignGpuMemoryToTiles();
void ScheduleTasks(const PrioritizedWorkToSchedule& work_to_schedule);
+ void FilterImagesForCheckering(
vmpstr 2017/03/29 19:11:46 This needs a comment explaining what each paramete
Khushal 2017/03/31 04:31:01 The function was killed.
+ WhichTree tree,
+ const std::vector<DrawImage>& images_in_tile,
+ std::vector<DrawImage>* images_to_decode_for_raster,
vmpstr 2017/03/29 19:11:46 just images_to_decode is enough I think.
+ ImageIdFlatSet* checkered_images,
+ CheckerImageTracker::ImageDecodeQueue* image_decode_queue);
+
std::unique_ptr<base::trace_event::ConvertableToTraceFormat>
ScheduledTasksStateAsValue() const;

Powered by Google App Engine
This is Rietveld 408576698