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

Issue 542083002: content: Move all GpuMemoryBuffer allocation to IO thread. (Closed)

Created:
6 years, 3 months ago by reveman
Modified:
6 years, 3 months ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

content: Move all GpuMemoryBuffer allocation to IO thread. Allocation of a GpuMemoryBuffer is still asynchronous on the UI thread and as a result also for the renderer on the browser side. However, allocation of a GpuMemoryBuffer still need to be synchronous for the browser compositor but instead of limiting the browser compositor to GpuMemoryBuffer implementations that can be allocated synchronously, we block on the UI thread while waiting for allocation to be handled asynchronous on the IO thread. This allows all GpuMemoryBuffer implementations to be used with the browser compositor. BUG=380861 Committed: https://crrev.com/1953007c5e879a2e7e53efd0aa0be64263e9c6a0 Cr-Commit-Position: refs/heads/master@{#293871}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : fix mac build #

Patch Set 4 : remove unnecessary forward declaration #

Total comments: 14

Patch Set 5 : address review feedback #

Patch Set 6 : address review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -260 lines) Patch
M content/browser/gpu/browser_gpu_channel_host_factory.h View 1 2 3 4 4 chunks +8 lines, -16 lines 0 comments Download
M content/browser/gpu/browser_gpu_channel_host_factory.cc View 1 2 3 4 5 6 chunks +103 lines, -79 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.h View 1 2 3 4 chunks +21 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 9 chunks +134 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 4 chunks +0 lines, -21 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 7 chunks +0 lines, -143 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
reveman
Please take a look. I prefer if do this prior to making it possible to ...
6 years, 3 months ago (2014-09-05 20:44:34 UTC) #2
piman
https://codereview.chromium.org/542083002/diff/60001/content/browser/gpu/browser_gpu_channel_host_factory.cc File content/browser/gpu/browser_gpu_channel_host_factory.cc (right): https://codereview.chromium.org/542083002/diff/60001/content/browser/gpu/browser_gpu_channel_host_factory.cc#newcode41 content/browser/gpu/browser_gpu_channel_host_factory.cc:41: : event(true, false), width(0), height(0), internalformat(0), usage(0) {} nit: ...
6 years, 3 months ago (2014-09-05 22:30:38 UTC) #3
reveman
https://codereview.chromium.org/542083002/diff/60001/content/browser/gpu/browser_gpu_channel_host_factory.cc File content/browser/gpu/browser_gpu_channel_host_factory.cc (right): https://codereview.chromium.org/542083002/diff/60001/content/browser/gpu/browser_gpu_channel_host_factory.cc#newcode41 content/browser/gpu/browser_gpu_channel_host_factory.cc:41: : event(true, false), width(0), height(0), internalformat(0), usage(0) {} On ...
6 years, 3 months ago (2014-09-05 23:58:43 UTC) #4
piman
https://codereview.chromium.org/542083002/diff/60001/content/browser/gpu/browser_gpu_channel_host_factory.cc File content/browser/gpu/browser_gpu_channel_host_factory.cc (right): https://codereview.chromium.org/542083002/diff/60001/content/browser/gpu/browser_gpu_channel_host_factory.cc#newcode488 content/browser/gpu/browser_gpu_channel_host_factory.cc:488: request->event.Signal(); On 2014/09/05 23:58:43, reveman wrote: > On 2014/09/05 ...
6 years, 3 months ago (2014-09-06 00:28:23 UTC) #5
reveman
https://codereview.chromium.org/542083002/diff/60001/content/browser/gpu/browser_gpu_channel_host_factory.cc File content/browser/gpu/browser_gpu_channel_host_factory.cc (right): https://codereview.chromium.org/542083002/diff/60001/content/browser/gpu/browser_gpu_channel_host_factory.cc#newcode488 content/browser/gpu/browser_gpu_channel_host_factory.cc:488: request->event.Signal(); On 2014/09/06 00:28:23, piman (OOO) wrote: > On ...
6 years, 3 months ago (2014-09-06 20:30:49 UTC) #6
piman
https://codereview.chromium.org/542083002/diff/60001/content/browser/gpu/browser_gpu_channel_host_factory.cc File content/browser/gpu/browser_gpu_channel_host_factory.cc (right): https://codereview.chromium.org/542083002/diff/60001/content/browser/gpu/browser_gpu_channel_host_factory.cc#newcode488 content/browser/gpu/browser_gpu_channel_host_factory.cc:488: request->event.Signal(); On 2014/09/06 20:30:49, reveman wrote: > On 2014/09/06 ...
6 years, 3 months ago (2014-09-08 18:33:57 UTC) #7
reveman
https://codereview.chromium.org/542083002/diff/60001/content/browser/gpu/browser_gpu_channel_host_factory.cc File content/browser/gpu/browser_gpu_channel_host_factory.cc (right): https://codereview.chromium.org/542083002/diff/60001/content/browser/gpu/browser_gpu_channel_host_factory.cc#newcode488 content/browser/gpu/browser_gpu_channel_host_factory.cc:488: request->event.Signal(); On 2014/09/08 18:33:57, piman (OOO) wrote: > On ...
6 years, 3 months ago (2014-09-08 19:58:57 UTC) #8
piman
On Mon, Sep 8, 2014 at 12:58 PM, <reveman@chromium.org> wrote: > > https://codereview.chromium.org/542083002/diff/60001/ > content/browser/gpu/browser_gpu_channel_host_factory.cc ...
6 years, 3 months ago (2014-09-08 21:45:51 UTC) #9
piman
lgtm
6 years, 3 months ago (2014-09-08 21:46:20 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/542083002/100001
6 years, 3 months ago (2014-09-08 21:56:50 UTC) #12
commit-bot: I haz the power
Committed patchset #6 (id:100001) as 23345ca6ca2a587129ca08495f34e092c33345d3
6 years, 3 months ago (2014-09-09 06:27:20 UTC) #13
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:51:11 UTC) #14
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/1953007c5e879a2e7e53efd0aa0be64263e9c6a0
Cr-Commit-Position: refs/heads/master@{#293871}

Powered by Google App Engine
This is Rietveld 408576698