New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 819430 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 1
Type: Bug

Blocking:
issue 817973



Sign in to add a comment

Allow pending draws to block commit for synchronous compositor

Project Member Reported by jamwalla@chromium.org, Mar 7 2018

Issue description

In crrev.com/1092123005, we set active_tree_needs_first_draw_ to false on invalidate so that it won't block commits. This was because the synchronous compositor did not guarantee that a draw will happen after an invalidate.

If we undo the above (don't change active_tree_needs_first_draw_ on invalidate), fallback tick handling (crrev.com/1782093002) gurantees that we *will* still have draw after invalidate.

So, remove https://cs.chromium.org/chromium/src/cc/scheduler/scheduler_state_machine.cc?sq=package:chromium&l=917 and the associated test: SchedulerTest.SynchronousCompositorDoubleCommitWithoutDraw
 

Comment 1 by boliu@chromium.org, Mar 7 2018

Cc: vmi...@chromium.org
cc vmiura. Should fix the main frame going faster than draw issue in webview discussed here: https://bugs.chromium.org/p/chromium/issues/detail?id=811584#c26

As well as part of the problem of why the damage check test is flaking:  crbug.com/817973 
Blocking: 817973
Labels: -Pri-3 Pri-1
Project Member

Comment 3 by bugdroid1@chromium.org, Mar 9 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/989dd34c86ee3a462c467d0c4200faa9046fa496

commit 989dd34c86ee3a462c467d0c4200faa9046fa496
Author: James Wallace-Lee <jamwalla@chromium.org>
Date: Fri Mar 09 20:57:17 2018

Don't set active_tree_needs_first_draw_ on invalidate

active_tree_needs_first_draw_ was set to false on invalidate so that it
wouldn't block commits. Instead, fallback tick handling guarantees that
every activated frame has a draw. This CL removes the change along with
its associated test (introduced in crrev.com/1092123005).

Bug:  819430 
Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel
Change-Id: Ibf6008512638943b7caa771f7ca6a953851607d6
Reviewed-on: https://chromium-review.googlesource.com/953208
Reviewed-by: Sunny Sachanandani <sunnyps@chromium.org>
Commit-Queue: James Wallace-Lee <jamwalla@chromium.org>
Cr-Commit-Position: refs/heads/master@{#542216}
[modify] https://crrev.com/989dd34c86ee3a462c467d0c4200faa9046fa496/cc/scheduler/scheduler_state_machine.cc
[modify] https://crrev.com/989dd34c86ee3a462c467d0c4200faa9046fa496/cc/scheduler/scheduler_unittest.cc

Comment 4 by boliu@chromium.org, Mar 12 2018

Status: Fixed (was: Assigned)
done, I guess

presumably wall of perf alerts hasn't been filed yet though

Sign in to add a comment