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

Issue 1489153002: DirectRenderer allows empty swap rects for CommitOverlayPlanes (Closed)

Created:
5 years ago by watk
Modified:
5 years ago
Reviewers:
ccameron, piman
CC:
chromium-reviews, darin-cc_chromium.org, cc-bugs_chromium.org, jam, kalyank_
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland: DirectRenderer allows empty swap rects for CommitOverlayPlanes Previously DirectRenderer would expand the damage rect to the full output when partial swap buffers was not supported, because it had to swap the whole buffer. Now, with the availability of CommitOverlayPlanes it's possible that the surface has capability "allow_empty_swap", which means swapping an empty rect is valid regardless of whether partial swap is available. The surface is responsible for translating an empty swap rect into a call to CommitOverlayPlanes. BUG=533630 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/c7589a8de1e21cc5a02279ddffe945af1409a655 Cr-Commit-Position: refs/heads/master@{#363106}

Patch Set 1 #

Patch Set 2 : Fix tests #

Total comments: 4

Patch Set 3 : piman's comment #

Total comments: 1

Patch Set 4 : rebase only #

Patch Set 5 : Initialize allow_empty_swap #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -16 lines) Patch
M cc/output/direct_renderer.cc View 3 chunks +12 lines, -6 lines 0 comments Download
M cc/output/gl_renderer.cc View 1 2 2 chunks +9 lines, -4 lines 0 comments Download
M cc/output/overlay_unittest.cc View 1 2 chunks +35 lines, -1 line 0 comments Download
M cc/output/renderer.h View 1 chunk +3 lines, -0 lines 0 comments Download
M cc/output/renderer.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M cc/test/test_web_graphics_context_3d.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 1 chunk +7 lines, -3 lines 0 comments Download

Messages

Total messages: 39 (18 generated)
watk
Hi ccameron, piman, kalyan. This CL is the evolution of https://codereview.chromium.org/1454323002/ but using CommitOverlayPlanes. PTAL ...
5 years ago (2015-12-02 01:05:01 UTC) #5
piman
LGTM + nit https://codereview.chromium.org/1489153002/diff/20001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/1489153002/diff/20001/cc/output/gl_renderer.cc#newcode2628 cc/output/gl_renderer.cc:2628: compositor_frame.gl_frame_data->sub_buffer_rect = swap_buffer_rect_ = nit: only ...
5 years ago (2015-12-02 01:23:05 UTC) #6
watk
Thanks! https://codereview.chromium.org/1489153002/diff/20001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/1489153002/diff/20001/cc/output/gl_renderer.cc#newcode2628 cc/output/gl_renderer.cc:2628: compositor_frame.gl_frame_data->sub_buffer_rect = swap_buffer_rect_ = On 2015/12/02 01:23:05, piman ...
5 years ago (2015-12-02 19:02:46 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1489153002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1489153002/40001
5 years ago (2015-12-02 19:06:40 UTC) #10
commit-bot: I haz the power
All required reviewers (with asterisk prefixes) have not yet approved this CL. No L-G-T-M from ...
5 years ago (2015-12-02 19:06:42 UTC) #12
watk
Oh, I forgot I starred you ccameron. I would appreciate if you could take a ...
5 years ago (2015-12-02 19:16:44 UTC) #13
ccameron
This lgtm -- I'll probably look at using this for Mac as well.
5 years ago (2015-12-02 21:10:42 UTC) #14
watk
On 2015/12/02 21:10:42, ccameron wrote: > This lgtm -- I'll probably look at using this ...
5 years ago (2015-12-02 21:13:33 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1489153002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1489153002/40001
5 years ago (2015-12-02 21:15:05 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years ago (2015-12-02 22:54:34 UTC) #19
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/581da2687c9e3031d07f2e0c28e32283b9b3e770 Cr-Commit-Position: refs/heads/master@{#362812}
5 years ago (2015-12-02 23:04:42 UTC) #21
watk
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/1491013005/ by watk@chromium.org. ...
5 years ago (2015-12-03 22:38:39 UTC) #22
piman
https://codereview.chromium.org/1489153002/diff/40001/cc/output/renderer.h File cc/output/renderer.h (right): https://codereview.chromium.org/1489153002/diff/40001/cc/output/renderer.h#newcode39 cc/output/renderer.h:39: bool allow_empty_swap; New field needs new initializer.
5 years ago (2015-12-03 22:51:23 UTC) #23
watk
On 2015/12/03 22:51:23, piman (slow to review) wrote: > https://codereview.chromium.org/1489153002/diff/40001/cc/output/renderer.h > File cc/output/renderer.h (right): > ...
5 years ago (2015-12-03 23:03:03 UTC) #24
watk
Added the fix to initialize allow_empty_swap.
5 years ago (2015-12-03 23:32:35 UTC) #27
piman
lgtm
5 years ago (2015-12-03 23:33:42 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1489153002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1489153002/80001
5 years ago (2015-12-03 23:40:10 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) android_chromium_gn_compile_dbg on ...
5 years ago (2015-12-04 01:40:17 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1489153002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1489153002/80001
5 years ago (2015-12-04 01:46:12 UTC) #35
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years ago (2015-12-04 03:49:09 UTC) #37
commit-bot: I haz the power
5 years ago (2015-12-04 03:50:07 UTC) #39
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c7589a8de1e21cc5a02279ddffe945af1409a655
Cr-Commit-Position: refs/heads/master@{#363106}

Powered by Google App Engine
This is Rietveld 408576698