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

Issue 1239843002: cc: Call PrepareTiles when becoming visible in browser only. (Closed)

Created:
5 years, 5 months ago by sunnyps
Modified:
5 years, 5 months ago
Reviewers:
danakj, brianderson
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Call PrepareTiles when becoming visible in browser only. Calling PrepareTiles on each visibility change might have caused a v8 idle time benchmark regression. We only need to call PrepareTiles for the SingleThreadProxy wait for ready to draw mode. R=brianderson@chromium.org,danakj@chromium.org TEST=LayerTreeHostTestReadyToDrawVisibility BUG=499040 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/c67e9d831fa3753fc5434229d3275b1c0155edae Cr-Commit-Position: refs/heads/master@{#339201}

Patch Set 1 #

Patch Set 2 : Add test #

Total comments: 4

Patch Set 3 : brianderson's review #

Patch Set 4 : Fix compile error - size_t infects everything! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -5 lines) Patch
M cc/trees/layer_tree_host_impl.cc View 1 chunk +3 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download
M cc/trees/single_thread_proxy.cc View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (6 generated)
sunnyps
PTAL
5 years, 5 months ago (2015-07-15 18:14:57 UTC) #1
sunnyps
Please ignore for now - I want to add a better test for this.
5 years, 5 months ago (2015-07-15 18:26:13 UTC) #2
sunnyps
PTAL Added a LayerTreeTest which fails without the extra PrepareTiles call
5 years, 5 months ago (2015-07-16 21:28:45 UTC) #3
brianderson
lgtm https://codereview.chromium.org/1239843002/diff/20001/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/1239843002/diff/20001/cc/trees/layer_tree_host_unittest.cc#newcode275 cc/trees/layer_tree_host_unittest.cc:275: class LayerTreeHostTestReadyToDrawVisibility Can you add a comment explaining ...
5 years, 5 months ago (2015-07-16 22:36:14 UTC) #4
sunnyps
https://codereview.chromium.org/1239843002/diff/20001/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/1239843002/diff/20001/cc/trees/layer_tree_host_unittest.cc#newcode275 cc/trees/layer_tree_host_unittest.cc:275: class LayerTreeHostTestReadyToDrawVisibility On 2015/07/16 22:36:14, brianderson wrote: > Can ...
5 years, 5 months ago (2015-07-16 22:51:44 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1239843002/40001
5 years, 5 months ago (2015-07-16 22:55:18 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1239843002/60001
5 years, 5 months ago (2015-07-16 23:35:36 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/74893)
5 years, 5 months ago (2015-07-17 00:09:38 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1239843002/60001
5 years, 5 months ago (2015-07-17 01:21:56 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 5 months ago (2015-07-17 02:02:24 UTC) #16
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/c67e9d831fa3753fc5434229d3275b1c0155edae Cr-Commit-Position: refs/heads/master@{#339201}
5 years, 5 months ago (2015-07-17 02:03:21 UTC) #17
Jeffrey Yasskin
5 years, 5 months ago (2015-07-20 19:05:35 UTC) #18
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/1239363003/ by jyasskin@chromium.org.

The reason for reverting is: LayerTreeHostTestReadyToDrawVisibility times out
under DrMemory:
http://build.chromium.org/p/chromium.memory.fyi/builders/Windows%20Unit%20%28...

[----------] 2 tests from LayerTreeHostTestReadyToDrawVisibility
[ RUN      ]
LayerTreeHostTestReadyToDrawVisibility.RunSingleThread_DirectRenderer
c:\b\build\slave\drm-cr\build\src\cc\test\layer_tree_test.cc(875): error: Failed
Test timed out
[  FAILED  ]
LayerTreeHostTestReadyToDrawVisibility.RunSingleThread_DirectRenderer (5044 ms)
[ RUN      ]
LayerTreeHostTestReadyToDrawVisibility.RunSingleThread_DelegatingRenderer
c:\b\build\slave\drm-cr\build\src\cc\test\layer_tree_test.cc(875): error: Failed
Test timed out
[  FAILED  ]
LayerTreeHostTestReadyToDrawVisibility.RunSingleThread_DelegatingRenderer (5244
ms)
[----------] 2 tests from LayerTreeHostTestReadyToDrawVisibility (10292 ms
total).

Powered by Google App Engine
This is Rietveld 408576698