Descriptioncc: 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
Committed: https://crrev.com/06e1561a832083330a193743a427b1354ab3cd39
Cr-Commit-Position: refs/heads/master@{#396218}
Patch Set 1 : wip #
Total comments: 4
Patch Set 2 : wip - feedback #Patch Set 3 : wip - fixed few unit tests #
Total comments: 2
Patch Set 4 : wip - fixed perf tests #Patch Set 5 : wip - fixed few unit tests #Patch Set 6 : nits #
Total comments: 2
Patch Set 7 : nits #Patch Set 8 : rebase #Patch Set 9 : nits #
Total comments: 1
Patch Set 10 : fixed build break #Patch Set 11 : fixed broken tile manager tests #Patch Set 12 : nits #Patch Set 13 : fixed broken pixel resource tests #Patch Set 14 : remove ScheduleOnOriginThread() #Patch Set 15 : removed CompleteOnOriginThread() #Patch Set 16 : fixed unittests #Patch Set 17 : fixed perf_tests #Patch Set 18 : nits #
Total comments: 19
Patch Set 19 : feedback #Patch Set 20 : corrections #Patch Set 21 : nits #
Total comments: 6
Patch Set 22 : feedback #Patch Set 23 : fixed bug 613529 #
Total comments: 17
Patch Set 24 : feedback #Patch Set 25 : rebase #
Total comments: 3
Patch Set 26 : feedback #
Total comments: 1
Patch Set 27 : nits #Patch Set 28 : nits #Depends on Patchset: Messages
Total messages: 97 (28 generated)
|