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

Issue 2721763002: SetPreviousFrameSurface should copy latency info to the new surface (Closed)

Created:
3 years, 9 months ago by Saman Sami
Modified:
3 years, 9 months ago
CC:
chromium-reviews, xjz+watch_chromium.org, jam, jbauman+watch_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, kalyank, cc-bugs_chromium.org, danakj+watch_chromium.org, miu+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

In an effort to simplify DelegatedFrameHost, this CL moves the code for copying latency info from old surface to new surface to cc. This needs to be done because the code for capturing screenshots depends on the fact that that a particular latency info reaches cc::Display. When resizing, the latency info can remain in the old surface which is not drawn, and screenshot times out. A previous CL of mine had this problem and got reverted. BUG=696199 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2721763002 Cr-Commit-Position: refs/heads/master@{#454101} Committed: https://chromium.googlesource.com/chromium/src/+/71ca55f2b59fe14c1a803f00c2c219502fd5d9bb

Patch Set 1 #

Patch Set 2 : c #

Patch Set 3 : c #

Total comments: 4

Patch Set 4 : c #

Patch Set 5 : c #

Patch Set 6 : c #

Total comments: 1

Patch Set 7 : c #

Patch Set 8 : c #

Patch Set 9 : c #

Total comments: 6

Patch Set 10 : c #

Patch Set 11 : c #

Total comments: 4

Patch Set 12 : c #

Unified diffs Side-by-side diffs Delta from patch set Stats (+238 lines, -20 lines) Patch
M cc/surfaces/compositor_frame_sink_support_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +201 lines, -0 lines 0 comments Download
M cc/surfaces/surface.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M cc/surfaces/surface.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +27 lines, -8 lines 0 comments Download
M content/browser/renderer_host/delegated_frame_host.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -12 lines 0 comments Download

Messages

Total messages: 64 (45 generated)
Saman Sami
jbauman@: Can you please take a look since this involves DelegatedFrameHost and Surface stuff. tdresser@: ...
3 years, 9 months ago (2017-02-28 18:53:26 UTC) #18
Fady Samuel
Please add a BUG=bugnumber.
3 years, 9 months ago (2017-02-28 18:54:24 UTC) #19
tdresser
https://codereview.chromium.org/2721763002/diff/30001/content/browser/renderer_host/delegated_frame_host.cc File content/browser/renderer_host/delegated_frame_host.cc (left): https://codereview.chromium.org/2721763002/diff/30001/content/browser/renderer_host/delegated_frame_host.cc#oldcode465 content/browser/renderer_host/delegated_frame_host.cc:465: frame.metadata.latency_info.clear(); I have context on LatencyInfo, but not much ...
3 years, 9 months ago (2017-02-28 20:25:45 UTC) #22
Saman Sami
On 2017/02/28 20:25:45, tdresser wrote: > https://codereview.chromium.org/2721763002/diff/30001/content/browser/renderer_host/delegated_frame_host.cc > File content/browser/renderer_host/delegated_frame_host.cc (left): > > https://codereview.chromium.org/2721763002/diff/30001/content/browser/renderer_host/delegated_frame_host.cc#oldcode465 > ...
3 years, 9 months ago (2017-02-28 20:33:44 UTC) #23
tdresser
Always copying the LatencyInfo should be correct.
3 years, 9 months ago (2017-02-28 20:49:45 UTC) #24
jbauman
https://codereview.chromium.org/2721763002/diff/30001/cc/surfaces/surface.cc File cc/surfaces/surface.cc (right): https://codereview.chromium.org/2721763002/diff/30001/cc/surfaces/surface.cc#newcode55 cc/surfaces/surface.cc:55: active_frame_->metadata.latency_info.insert( Also check whether active_frame_ exists for the new ...
3 years, 9 months ago (2017-02-28 23:11:09 UTC) #25
Fady Samuel
https://codereview.chromium.org/2721763002/diff/30001/cc/surfaces/surface.cc File cc/surfaces/surface.cc (right): https://codereview.chromium.org/2721763002/diff/30001/cc/surfaces/surface.cc#newcode55 cc/surfaces/surface.cc:55: active_frame_->metadata.latency_info.insert( On 2017/02/28 23:11:09, jbauman wrote: > Also check ...
3 years, 9 months ago (2017-03-01 04:30:56 UTC) #26
Saman Sami
PTAL I added a unit test and also added support for pending frame.
3 years, 9 months ago (2017-03-01 16:34:31 UTC) #38
Saman Sami
https://codereview.chromium.org/2721763002/diff/30001/cc/surfaces/surface.cc File cc/surfaces/surface.cc (right): https://codereview.chromium.org/2721763002/diff/30001/cc/surfaces/surface.cc#newcode55 cc/surfaces/surface.cc:55: active_frame_->metadata.latency_info.insert( On 2017/02/28 23:11:09, jbauman wrote: > Also check ...
3 years, 9 months ago (2017-03-01 16:35:20 UTC) #39
Fady Samuel
https://codereview.chromium.org/2721763002/diff/60003/cc/surfaces/surface_factory_unittest.cc File cc/surfaces/surface_factory_unittest.cc (right): https://codereview.chromium.org/2721763002/diff/60003/cc/surfaces/surface_factory_unittest.cc#newcode826 cc/surfaces/surface_factory_unittest.cc:826: TEST_F(SurfaceFactoryTest, LatencyInfoCarriedOverOnResize) { Could you move this to compositor_frame_sink_support_unittest ...
3 years, 9 months ago (2017-03-01 16:48:24 UTC) #40
Saman Sami
PTAL I fixed the logic for pending frames and added new unit tests.
3 years, 9 months ago (2017-03-01 19:30:50 UTC) #45
Fady Samuel
lgtm + nits https://codereview.chromium.org/2721763002/diff/160001/cc/surfaces/compositor_frame_sink_support_unittest.cc File cc/surfaces/compositor_frame_sink_support_unittest.cc (right): https://codereview.chromium.org/2721763002/diff/160001/cc/surfaces/compositor_frame_sink_support_unittest.cc#newcode773 cc/surfaces/compositor_frame_sink_support_unittest.cc:773: std::move(frame2)); nit: Add an expectation that ...
3 years, 9 months ago (2017-03-01 19:35:19 UTC) #46
Fady Samuel
lgtm + nits https://codereview.chromium.org/2721763002/diff/160001/cc/surfaces/compositor_frame_sink_support_unittest.cc File cc/surfaces/compositor_frame_sink_support_unittest.cc (right): https://codereview.chromium.org/2721763002/diff/160001/cc/surfaces/compositor_frame_sink_support_unittest.cc#newcode773 cc/surfaces/compositor_frame_sink_support_unittest.cc:773: std::move(frame2)); nit: Add an expectation that ...
3 years, 9 months ago (2017-03-01 19:35:20 UTC) #47
Saman Sami
https://codereview.chromium.org/2721763002/diff/160001/cc/surfaces/compositor_frame_sink_support_unittest.cc File cc/surfaces/compositor_frame_sink_support_unittest.cc (right): https://codereview.chromium.org/2721763002/diff/160001/cc/surfaces/compositor_frame_sink_support_unittest.cc#newcode773 cc/surfaces/compositor_frame_sink_support_unittest.cc:773: std::move(frame2)); On 2017/03/01 19:35:19, Fady Samuel wrote: > nit: ...
3 years, 9 months ago (2017-03-01 19:49:30 UTC) #50
jbauman
lgtm with one nit. https://codereview.chromium.org/2721763002/diff/200001/cc/surfaces/surface.h File cc/surfaces/surface.h (right): https://codereview.chromium.org/2721763002/diff/200001/cc/surfaces/surface.h#newcode137 cc/surfaces/surface.h:137: void TakeLatencyInfoFromFrame(CompositorFrame* frame, Make this ...
3 years, 9 months ago (2017-03-01 22:11:08 UTC) #53
Fady Samuel
https://codereview.chromium.org/2721763002/diff/200001/cc/surfaces/surface.cc File cc/surfaces/surface.cc (right): https://codereview.chromium.org/2721763002/diff/200001/cc/surfaces/surface.cc#newcode272 cc/surfaces/surface.cc:272: void Surface::TakeLatencyInfo(std::vector<ui::LatencyInfo>* latency_info) { nit: TakeLatencyInfoFromActiveFrame?
3 years, 9 months ago (2017-03-01 22:17:43 UTC) #54
Saman Sami
https://codereview.chromium.org/2721763002/diff/200001/cc/surfaces/surface.cc File cc/surfaces/surface.cc (right): https://codereview.chromium.org/2721763002/diff/200001/cc/surfaces/surface.cc#newcode272 cc/surfaces/surface.cc:272: void Surface::TakeLatencyInfo(std::vector<ui::LatencyInfo>* latency_info) { On 2017/03/01 22:17:43, Fady Samuel ...
3 years, 9 months ago (2017-03-01 22:35:05 UTC) #57
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/2721763002/220001
3 years, 9 months ago (2017-03-01 23:41:22 UTC) #61
commit-bot: I haz the power
3 years, 9 months ago (2017-03-01 23:50:50 UTC) #64
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/71ca55f2b59fe14c1a803f00c2c2...

Powered by Google App Engine
This is Rietveld 408576698