Chromium Code Reviews
Help | Chromium Project | Sign in
(35)

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

Can't Edit
Can't Publish+Mail
Start Review
Created:
4 years, 9 months ago by Nico
Modified:
4 years ago
Reviewers:
Ken Russell
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
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
Trybot results:
Commit: CQ not working?

Messages

Total messages: 3 (0 generated)
Nico
This CL is much smaller than the file list suggests. kbr: Please review. Pink, Stuart: ...
4 years, 9 months ago (2010-08-24 01:57:28 UTC) #1
Ken Russell
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 ...
4 years, 9 months ago (2010-08-24 02:44:51 UTC) #2
Nico
4 years, 9 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.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld ec887be