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

Issue 3132038: Mac: Correctly show/hide compositor on navigations. (Closed)

Created:
10 years, 4 months ago by Nico
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ben+cc_chromium.org, John Grabowski, apatrick_chromium, pam+watch_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org, stuartmorgan, pink (ping after 24hrs)
Visibility:
Public.

Description

Mac: Correctly show/hide compositor on navigations. The problem was that unlike plugins, the compositor surface is not destroyed on navigation, only a variable is_gpu_rendering_active is updated. The fix is to tell the RenderWidgetHostView if this variable changed and then to adapt the visibility of the view rendering the compositing layer accordingly. Also, destroy its AcceleratedSurfaceContainer when the compositor is destroyed. BUG=52134, 51748 TEST=go to http://webkit.org/blog/386/3d-transforms/, then hit back. page should redraw on back button. go forward, should work too. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57135

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : linux compile #

Total comments: 2

Patch Set 4 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -21 lines) Patch
M chrome/browser/renderer_host/accelerated_surface_container_manager_mac.h View 3 chunks +17 lines, -4 lines 0 comments Download
M chrome/browser/renderer_host/accelerated_surface_container_manager_mac.cc View 5 chunks +14 lines, -7 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_mac.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 2 chunks +25 lines, -4 lines 0 comments Download
M chrome/browser/renderer_host/test/test_render_view_host.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/test/test_render_view_host.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/renderer/webgles2context_impl.h View 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/renderer/webgles2context_impl.cc View 1 2 3 chunks +17 lines, -3 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Nico
This CL is much smaller than the file list suggests. kbr: Please review. Pink, Stuart: ...
10 years, 4 months ago (2010-08-24 01:57:28 UTC) #1
Ken Russell (switch to Gerrit)
LGTM. Thanks for cleaning up the plugin window handle management. One comment. http://codereview.chromium.org/3132038/diff/4001/5003 File chrome/browser/renderer_host/render_widget_host.cc ...
10 years, 4 months ago (2010-08-24 02:44:51 UTC) #2
Nico
10 years, 4 months ago (2010-08-24 02:46:22 UTC) #3
thanks!

http://codereview.chromium.org/3132038/diff/4001/5003
File chrome/browser/renderer_host/render_widget_host.cc (right):

http://codereview.chromium.org/3132038/diff/4001/5003#newcode929
chrome/browser/renderer_host/render_widget_host.cc:929:
view_->GpuRenderingStateDidChange();
On 2010/08/24 02:44:51, kbr wrote:
> Should probably do a NULL check on view_ as is done in some of the related
> methods.
> 

Done.

Powered by Google App Engine
This is Rietveld 408576698