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

Issue 6462034: Refactor how surfaces are acquired for GPU compositing. (Closed)

Created:
9 years, 10 months ago by jonathan.backer
Modified:
9 years, 7 months ago
Reviewers:
apatrick_chromium
CC:
chromium-reviews, pam+watch_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, Ken Russell (switch to Gerrit), nduca, Alex Nicolaou
Visibility:
Public.

Description

Refactor how surfaces are acquired for GPU compositing. Rather than have a couple of nasty #if defined blocks, push the code down into the platform specific RenderWidgetHostView layer. Added support for releasing surfaces: - if renderer crashes, RenderWidgetHostView releases the surfaces (no change from previous code) - if gpu process crashes, the GpuProcessHostUIShim releases the surfaces (introduced in this patch) - if the channel between the renderer and gpu process falls, the gpu process asks the GpuProcessHostUIShim to release the surface BUG=none TEST=by hand 3D css and WebGL on win, max, linux, and linux views Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=75387

Patch Set 1 #

Patch Set 2 : Fix view views build. #

Total comments: 6

Patch Set 3 : Respond to reviewer comments and fix resource leak. #

Patch Set 4 : Removed unnecessary forward declaration. #

Patch Set 5 : Remove unnecessary include. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -67 lines) Patch
M chrome/browser/gpu_process_host_ui_shim.h View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/gpu_process_host_ui_shim.cc View 1 2 3 5 chunks +61 lines, -58 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_gtk.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_gtk.cc View 1 2 4 chunks +30 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_mac.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_views.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_views.cc View 1 2 3 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_win.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_win.cc View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/test/test_render_view_host.h View 1 2 3 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/test/test_render_view_host.cc View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
jonathan.backer
apatrick: I don't know if this is how we want to handle resources that the ...
9 years, 10 months ago (2011-02-09 17:29:15 UTC) #1
apatrick_chromium
I think this should be hand tested on all three platforms. http://codereview.chromium.org/6462034/diff/2001/chrome/browser/gpu_process_host_ui_shim.cc File chrome/browser/gpu_process_host_ui_shim.cc (right): ...
9 years, 10 months ago (2011-02-10 19:11:17 UTC) #2
jonathan.backer
http://codereview.chromium.org/6462034/diff/2001/chrome/browser/gpu_process_host_ui_shim.cc File chrome/browser/gpu_process_host_ui_shim.cc (right): http://codereview.chromium.org/6462034/diff/2001/chrome/browser/gpu_process_host_ui_shim.cc#newcode215 chrome/browser/gpu_process_host_ui_shim.cc:215: scoped_refptr<ViewSurface> view_surface(new ViewSurface(view_id)); On 2011/02/10 19:11:19, apatrick_chromium wrote: > ...
9 years, 10 months ago (2011-02-11 19:42:03 UTC) #3
apatrick_chromium
9 years, 10 months ago (2011-02-17 19:52:32 UTC) #4
LGTM

Powered by Google App Engine
This is Rietveld 408576698