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

Issue 2162083005: Use surface copy requests for layout tests. (Closed)

Created:
4 years, 5 months ago by jbroman
Modified:
4 years, 4 months ago
Reviewers:
danakj, piman, enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews, darin-cc_chromium.org, jam, jochen+watch_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use surface copy requests for layout tests. This replaces the CopyOutputRequest on the root layer in RenderWidgetCompositor::compositeAndReadbackAsync with one on the cc::Surface. This allows Blink to remain ignorant of copy requests, even in Slimming Paint v2, when it builds its own property trees (where copy requests are passed today). BUG=630691 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_blink_rel,mac_blink_rel,win_blink_rel Committed: https://crrev.com/6ccbc7d47b41c05863cce3c0762d21dd406316c7 Cr-Commit-Position: refs/heads/master@{#408043}

Patch Set 1 #

Patch Set 2 : \ #

Patch Set 3 : fix for popups, debugging logging #

Patch Set 4 : merge with origin/master #

Patch Set 5 : trim out old code that makes msvc sad #

Patch Set 6 : things seem to work; check before cleanup #

Patch Set 7 : remove logging #

Patch Set 8 : remove DCHECK left over from debugging #

Total comments: 14

Patch Set 9 : danakj nits, inc. using raw ptr #

Total comments: 6

Patch Set 10 : danakj nits #

Total comments: 3

Patch Set 11 : piman comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -21 lines) Patch
M cc/test/test_delegating_output_surface.h View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -0 lines 0 comments Download
M cc/test/test_delegating_output_surface.cc View 1 2 3 4 5 6 7 8 3 chunks +14 lines, -1 line 0 comments Download
M content/renderer/gpu/render_widget_compositor.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +16 lines, -17 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor_delegate.h View 2 chunks +7 lines, -0 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor_unittest.cc View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M content/renderer/layout_test_dependencies.h View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +10 lines, -1 line 0 comments Download
M content/renderer/render_widget.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 6 7 2 chunks +7 lines, -0 lines 0 comments Download
M content/test/layouttest_support.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +70 lines, -1 line 0 comments Download

Messages

Total messages: 66 (52 generated)
jbroman
If this LGTY, I'll ask a content/ owner (probably piman) to review as well. The ...
4 years, 5 months ago (2016-07-22 18:52:50 UTC) #37
danakj
This approach looks great! A few questions, and I think I suggested the WeakPtr thing, ...
4 years, 5 months ago (2016-07-22 20:50:27 UTC) #40
jbroman
Seems fine locally, assuming the bots agree. PTAL and check that I've addressed your concerns ...
4 years, 5 months ago (2016-07-25 18:50:55 UTC) #43
danakj
LGTM https://codereview.chromium.org/2162083005/diff/160001/content/test/layouttest_support.cc File content/test/layouttest_support.cc (right): https://codereview.chromium.org/2162083005/diff/160001/content/test/layouttest_support.cc#newcode208 content/test/layouttest_support.cc:208: DCHECK(false) << "did not swap for reason " ...
4 years, 5 months ago (2016-07-25 21:16:28 UTC) #46
jbroman
+piman for content/ https://codereview.chromium.org/2162083005/diff/160001/content/test/layouttest_support.cc File content/test/layouttest_support.cc (right): https://codereview.chromium.org/2162083005/diff/160001/content/test/layouttest_support.cc#newcode208 content/test/layouttest_support.cc:208: DCHECK(false) << "did not swap for ...
4 years, 5 months ago (2016-07-25 21:47:45 UTC) #50
piman
https://codereview.chromium.org/2162083005/diff/180001/content/test/layouttest_support.cc File content/test/layouttest_support.cc (right): https://codereview.chromium.org/2162083005/diff/180001/content/test/layouttest_support.cc#newcode268 content/test/layouttest_support.cc:268: output_surfaces_[routing_id] = output_surface.get(); Where is the entry removed? Also, ...
4 years, 5 months ago (2016-07-26 06:56:32 UTC) #53
jbroman
https://codereview.chromium.org/2162083005/diff/180001/content/test/layouttest_support.cc File content/test/layouttest_support.cc (right): https://codereview.chromium.org/2162083005/diff/180001/content/test/layouttest_support.cc#newcode268 content/test/layouttest_support.cc:268: output_surfaces_[routing_id] = output_surface.get(); On 2016/07/26 at 06:56:32, piman - ...
4 years, 4 months ago (2016-07-26 13:28:42 UTC) #54
piman
lgtm https://codereview.chromium.org/2162083005/diff/180001/content/test/layouttest_support.cc File content/test/layouttest_support.cc (right): https://codereview.chromium.org/2162083005/diff/180001/content/test/layouttest_support.cc#newcode268 content/test/layouttest_support.cc:268: output_surfaces_[routing_id] = output_surface.get(); On 2016/07/26 13:28:42, jbroman wrote: ...
4 years, 4 months ago (2016-07-26 20:34:36 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2162083005/200001
4 years, 4 months ago (2016-07-26 22:01:25 UTC) #58
enne (OOO)
Drive-by "thank you for cleaning up the temporary copy output request mess that I left" ...
4 years, 4 months ago (2016-07-26 22:58:43 UTC) #59
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on master.tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/75816)
4 years, 4 months ago (2016-07-27 00:19:47 UTC) #61
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2162083005/200001
4 years, 4 months ago (2016-07-27 02:52:28 UTC) #63
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 4 months ago (2016-07-27 04:45:56 UTC) #64
commit-bot: I haz the power
4 years, 4 months ago (2016-07-27 04:47:59 UTC) #66
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/6ccbc7d47b41c05863cce3c0762d21dd406316c7
Cr-Commit-Position: refs/heads/master@{#408043}

Powered by Google App Engine
This is Rietveld 408576698