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

Issue 16430005: Call OnSwapBuffersComplete at the end of each frame (Closed)

Created:
7 years, 6 months ago by joth
Modified:
7 years, 5 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, aelias_OOO_until_Jul13
Visibility:
Public.

Description

Call OnSwapBuffersComplete at the end of each frame While the main compositor code flow works fine without this, this is needed to keep RenderWidget book-keeping updated on the main thread. Also re-arranging the did_swap_buffer_ path to share more between hardware and software mode. BUG=

Patch Set 1 #

Total comments: 2

Patch Set 2 : ws #

Patch Set 3 : SW renderer using swap complete #

Patch Set 4 : Fix SoftwareRenderer & tests to use OnSwapBufferComplete too #

Total comments: 4

Patch Set 5 : fix rebase #

Patch Set 6 : tidy Begin/End Paint #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -16 lines) Patch
M cc/output/output_surface.cc View 1 2 3 1 chunk +5 lines, -4 lines 0 comments Download
M cc/output/software_renderer.cc View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M cc/test/fake_output_surface.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M cc/test/fake_output_surface.cc View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M content/browser/android/in_process/synchronous_compositor_output_surface.cc View 1 2 3 4 5 5 chunks +16 lines, -10 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
joth
7 years, 6 months ago (2013-06-05 20:56:29 UTC) #1
no sievers
lgtm https://codereview.chromium.org/16430005/diff/1/content/browser/android/in_process/synchronous_compositor_output_surface.cc File content/browser/android/in_process/synchronous_compositor_output_surface.cc (right): https://codereview.chromium.org/16430005/diff/1/content/browser/android/in_process/synchronous_compositor_output_surface.cc#newcode217 content/browser/android/in_process/synchronous_compositor_output_surface.cc:217: client_->OnSwapBuffersComplete(); Is it even more straightforward to call ...
7 years, 6 months ago (2013-06-05 21:08:05 UTC) #2
joth
https://codereview.chromium.org/16430005/diff/1/content/browser/android/in_process/synchronous_compositor_output_surface.cc File content/browser/android/in_process/synchronous_compositor_output_surface.cc (right): https://codereview.chromium.org/16430005/diff/1/content/browser/android/in_process/synchronous_compositor_output_surface.cc#newcode217 content/browser/android/in_process/synchronous_compositor_output_surface.cc:217: client_->OnSwapBuffersComplete(); On 2013/06/05 21:08:05, Daniel Sievers wrote: > Is ...
7 years, 6 months ago (2013-06-05 21:26:40 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joth@chromium.org/16430005/1
7 years, 6 months ago (2013-06-05 21:27:46 UTC) #4
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=7018
7 years, 6 months ago (2013-06-05 21:49:31 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joth@chromium.org/16430005/1
7 years, 6 months ago (2013-06-05 23:23:28 UTC) #6
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=7072
7 years, 6 months ago (2013-06-05 23:39:22 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joth@chromium.org/16430005/16001
7 years, 6 months ago (2013-06-06 01:56:28 UTC) #8
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test on builder ...
7 years, 6 months ago (2013-06-06 18:01:29 UTC) #9
joth
https://codereview.chromium.org/16430005/diff/47001/content/browser/android/in_process/synchronous_compositor_output_surface.cc File content/browser/android/in_process/synchronous_compositor_output_surface.cc (right): https://codereview.chromium.org/16430005/diff/47001/content/browser/android/in_process/synchronous_compositor_output_surface.cc#newcode225 content/browser/android/in_process/synchronous_compositor_output_surface.cc:225: client_->OnSwapBuffersComplete(); BUG: I need to call this back async, ...
7 years, 6 months ago (2013-06-07 04:02:05 UTC) #10
joth
https://codereview.chromium.org/16430005/diff/47001/content/browser/android/in_process/synchronous_compositor_output_surface.cc File content/browser/android/in_process/synchronous_compositor_output_surface.cc (right): https://codereview.chromium.org/16430005/diff/47001/content/browser/android/in_process/synchronous_compositor_output_surface.cc#newcode219 content/browser/android/in_process/synchronous_compositor_output_surface.cc:219: // whole view. Tracking bug to implement this: crbug.com/230463. ...
7 years, 6 months ago (2013-06-07 04:02:51 UTC) #11
joth
https://codereview.chromium.org/16430005/diff/47001/content/browser/android/in_process/synchronous_compositor_output_surface.cc File content/browser/android/in_process/synchronous_compositor_output_surface.cc (right): https://codereview.chromium.org/16430005/diff/47001/content/browser/android/in_process/synchronous_compositor_output_surface.cc#newcode219 content/browser/android/in_process/synchronous_compositor_output_surface.cc:219: // whole view. Tracking bug to implement this: crbug.com/230463. ...
7 years, 6 months ago (2013-06-07 04:28:47 UTC) #12
aelias_OOO_until_Jul13
7 years, 6 months ago (2013-06-10 06:44:47 UTC) #13
FYI, here is my wider refactoring subsuming this patch:
https://codereview.chromium.org/16304003/ .  I haven't tested it with WebView
yet, let me know if it works for you.

Powered by Google App Engine
This is Rietveld 408576698