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

Issue 1493013002: cc: Force commit on the frame after a copy request (Closed)

Created:
5 years ago by ccameron
Modified:
5 years ago
Reviewers:
danakj, miu, enne (OOO)
CC:
chromium-reviews, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Force commit on the frame after a copy request This ensures that the next frame will remove any extra render surfaces that were created to handle the copy request. Persisting extra render surfaces would cause extra GPU work and prevent using overlays. BUG=564832 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/0d063c3894993a381e5f018092351172ccfb3b78 Cr-Commit-Position: refs/heads/master@{#363062}

Patch Set 1 #

Patch Set 2 : Update comments #

Total comments: 3

Patch Set 3 : Move to LayerTreeHost #

Total comments: 3

Patch Set 4 : Incorporate review feedback #

Patch Set 5 : s/CommitAndDrawFrame/Commit/g #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -6 lines) Patch
M cc/trees/layer_tree_host_impl.cc View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_copyrequest.cc View 1 2 3 4 7 chunks +78 lines, -6 lines 0 comments Download

Messages

Total messages: 25 (14 generated)
ccameron
Turned out to be simple enough. Not the most robust thing in the world, but ...
5 years ago (2015-12-02 20:20:06 UTC) #3
miu
One thing for consideration, but otherwise lgtm: https://codereview.chromium.org/1493013002/diff/20001/content/browser/compositor/delegated_frame_host.cc File content/browser/compositor/delegated_frame_host.cc (right): https://codereview.chromium.org/1493013002/diff/20001/content/browser/compositor/delegated_frame_host.cc#newcode1044 content/browser/compositor/delegated_frame_host.cc:1044: force_commit_for_next_frame_ = ...
5 years ago (2015-12-02 20:32:57 UTC) #5
danakj
Why is this in DelegatedFrameHost and not in LayerTreeHostImpl? Maybe somewhere like https://code.google.com/p/chromium/codesearch#chromium/src/cc/trees/layer_tree_host_impl.cc&l=1068 Like, this ...
5 years ago (2015-12-02 20:47:00 UTC) #7
ccameron
My concern there was that this would cause an extra frame whenever a copy request ...
5 years ago (2015-12-02 23:03:23 UTC) #9
danakj
Thx for the test. LGTM https://codereview.chromium.org/1493013002/diff/40001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/1493013002/diff/40001/cc/trees/layer_tree_host_impl.cc#newcode1072 cc/trees/layer_tree_host_impl.cc:1072: // web contents, which ...
5 years ago (2015-12-02 23:07:53 UTC) #10
miu
still lgtm, but you'll want to update the change description. https://codereview.chromium.org/1493013002/diff/20001/content/browser/compositor/delegated_frame_host.cc File content/browser/compositor/delegated_frame_host.cc (right): https://codereview.chromium.org/1493013002/diff/20001/content/browser/compositor/delegated_frame_host.cc#newcode1044 ...
5 years ago (2015-12-03 00:23:41 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1493013002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1493013002/60001
5 years ago (2015-12-03 09:14:15 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/104597)
5 years ago (2015-12-03 11:58:48 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1493013002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1493013002/80001
5 years ago (2015-12-03 20:39:49 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years ago (2015-12-03 21:19:01 UTC) #22
commit-bot: I haz the power
5 years ago (2015-12-03 21:21:11 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/0d063c3894993a381e5f018092351172ccfb3b78
Cr-Commit-Position: refs/heads/master@{#363062}

Powered by Google App Engine
This is Rietveld 408576698