Reland "ContentCapture: re-stream onscreen content when the frame show again"
This reverts commit dad827a2. Reason for revert: Change the test, previous test method caused DCHECK failure in L, M, N. The new way won't remove the view from view tree instead notify the window invisible to let the renderer think the frame is in background. Verified in N device with debug build, the issue was fixed. Original change's description: > Revert "ContentCapture: re-stream onscreen content when the frame show again" > > This reverts commit dbe0ea06. > > Reason for revert: New test fails on the following bots: > https://ci.chromium.org/p/chromium/builders/ci/Lollipop%20Phone%20Tester > https://ci.chromium.org/p/chromium/builders/ci/Marshmallow%20Tablet%20Tester > https://ci.chromium.org/p/chromium/builders/ci/Android%20WebView%20N%20%28dbg%29 > > Original change's description: > > ContentCapture: re-stream onscreen content when the frame show again > > > > Previously ContentCaptureConsumer had no way to know the the frame > > shows again because the visible content didn't change. > > > > This patch resets the task session when the frame was hidden, so > > ContentCapture task will stream on-screen content because they > > aren't streamed from the task point of view when the frame was > > shown. > > > > Adds the test to coverage this scenario. > > > > Bug: 1137463 > > Change-Id: I0065ce080101d2149622b0f9f6a3aa196c18d717 > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2511030 > > Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org> > > Commit-Queue: Michael Bai <michaelbai@chromium.org> > > Cr-Commit-Position: refs/heads/master@{#823251} > > TBR=michaelbai@chromium.org,wangxianzhu@chromium.org > > Change-Id: I219bd94c5dfc36b073590d6e604ce951aef3c966 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Bug: 1137463 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2518401 > Reviewed-by: Tommy Nyquist <nyquist@chromium.org> > Commit-Queue: Tommy Nyquist <nyquist@chromium.org> > Cr-Commit-Position: refs/heads/master@{#823660} TBR=michaelbai@chromium.org,nyquist@chromium.org,wangxianzhu@chromium.org # Not skipping CQ checks because this is a reland. Bug: 1137463 Change-Id: Ib7be9bf21a5aadcf88b79f4334e5298ee9d41275 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2518752Reviewed-by:Bo <boliu@chromium.org> Reviewed-by:
Tommy Nyquist <nyquist@chromium.org> Reviewed-by:
Xianzhu Wang <wangxianzhu@chromium.org> Reviewed-by:
Michael Bai <michaelbai@chromium.org> Commit-Queue: Michael Bai <michaelbai@chromium.org> Cr-Commit-Position: refs/heads/master@{#824167}
Showing
Please register or sign in to comment