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

Issue 6840060: Progress towards fixing 77536 (Closed)

Created:
9 years, 8 months ago by jonathan.backer
Modified:
9 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Progress towards fixing 77536 This first thing this CL does is plumbs through the surface that the GPU will eventually render to very early on (with the ViewMsg_New and ViewMsg_CreateNew IPCs). Previously, these surfaces were acquired at the time that GPU got a request for a command buffer. This required mediation by the browser UI thread. With this CL, we pre-acquire the surfaces so that they can be passed with the request for the command buffer. This will allow us to handle the request on the browser IO thread. The second thing this CL does is change the surface management a bit. When surfaces were acquired and released when command buffers were created and destroyed, the GPU process host was natural manager of surfaces. This pushes the management further down into the RWHV level and GtkNativeViewManager (on Linux). It fixes a minor resource leak. BUG=first stage of 77536 TEST=By hand WebGL, 3D CSS, Pepper 3D on Linux, Windows, and Mac. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=82165

Patch Set 1 #

Patch Set 2 : "" #

Total comments: 4

Patch Set 3 : "" #

Total comments: 1

Patch Set 4 : "" #

Patch Set 5 : "" #

Patch Set 6 : "" #

Patch Set 7 : "" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -132 lines) Patch
M chrome/browser/gpu_process_host_ui_shim.h View 1 2 2 chunks +12 lines, -6 lines 0 comments Download
M chrome/browser/gpu_process_host_ui_shim.cc View 1 2 3 3 chunks +39 lines, -50 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_gtk.h View 1 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_gtk.cc View 1 3 chunks +11 lines, -21 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_mac.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 5 6 3 chunks +8 lines, -10 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_views.h View 1 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_views.cc View 1 2 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_win.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_win.cc View 1 2 chunks +1 line, -6 lines 0 comments Download
M chrome/test/render_view_test.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/gpu_message_filter.h View 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/gpu_message_filter.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host.cc View 1 2 2 chunks +8 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/renderer_host/test_render_view_host.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/renderer_host/test_render_view_host.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu_messages.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M content/common/gpu_process_launch_causes.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 2 chunks +6 lines, -2 lines 0 comments Download
M content/renderer/gpu_channel_host.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/gpu_channel_host.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/render_thread.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_view.h View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M content/renderer/render_view.cc View 1 2 3 4 5 6 5 chunks +5 lines, -1 line 0 comments Download
M content/renderer/render_widget.h View 1 2 4 chunks +15 lines, -2 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 2 chunks +7 lines, -3 lines 0 comments Download
M content/renderer/render_widget_fullscreen_pepper.cc View 1 2 5 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/renderer_gl_context.h View 2 chunks +2 lines, -0 lines 0 comments Download
M content/renderer/renderer_gl_context.cc View 1 2 3 4 5 5 chunks +15 lines, -5 lines 0 comments Download
M content/renderer/webgraphicscontext3d_command_buffer_impl.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/gtk_native_view_id_manager.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M ui/gfx/gtk_native_view_id_manager.cc View 1 2 chunks +15 lines, -1 line 0 comments Download
M ui/gfx/gtk_preserve_window.cc View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
jonathan.backer
I've got a few small TODOs and FIXMEs. I'll clean them up tomorrow morning. Otherwise, ...
9 years, 8 months ago (2011-04-14 21:21:44 UTC) #1
apatrick_chromium
LGTM for UIShim and RWHVs.
9 years, 8 months ago (2011-04-14 21:58:53 UTC) #2
jam
lgtm with the second comment, and your TODOs in the code taken care of. thanks ...
9 years, 8 months ago (2011-04-14 22:42:00 UTC) #3
jonathan.backer
Just waiting for piman@ to try this with pepper flash plugin before I upstream this. ...
9 years, 8 months ago (2011-04-15 19:02:51 UTC) #4
piman
http://codereview.chromium.org/6840060/diff/7001/content/renderer/render_widget_fullscreen_pepper.cc File content/renderer/render_widget_fullscreen_pepper.cc (right): http://codereview.chromium.org/6840060/diff/7001/content/renderer/render_widget_fullscreen_pepper.cc#newcode304 content/renderer/render_widget_fullscreen_pepper.cc:304: DCHECK(!context_); This can in theory be called before we ...
9 years, 8 months ago (2011-04-15 21:53:33 UTC) #5
vsevik
This patch breaks Chrome DevTools. If you try to press Ctrl-Shift-I several times you can ...
9 years, 8 months ago (2011-04-20 12:50:59 UTC) #6
jonathan.backer
9 years, 8 months ago (2011-04-20 20:09:44 UTC) #7
On 2011/04/20 12:50:59, vsevik wrote:
> This patch breaks Chrome DevTools.
> If you try to press Ctrl-Shift-I several times you can see that sometimes
> DevTools fills the screen with gray box.
> Trying to drag the border of this box makes it normal though.

Filed a bug: http://crbug.com/80017

Powered by Google App Engine
This is Rietveld 408576698