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

Issue 99873007: cc: Simplify raster task completion notification logic (Closed)

Created:
7 years ago by Sami
Modified:
6 years, 11 months ago
Reviewers:
reveman
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

cc: Simplify raster task completion notification logic (Relanding after missing activation bug fixed in https://codereview.chromium.org/131763003/) Previously the pixel buffer raster worker pool used a combination of polling and explicit notifications from the raster worker pool to decide when to tell the client about the completion of 1) all tasks or 2) the subset of tasks required for activation. This patch simplifies the logic by only triggering the notification based on the OnRasterTasksFinished and OnRasterTasksRequiredForActivationFinished calls from the worker pool. BUG=307841, 331534 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243991

Patch Set 1 #

Total comments: 4

Patch Set 2 : Simplify the simplification #

Patch Set 3 : Don't reset pending task flag when getting throttled. #

Patch Set 4 : Rebased. #

Patch Set 5 : Fix for activation hang. #

Patch Set 6 : Split off the bugfix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -1 line) Patch
M cc/resources/pixel_buffer_raster_worker_pool.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cc/resources/pixel_buffer_raster_worker_pool.cc View 1 2 3 4 5 6 chunks +9 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
Sami
PTAL. As a follow-up I was thinking we could completely eliminate the raster thread round ...
7 years ago (2013-12-13 21:17:11 UTC) #1
reveman
https://codereview.chromium.org/99873007/diff/1/cc/resources/pixel_buffer_raster_worker_pool.cc File cc/resources/pixel_buffer_raster_worker_pool.cc (right): https://codereview.chromium.org/99873007/diff/1/cc/resources/pixel_buffer_raster_worker_pool.cc#newcode258 cc/resources/pixel_buffer_raster_worker_pool.cc:258: client()->DidFinishRunningTasks(); Hm, what happens if CheckForCompletedRasterTasks() returns TASKS_PENDING because ...
7 years ago (2013-12-14 04:31:01 UTC) #2
Sami
https://codereview.chromium.org/99873007/diff/1/cc/resources/pixel_buffer_raster_worker_pool.cc File cc/resources/pixel_buffer_raster_worker_pool.cc (right): https://codereview.chromium.org/99873007/diff/1/cc/resources/pixel_buffer_raster_worker_pool.cc#newcode258 cc/resources/pixel_buffer_raster_worker_pool.cc:258: client()->DidFinishRunningTasks(); On 2013/12/14 04:31:01, David Reveman wrote: > Hm, ...
7 years ago (2013-12-17 16:27:38 UTC) #3
reveman
lgtm, thanks for making this a bit more consistent. https://codereview.chromium.org/99873007/diff/1/cc/resources/pixel_buffer_raster_worker_pool.cc File cc/resources/pixel_buffer_raster_worker_pool.cc (right): https://codereview.chromium.org/99873007/diff/1/cc/resources/pixel_buffer_raster_worker_pool.cc#newcode258 cc/resources/pixel_buffer_raster_worker_pool.cc:258: ...
7 years ago (2013-12-17 20:46:24 UTC) #4
Sami
https://codereview.chromium.org/99873007/diff/1/cc/resources/pixel_buffer_raster_worker_pool.cc File cc/resources/pixel_buffer_raster_worker_pool.cc (right): https://codereview.chromium.org/99873007/diff/1/cc/resources/pixel_buffer_raster_worker_pool.cc#newcode258 cc/resources/pixel_buffer_raster_worker_pool.cc:258: client()->DidFinishRunningTasks(); On 2013/12/17 20:46:25, David Reveman wrote: > The ...
7 years ago (2013-12-18 12:05:05 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/99873007/40001
7 years ago (2013-12-18 12:05:45 UTC) #6
commit-bot: I haz the power
Change committed as 241569
7 years ago (2013-12-18 14:45:00 UTC) #7
Sami
Here's the original patch with a fix and a test for the freezing bug (crbug.com/331534). ...
6 years, 11 months ago (2014-01-09 13:15:21 UTC) #8
Sami
Split off the bugfix to https://codereview.chromium.org/131763003/
6 years, 11 months ago (2014-01-09 18:00:48 UTC) #9
reveman
lgtm
6 years, 11 months ago (2014-01-09 18:02:47 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/99873007/150001
6 years, 11 months ago (2014-01-09 20:32:53 UTC) #11
commit-bot: I haz the power
6 years, 11 months ago (2014-01-09 22:11:08 UTC) #12
Message was sent while issue was closed.
Change committed as 243991

Powered by Google App Engine
This is Rietveld 408576698