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

Issue 2822493003: cc: Create raster tasks in AssignGpuMemoryToTiles. (Closed)

Created:
3 years, 8 months ago by Khushal
Modified:
3 years, 8 months ago
Reviewers:
vmpstr
CC:
chromium-reviews, cc-bugs_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Create raster tasks in AssignGpuMemoryToTiles. Currently the raster task creation is done in TileManager::ScheduleTasks, which is after all the prioritized work has been created in AssignGpuMemoryToTiles. In order to align the prioritization of images decoded by the CheckerImageTracker, we need to create a decode queue for images decoded by the tracker as we iterate through the tiles in raster priority order. This is done in AssignGpuMemoryToTiles. In the case of checker-imaged tiles, we don't need to add them to tiles_to_raster since they have a valid resource. But we do need to decode images currently being checkered on them. Since the priorities for checker-imaged tiles and tiles requiring raster are interleaved, the analysis for images and building of the decode queue needs to be done during the iteration for all tiles. This change moves raster task creation, where the image analysis is performed, from ScheduleTasks to AssignGpuMemoryToTiles. Since ScheduleTasks only iterates through tiles_to_raster while AssignGpuMemoryToTiles will iterate through both, tiles requiring raster and checker-imaged tiles. BUG=689184 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2822493003 Cr-Commit-Position: refs/heads/master@{#464792} Committed: https://chromium.googlesource.com/chromium/src/+/757e34b1e982b37a0333c87b3cd4184bd712c5b5

Patch Set 1 #

Total comments: 1

Patch Set 2 : disabled-by-default #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -5 lines) Patch
M cc/tiles/tile_manager.cc View 1 4 chunks +13 lines, -5 lines 0 comments Download

Messages

Total messages: 14 (10 generated)
Khushal
3 years, 8 months ago (2017-04-14 02:31:59 UTC) #4
vmpstr
lgtm https://codereview.chromium.org/2822493003/diff/1/cc/tiles/tile_manager.cc File cc/tiles/tile_manager.cc (right): https://codereview.chromium.org/2822493003/diff/1/cc/tiles/tile_manager.cc#newcode946 cc/tiles/tile_manager.cc:946: TRACE_EVENT0("cc", "TileManager::CreateRasterTask"); Can you make this disabled by ...
3 years, 8 months ago (2017-04-14 18:25:59 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2822493003/20001
3 years, 8 months ago (2017-04-14 19:12:01 UTC) #11
commit-bot: I haz the power
3 years, 8 months ago (2017-04-14 21:00:04 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/757e34b1e982b37a0333c87b3cd4...

Powered by Google App Engine
This is Rietveld 408576698