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

Issue 1128323006: Fix latency calculation when multiple rendered buffers are in flight. (Closed)

Created:
5 years, 7 months ago by alexst (slow to review)
Modified:
5 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, 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

Fix latency calculation when multiple rendered buffers are in flight. This is particularly important on ChromeOS with freon stack. SwapBuffers ack is sent when the buffers actually swapped, not when the call to swap them was made. This changed the scheduler behavior and delayed beginning of the next frame, so to regain it we allowed multiple in flight frames. The effect this has on latency info is that two frames arriving in rapid succession would override incorrect latency info making it look like things ultimately happened earlier than they did. This patch associates latency info with a particular frame's callback thus avoiding it being overridden. BUG=485302 Committed: https://crrev.com/569a70b0d222c25fa312abc21ab11e501489c22e Cr-Commit-Position: refs/heads/master@{#329936}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -10 lines) Patch
M content/common/gpu/image_transport_surface.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/image_transport_surface.cc View 1 2 chunks +17 lines, -9 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
alexst (slow to review)
5 years, 7 months ago (2015-05-14 18:32:09 UTC) #3
brianderson
+miletus: Do we care about the extra vector copies? https://codereview.chromium.org/1128323006/diff/20001/content/common/gpu/image_transport_surface.cc File content/common/gpu/image_transport_surface.cc (right): https://codereview.chromium.org/1128323006/diff/20001/content/common/gpu/image_transport_surface.cc#newcode227 content/common/gpu/image_transport_surface.cc:227: ...
5 years, 7 months ago (2015-05-14 19:06:12 UTC) #5
alexst (slow to review)
PTAL https://codereview.chromium.org/1128323006/diff/20001/content/common/gpu/image_transport_surface.cc File content/common/gpu/image_transport_surface.cc (right): https://codereview.chromium.org/1128323006/diff/20001/content/common/gpu/image_transport_surface.cc#newcode227 content/common/gpu/image_transport_surface.cc:227: latency_info.swap(latency_info_); On 2015/05/14 19:06:12, brianderson wrote: > Although ...
5 years, 7 months ago (2015-05-14 19:32:41 UTC) #6
brianderson
lgtm
5 years, 7 months ago (2015-05-14 19:36:58 UTC) #7
Yufeng Shen (Slow to review)
On 2015/05/14 19:36:58, brianderson wrote: > lgtm lgtm
5 years, 7 months ago (2015-05-14 20:10:29 UTC) #8
alexst (slow to review)
+ccameron for owners
5 years, 7 months ago (2015-05-14 20:11:36 UTC) #10
ccameron
lgtm
5 years, 7 months ago (2015-05-14 20:27:47 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1128323006/40001
5 years, 7 months ago (2015-05-14 20:30:41 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:40001)
5 years, 7 months ago (2015-05-14 21:31:32 UTC) #14
commit-bot: I haz the power
5 years, 7 months ago (2015-05-14 21:33:10 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/569a70b0d222c25fa312abc21ab11e501489c22e
Cr-Commit-Position: refs/heads/master@{#329936}

Powered by Google App Engine
This is Rietveld 408576698