forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cc: Remove ScheduleOnOriginThread() and CompleteOnOriginThread().
The task's job is performed in RunOnWorkerThread() and schedule or complete are not needed as a part of task's job. Those are the responsibilities of task's owner (TileManager - compositor thread). This patch removes following functions which were basically needed for async upload. Now raster buffer is provided to task at the time of ctor and functionality of CompleteOnOriginThread() is moved to task's owner. ScheduleOnOriginThread() CompleteOnOriginThread() New OnTaskCompleted() function calls corresponding function of task owner. This patch implements following life cycle for the task. 1. Task's owner creates task with all needed info on origin thread. 2. Task is scheduled and run on worker thread. 3. Completed task is processed on origin thread by task owner. 4. Task is destroyed. This patch also fixes few task related failing cc_perftests (607818). BUG=499372, 599863, 607818, 613529 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review-Url: https://codereview.chromium.org/1866043006 Cr-Commit-Position: refs/heads/master@{#396218}
- Loading branch information
1 parent
f9aecef
commit 06e1561
Showing
20 changed files
with
273 additions
and
329 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.