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

Issue 2583083002: Early return in {Suspend,Resume}Renderer() if not backgrounded (Closed)

Created:
4 years ago by bashi
Modified:
4 years ago
Reviewers:
haraken, tasak, Sami
CC:
chromium-reviews, blink-reviews, scheduler-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Early return in {Suspend,Resume}Renderer() if not backgrounded After crrev.com/2564833002, RenderThreadImpl calls SuspendRenderer() and ResumeRenderer() unconditionally. This could cause assertion failures when the renderer isn't backgrounded. Rather than reverting crrev.com/2564833002, do early return when not backgrounded because having multiple flags to check whether a renderer is suspended doesn't sound a good idea. BUG=674784 Committed: https://crrev.com/0a7c6fb8848b1a0100cbafae461a143eb2c83362 Cr-Commit-Position: refs/heads/master@{#439436}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
M third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc View 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
bashi
PTAL
4 years ago (2016-12-19 07:30:24 UTC) #4
haraken
LGTM
4 years ago (2016-12-19 07:32:18 UTC) #5
bashi
I'm going to submit this. Sami, please let me know if you have concerns and/or ...
4 years ago (2016-12-19 08:47:31 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/2583083002/1
4 years ago (2016-12-19 08:47:48 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-19 08:52:01 UTC) #13
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/0a7c6fb8848b1a0100cbafae461a143eb2c83362 Cr-Commit-Position: refs/heads/master@{#439436}
4 years ago (2016-12-19 08:54:08 UTC) #15
Sami
lgtm, thanks for the fix. My only wish would have been a small test case ...
4 years ago (2016-12-19 10:47:49 UTC) #16
bashi
4 years ago (2016-12-20 00:58:17 UTC) #17
Message was sent while issue was closed.
On 2016/12/19 10:47:49, Sami wrote:
> lgtm, thanks for the fix. My only wish would have been a small test case to go
> with it :)
Definitely I should have added tests. Uploaded a follow-up CL.
https://codereview.chromium.org/2583193003
> 
> At some point we might want to turn these bits into an explicit state machine
> with better defined transitions to make it obvious how the various modes are
> related.

Powered by Google App Engine
This is Rietveld 408576698