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

Issue 302443008: content: Always allocate GpuMemoryBuffers on UI thread. (Closed)

Created:
6 years, 7 months ago by reveman
Modified:
6 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Visibility:
Public.

Description

content: Always allocate GpuMemoryBuffers on UI thread. Prior to this change, the browser compositor allocated buffers on the UI thread while the buffer allocation for renderers was done on the IO thread. This moves all allocation to the UI thread, which makes life easier for GpuMemoryBuffer implementations and avoids potentially expensive allocation costs on the IO thread. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274168

Patch Set 1 #

Total comments: 2

Patch Set 2 : format #

Patch Set 3 : Let Send take care posting a task to IO thread #

Patch Set 4 : move handling of ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer to RenderProcessHostImpl #

Patch Set 5 : fix mac build #

Patch Set 6 : android build fix #

Patch Set 7 : one more android build fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -155 lines) Patch
M content/browser/renderer_host/render_message_filter.h View 1 2 3 4 4 chunks +0 lines, -18 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 5 8 chunks +0 lines, -137 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 2 3 4 5 6 4 chunks +18 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 chunks +141 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
reveman
6 years, 7 months ago (2014-05-27 21:26:28 UTC) #1
alexst (slow to review)
https://codereview.chromium.org/302443008/diff/1/content/browser/renderer_host/render_message_filter.cc File content/browser/renderer_host/render_message_filter.cc (right): https://codereview.chromium.org/302443008/diff/1/content/browser/renderer_host/render_message_filter.cc#newcode1350 content/browser/renderer_host/render_message_filter.cc:1350: void RenderMessageFilter::GpuMemoryBufferAllocatedOnUI( I don't think you need to add ...
6 years, 6 months ago (2014-05-27 22:14:20 UTC) #2
reveman
PTAL https://codereview.chromium.org/302443008/diff/1/content/browser/renderer_host/render_message_filter.cc File content/browser/renderer_host/render_message_filter.cc (right): https://codereview.chromium.org/302443008/diff/1/content/browser/renderer_host/render_message_filter.cc#newcode1350 content/browser/renderer_host/render_message_filter.cc:1350: void RenderMessageFilter::GpuMemoryBufferAllocatedOnUI( On 2014/05/27 22:14:20, alexst wrote: > ...
6 years, 6 months ago (2014-05-28 16:00:46 UTC) #3
alexst (slow to review)
Cool, lgtm!
6 years, 6 months ago (2014-05-28 16:05:34 UTC) #4
reveman
+sky for content/browser/
6 years, 6 months ago (2014-05-28 16:30:04 UTC) #5
sky
On 2014/05/28 16:30:04, reveman wrote: > +sky for content/browser/ Can you clarify your description. It ...
6 years, 6 months ago (2014-05-28 16:59:55 UTC) #6
reveman
On 2014/05/28 16:59:55, sky wrote: > On 2014/05/28 16:30:04, reveman wrote: > > +sky for ...
6 years, 6 months ago (2014-05-28 17:12:53 UTC) #7
sky
LGTM - thanks!
6 years, 6 months ago (2014-05-28 18:08:45 UTC) #8
sky
Could you also update the description to match?
6 years, 6 months ago (2014-05-28 18:09:02 UTC) #9
reveman
On 2014/05/28 18:09:02, sky wrote: > Could you also update the description to match? The ...
6 years, 6 months ago (2014-05-28 18:39:46 UTC) #10
reveman
The CQ bit was checked by reveman@chromium.org
6 years, 6 months ago (2014-05-28 18:39:50 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/302443008/40001
6 years, 6 months ago (2014-05-28 18:40:28 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_rel_device_ninja on tryserver.chromium ...
6 years, 6 months ago (2014-05-28 19:16:57 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-28 19:18:35 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/11408)
6 years, 6 months ago (2014-05-28 19:18:36 UTC) #15
piman
drive-by: instead of handling this message on the filter and PostTask, you can simply handle ...
6 years, 6 months ago (2014-05-28 23:15:20 UTC) #16
reveman
Moved handling of ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer to RenderProcessHostImpl.
6 years, 6 months ago (2014-05-30 23:41:14 UTC) #17
alexst (slow to review)
lgtm
6 years, 6 months ago (2014-05-31 02:42:54 UTC) #18
reveman
The CQ bit was checked by reveman@chromium.org
6 years, 6 months ago (2014-05-31 17:48:01 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/302443008/90001
6 years, 6 months ago (2014-05-31 18:55:58 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 6 months ago (2014-05-31 23:39:30 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-31 23:41:03 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/33057)
6 years, 6 months ago (2014-05-31 23:41:03 UTC) #23
reveman
The CQ bit was checked by reveman@chromium.org
6 years, 6 months ago (2014-06-01 19:38:49 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/302443008/110001
6 years, 6 months ago (2014-06-01 19:39:00 UTC) #25
commit-bot: I haz the power
Change committed as 274168
6 years, 6 months ago (2014-06-02 05:40:00 UTC) #26
piman
6 years, 6 months ago (2014-06-02 06:42:51 UTC) #27
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698