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

Issue 10453117: Tighter sync and faster ACK on SwapBuffers/PostSubBuffers (Closed)

Created:
8 years, 6 months ago by jonathan.backer
Modified:
8 years, 6 months ago
Reviewers:
piman
CC:
chromium-reviews, sadrul, yusukes+watch_chromium.org, jochen+watch-content_chromium.org, ben+watch_chromium.org, Ian Vollick, dhollowa+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, James Su
Visibility:
Public.

Description

Tighter sync and faster ACK on SwapBuffers/PostSubBuffers To prevent renderers from racing ahead of the browser's ability to display them, we deschedule the renderer in the GPU process until the UI has displayed the frame. Previously, we weren't checking that the UI actually displayed the renderer's contents before rescheduling. Now we do. To gain some asynchronicity, we reschedule once the UI has issued the present (rather than wait for GPU process to process the UI present). BUG=none TEST=none

Patch Set 1 #

Patch Set 2 : ACK early #

Patch Set 3 : Rebase #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -27 lines) Patch
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 3 chunks +9 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 5 chunks +28 lines, -14 lines 2 comments Download
M ui/aura/bench/bench_main.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ui/aura/root_window.h View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M ui/aura/root_window.cc View 1 2 3 chunks +9 lines, -5 lines 2 comments Download
M ui/compositor/compositor.h View 1 2 chunks +8 lines, -0 lines 1 comment Download
M ui/compositor/compositor.cc View 1 2 3 chunks +13 lines, -1 line 0 comments Download
M ui/compositor/compositor_observer.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ui/compositor/layer_unittest.cc View 1 2 2 chunks +9 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
jonathan.backer
piman: This solves the issue of kicking an extra frame. It was r139160. I think ...
8 years, 6 months ago (2012-06-01 15:49:31 UTC) #1
piman
https://chromiumcodereview.appspot.com/10453117/diff/7003/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://chromiumcodereview.appspot.com/10453117/diff/7003/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode579 content/browser/renderer_host/render_widget_host_view_aura.cc:579: on_compositing_will_end_callbacks_.push_back(CallbackAndCompositeNumber( A possible gotcha for the future, is that ...
8 years, 6 months ago (2012-06-04 18:20:39 UTC) #2
jonathan.backer
Just to be clear, I was trying to address two problems: - eliminating a gap ...
8 years, 6 months ago (2012-06-05 13:35:57 UTC) #3
piman
On Tue, Jun 5, 2012 at 6:35 AM, <backer@chromium.org> wrote: > Just to be clear, ...
8 years, 6 months ago (2012-06-05 18:28:50 UTC) #4
jonathan.backer
8 years, 6 months ago (2012-06-05 18:37:46 UTC) #5
On 2012/06/05 18:28:50, piman wrote:
> >
> > Given that kicking ACKs on OnCompositingWillEnd is inherently dangerous,
> > I prefer the latter (breaking aura_bench). WDYT?
> >
> 
> That's fine - I just figured it's fairly trivial to move the
>  defer_draw_scheduling_ logic into compositor.cc where it belongs. If not,
> you can break aura_bench, and I'll pick up the pieces later.

I'll take a stab at this (probably late today or early tomorrow). I'll
prioritize this given http://crbug.com/131059). I imagined making the changes up
in WK -- which I was going to leave up to you :D

Thanks for all of the clarifications. It's good to know that we're all on the
same page.

Powered by Google App Engine
This is Rietveld 408576698