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

Issue 10382213: Defer CGLFlushDrawable until OSX-requested drawRect to avoid spinning when window is obscured. (Closed)

Created:
8 years, 7 months ago by jbates
Modified:
8 years, 7 months ago
CC:
chromium-reviews, Nico, jam
Visibility:
Public.

Description

Defer CGLFlushDrawable until OSX-requested drawRect to avoid spinning when window is obscured. Sadly, this fix regresses some black flashing bugs: -flicker-test2.html occasionally flashes while resizing the window. I think this regression could be fixed if we always draw with the OpenGL context once the context is created. But that would be a third drawing path and some significant code, so let's consider it in a follow up. BUG=127709 TEST=open https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/demos/google/particles/index.html ; open Activity Monitor and observe the chrome process CPU usage ; resize chrome window so it's smaller than the Activity Monitor window (or increase size of Activity Monitor); move Activity Monitor on top of chrome window to fully obscure it ; verify that the CPU usage of chrome does not spike upwards while the chrome window is obscured. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=138327

Patch Set 1 #

Patch Set 2 : fixed animation halt during resize #

Total comments: 4

Patch Set 3 : joi feedback #

Patch Set 4 : test compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -28 lines) Patch
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 3 chunks +11 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 13 chunks +60 lines, -26 lines 0 comments Download
M content/browser/renderer_host/test_render_view_host.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/test_render_view_host.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
content/port/browser/render_widget_host_view_port.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
jbates
ptal
8 years, 7 months ago (2012-05-17 19:55:02 UTC) #1
Ken Russell (switch to Gerrit)
LGTM as long as it's been tested. One question. https://chromiumcodereview.appspot.com/10382213/diff/2001/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): https://chromiumcodereview.appspot.com/10382213/diff/2001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode373 content/browser/renderer_host/render_widget_host_view_mac.mm:373: ...
8 years, 7 months ago (2012-05-17 20:28:34 UTC) #2
jbates
sky: content/browser/OWNERS joi: content/port/OWNERS jam: fyi, this adds a new API to content/port (but you're ...
8 years, 7 months ago (2012-05-18 00:31:47 UTC) #3
Jói
FYI, jam@ is also an owner transitively, via the content/OWNERS file. Cheers, Jói https://chromiumcodereview.appspot.com/10382213/diff/2001/content/port/browser/render_widget_host_view_port.h File ...
8 years, 7 months ago (2012-05-18 07:28:27 UTC) #4
sky
I'm not a good reviewer for the mac side. I added Nico.
8 years, 7 months ago (2012-05-18 15:48:06 UTC) #5
Nico
kbr knows mac stuff and he lg'd. This is just waiting for an owners stamp.
8 years, 7 months ago (2012-05-18 16:32:55 UTC) #6
jam
lgtm
8 years, 7 months ago (2012-05-18 16:39:35 UTC) #7
sky
Thanks for the clarification. LGTM (not that jbates needs it now that John LGTMd it) ...
8 years, 7 months ago (2012-05-18 16:44:07 UTC) #8
jbates
https://chromiumcodereview.appspot.com/10382213/diff/2001/content/port/browser/render_widget_host_view_port.h File content/port/browser/render_widget_host_view_port.h (right): https://chromiumcodereview.appspot.com/10382213/diff/2001/content/port/browser/render_widget_host_view_port.h#newcode180 content/port/browser/render_widget_host_view_port.h:180: virtual void AboutToWaitForBackingStoreMsg() {} On 2012/05/18 07:28:27, Jói wrote: ...
8 years, 7 months ago (2012-05-21 22:41:59 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbates@chromium.org/10382213/10001
8 years, 7 months ago (2012-05-21 22:44:54 UTC) #10
commit-bot: I haz the power
Try job failure for 10382213-10001 (retry) on mac_rel for step "compile" (clobber build). It's a ...
8 years, 7 months ago (2012-05-21 23:06:05 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbates@chromium.org/10382213/2004
8 years, 7 months ago (2012-05-22 00:52:12 UTC) #12
commit-bot: I haz the power
Try job failure for 10382213-2004 (retry) on win_rel for steps "base_unittests, sync_unit_tests". It's a second ...
8 years, 7 months ago (2012-05-22 04:36:17 UTC) #13
commit-bot: I haz the power
8 years, 7 months ago (2012-05-22 17:57:40 UTC) #14

Powered by Google App Engine
This is Rietveld 408576698