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

Issue 10095021: Notify WebWidget when its compositor surface is ready to use (Closed)

Created:
8 years, 8 months ago by jamesr
Modified:
8 years, 8 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Notify WebWidget when its compositor surface is ready to use Before the browser UI thread has a chance to initialize the native window system surface binding (which is different on each platform) any attempt to initialize the compositor will fail in a way that appears fatal to WebKit. To avoid hitting this, we set a bit when we receive an IPC sent by the browser UI thread after it gets a chance to set up the native windowing stuff - RenderWidget::CompleteInit(). This bit delays RenderWidget-driven frame scheduling, but when WebKit is scheduling frames (for example with the threaded compositor active) we also have to let WebKit know so it can start rendering. BUG=123356 TEST=See bug TBR=darin Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=133118

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -0 lines) Patch
M content/renderer/render_widget.cc View 1 chunk +4 lines, -0 lines 1 comment Download
M content/renderer/render_widget_fullscreen_pepper.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
jamesr
See http://code.google.com/p/chromium/issues/detail?id=123356 and https://bugs.webkit.org/show_bug.cgi?id=84305 for some background. This patch has to land before https://bugs.webkit.org/show_bug.cgi?id=84305 can, ...
8 years, 8 months ago (2012-04-19 00:43:38 UTC) #1
darin (slow to review)
would another approach be to make the "compositor surface" setup asynchronous? somehow Web{Widget,View}Client provides the ...
8 years, 8 months ago (2012-04-19 05:08:33 UTC) #2
jamesr
On 2012/04/19 05:08:33, darin wrote: > would another approach be to make the "compositor surface" ...
8 years, 8 months ago (2012-04-19 05:22:34 UTC) #3
jamesr
On 2012/04/19 05:08:33, darin wrote: > would another approach be to make the "compositor surface" ...
8 years, 8 months ago (2012-04-19 05:23:50 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/10095021/1
8 years, 8 months ago (2012-04-20 00:13:06 UTC) #5
jamesr
After our in-person discussion I'm going to continue with this for now and then work ...
8 years, 8 months ago (2012-04-20 00:14:09 UTC) #6
commit-bot: I haz the power
Change committed as 133118
8 years, 8 months ago (2012-04-20 01:47:15 UTC) #7
darin (slow to review)
8 years, 8 months ago (2012-04-23 16:47:54 UTC) #8
LGTM

Powered by Google App Engine
This is Rietveld 408576698