content::RenderWidgetHostImpl::GetSnapshotFromBrowser doesn't work in --enable-viz |
|||||||
Issue descriptioncontent::RenderWidgetHostImpl::GetSnapshotFromBrowser never completes when running with --enable-viz Each SnapshotBrowserTest.* is timing out while waiting for snapshots to be returned.
,
Mar 12 2018
miu@ as you have insight into what is happening in this area, could you help triage this issue to an appropriate owner?
,
Mar 14 2018
Original authors were mfomitchev@ and jbauman@, who don't work on Chrome anymore. :( Based on recent discussions in other bugs, I'm hoping ccameron@ will know who owns this now. It seems there was some need for a duplicate snapshot API that was synchronized with the latency info (for testing reasons only?). FWIW, according to comment 1, I don't think the code is achieving what the original author's intent was. Perhaps it's time to delete this code path and use the RWHV::CopyFromSurface() API instead?
,
Mar 14 2018
,
Mar 14 2018
FYI: I just saw this in an e-mail from kylechar@: "It's not expected that LatencyInfo signal will make it's way back to the browser process anymore since the display compositor isn't there."
,
Mar 14 2018
I think that the goal of GetSnapshotFromBrowser is to take a snapshot using system APIs -- that is, to use something independent of compositing APIs to see what exactly ended up on-screen. So ideally this isn't using CopyFromSurface.
,
Mar 14 2018
(oh, and this is for testing -- performance is optional)
,
Mar 16 2018
I think the presentation token / callback API would be ideal for GetSnapshotFromBrowser()? It provides a callback either (1) after the content has been presented to screen or (2) after the GPU swap has happened for the content if we can't get the actual presentation time.
,
Apr 26 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/b8aedbdc195d908871669fe9446ae20631a30227 commit b8aedbdc195d908871669fe9446ae20631a30227 Author: kylechar <kylechar@chromium.org> Date: Thu Apr 26 20:53:58 2018 viz: Enable screenshot viz_content_browsertests. Enable some disabled tests in viz_content_browsertests that relied on DevTools Page.captureScreenshot. That call now works so the tests can be re-enabled. Bug: 785308 , 810037 Change-Id: Ia249682d8395ac18873b4c2b326e63ffc567d68f Reviewed-on: https://chromium-review.googlesource.com/1030974 Reviewed-by: Saman Sami <samans@chromium.org> Commit-Queue: kylechar <kylechar@chromium.org> Cr-Commit-Position: refs/heads/master@{#554147} [modify] https://crrev.com/b8aedbdc195d908871669fe9446ae20631a30227/testing/buildbot/filters/viz.content_browsertests.filter
,
Apr 27 2018
saman fixed the root issue in https://crbug.com/785308 and I've reenabled SnapshotBrowserTest.* for viz_content_browser_tests. |
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by m...@chromium.org
, Feb 15 2018