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

Issue 605823002: cc: Activate when going invisible. (Closed)

Created:
6 years, 2 months ago by vmpstr
Modified:
6 years, 2 months ago
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

cc: Activate when going invisible. This patch ensures that we always activate when we become invisible. The reason being is that when we come back to being visible again, we don't need to rasterize both active and pending trees. We can just rasterize what used to be the pending tree. Since we set RequiresHighResToDraw on becoming visible, this also ensures that we don't checkerboard on becoming visible. BUG=410000, 417598 R=danakj, enne, brianderson Committed: https://crrev.com/6b968c06b3641d5cb45917039de447f8337edd4c Cr-Commit-Position: refs/heads/master@{#297303}

Patch Set 1 #

Total comments: 7

Patch Set 2 : update #

Total comments: 2

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -48 lines) Patch
M cc/scheduler/scheduler_state_machine.cc View 1 2 1 chunk +12 lines, -7 lines 0 comments Download
M cc/scheduler/scheduler_unittest.cc View 1 1 chunk +34 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 2 chunks +14 lines, -41 lines 0 comments Download

Messages

Total messages: 20 (3 generated)
vmpstr
PTAL. This ensures that we activate when becoming invisible and seems to fix the checkerboard ...
6 years, 2 months ago (2014-09-25 18:35:44 UTC) #1
danakj
https://codereview.chromium.org/605823002/diff/1/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/605823002/diff/1/cc/trees/layer_tree_host_unittest.cc#newcode5060 cc/trees/layer_tree_host_unittest.cc:5060: ++activation_count_; can you test that RequiresHighRes was true when ...
6 years, 2 months ago (2014-09-25 18:38:32 UTC) #2
danakj
https://codereview.chromium.org/605823002/diff/1/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/605823002/diff/1/cc/trees/layer_tree_host_unittest.cc#newcode5060 cc/trees/layer_tree_host_unittest.cc:5060: ++activation_count_; On 2014/09/25 18:38:32, danakj wrote: > can you ...
6 years, 2 months ago (2014-09-25 18:40:27 UTC) #3
brianderson
Can you add a test to scheduler_unittests.cc that tests the visibility behavior. You can probably ...
6 years, 2 months ago (2014-09-25 18:47:29 UTC) #4
vmpstr
PTAL https://codereview.chromium.org/605823002/diff/1/cc/scheduler/scheduler_state_machine.cc File cc/scheduler/scheduler_state_machine.cc (right): https://codereview.chromium.org/605823002/diff/1/cc/scheduler/scheduler_state_machine.cc#newcode289 cc/scheduler/scheduler_state_machine.cc:289: if (!visible_) On 2014/09/25 18:47:29, brianderson wrote: > ...
6 years, 2 months ago (2014-09-25 19:42:12 UTC) #5
brianderson
https://codereview.chromium.org/605823002/diff/20001/cc/scheduler/scheduler_state_machine.cc File cc/scheduler/scheduler_state_machine.cc (left): https://codereview.chromium.org/605823002/diff/20001/cc/scheduler/scheduler_state_machine.cc#oldcode287 cc/scheduler/scheduler_state_machine.cc:287: if (!can_draw_) Do we also set the high res ...
6 years, 2 months ago (2014-09-25 20:07:42 UTC) #6
danakj
https://codereview.chromium.org/605823002/diff/20001/cc/scheduler/scheduler_state_machine.cc File cc/scheduler/scheduler_state_machine.cc (left): https://codereview.chromium.org/605823002/diff/20001/cc/scheduler/scheduler_state_machine.cc#oldcode287 cc/scheduler/scheduler_state_machine.cc:287: if (!can_draw_) On 2014/09/25 20:07:42, brianderson wrote: > Do ...
6 years, 2 months ago (2014-09-25 20:16:07 UTC) #7
vmpstr
On 2014/09/25 20:16:07, danakj wrote: > https://codereview.chromium.org/605823002/diff/20001/cc/scheduler/scheduler_state_machine.cc > File cc/scheduler/scheduler_state_machine.cc (left): > > https://codereview.chromium.org/605823002/diff/20001/cc/scheduler/scheduler_state_machine.cc#oldcode287 > ...
6 years, 2 months ago (2014-09-25 21:59:36 UTC) #8
danakj
On Thu, Sep 25, 2014 at 5:59 PM, <vmpstr@chromium.org> wrote: > On 2014/09/25 20:16:07, danakj ...
6 years, 2 months ago (2014-09-25 22:02:25 UTC) #9
vmpstr
Filed crbug.com/417878. (ptal this one though :P)
6 years, 2 months ago (2014-09-25 22:05:46 UTC) #10
brianderson
lgtm
6 years, 2 months ago (2014-09-25 23:45:50 UTC) #11
danakj
LGTM
6 years, 2 months ago (2014-09-29 16:54:08 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/605823002/20001
6 years, 2 months ago (2014-09-29 16:57:12 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/72533) mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/61917) android_aosp ...
6 years, 2 months ago (2014-09-29 17:00:42 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/605823002/40001
6 years, 2 months ago (2014-09-29 18:00:25 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001) as ac0fceb1e4b1fcd74a69559de3083be4ef8fcfce
6 years, 2 months ago (2014-09-29 23:34:57 UTC) #19
commit-bot: I haz the power
6 years, 2 months ago (2014-09-29 23:35:54 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/6b968c06b3641d5cb45917039de447f8337edd4c
Cr-Commit-Position: refs/heads/master@{#297303}

Powered by Google App Engine
This is Rietveld 408576698