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

Issue 302603004: Plumb GpuMemoryBuffer allocation to GPU process. (Closed)

Created:
6 years, 7 months ago by alexst (slow to review)
Modified:
6 years, 6 months ago
Reviewers:
kenrb, reveman, piman
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Plumb GpuMemoryBuffer allocation to GPU process. BUG=368716 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276738

Patch Set 1 : #

Patch Set 2 : #

Total comments: 10

Patch Set 3 : WIP #

Total comments: 2

Patch Set 4 : #

Total comments: 4

Patch Set 5 : Comments #

Total comments: 5

Patch Set 6 : rebase #

Patch Set 7 : Comments #

Total comments: 2

Patch Set 8 : Changed to size #

Total comments: 2

Patch Set 9 : #

Total comments: 5

Patch Set 10 : added a map #

Total comments: 7

Patch Set 11 : removed static #

Total comments: 6

Patch Set 12 : nits #

Total comments: 8

Patch Set 13 : nits #

Patch Set 14 : Fix Complex constructor has an inlined body clang error #

Patch Set 15 : fix shared library build #

Patch Set 16 : win build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+290 lines, -16 lines) Patch
M content/browser/gpu/browser_gpu_channel_host_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +32 lines, -1 line 0 comments Download
M content/browser/gpu/browser_gpu_channel_host_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +88 lines, -1 line 0 comments Download
M content/browser/gpu/gpu_process_host.h View 1 2 3 4 5 6 7 5 chunks +18 lines, -0 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 2 3 4 5 6 7 3 chunks +43 lines, -0 lines 0 comments Download
M content/common/child_process_messages.h View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
A content/common/gpu/client/gpu_memory_buffer_factory_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +37 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_channel_manager.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_channel_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +15 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_messages.h View 1 2 3 4 5 6 7 8 2 chunks +16 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/gpu_memory_buffer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +13 lines, -14 lines 0 comments Download
M ui/gfx/gpu_memory_buffer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 47 (0 generated)
alexst (slow to review)
This is very rough still. Uploading a draft for early feedback to make sure I ...
6 years, 7 months ago (2014-05-27 18:15:57 UTC) #1
reveman
https://codereview.chromium.org/302603004/diff/40001/content/browser/gpu/browser_gpu_channel_host_factory.h File content/browser/gpu/browser_gpu_channel_host_factory.h (right): https://codereview.chromium.org/302603004/diff/40001/content/browser/gpu/browser_gpu_channel_host_factory.h#newcode44 content/browser/gpu/browser_gpu_channel_host_factory.h:44: virtual void AllocateGpuMemoryBufferAsync( I'd like to have this replace ...
6 years, 7 months ago (2014-05-27 22:46:01 UTC) #2
alexst (slow to review)
Thanks for clarification, responses inline. https://codereview.chromium.org/302603004/diff/40001/content/browser/gpu/browser_gpu_channel_host_factory.h File content/browser/gpu/browser_gpu_channel_host_factory.h (right): https://codereview.chromium.org/302603004/diff/40001/content/browser/gpu/browser_gpu_channel_host_factory.h#newcode44 content/browser/gpu/browser_gpu_channel_host_factory.h:44: virtual void AllocateGpuMemoryBufferAsync( On ...
6 years, 6 months ago (2014-05-28 14:18:57 UTC) #3
reveman
https://codereview.chromium.org/302603004/diff/40001/content/browser/gpu/browser_gpu_channel_host_factory.h File content/browser/gpu/browser_gpu_channel_host_factory.h (right): https://codereview.chromium.org/302603004/diff/40001/content/browser/gpu/browser_gpu_channel_host_factory.h#newcode44 content/browser/gpu/browser_gpu_channel_host_factory.h:44: virtual void AllocateGpuMemoryBufferAsync( On 2014/05/28 14:18:57, alexst wrote: > ...
6 years, 6 months ago (2014-05-28 16:42:25 UTC) #4
alexst (slow to review)
Okay, round 2 for more feedback. I'd like to break things up into a couple ...
6 years, 6 months ago (2014-05-30 22:41:46 UTC) #5
reveman
https://codereview.chromium.org/302603004/diff/120001/ui/gfx/gpu_memory_buffer.h File ui/gfx/gpu_memory_buffer.h (right): https://codereview.chromium.org/302603004/diff/120001/ui/gfx/gpu_memory_buffer.h#newcode33 ui/gfx/gpu_memory_buffer.h:33: base::ProcessId secondary_id; On 2014/05/30 22:41:47, alexst wrote: > I'm ...
6 years, 6 months ago (2014-05-31 00:34:02 UTC) #6
alexst (slow to review)
ptal https://codereview.chromium.org/302603004/diff/140001/ui/gfx/gpu_memory_buffer.h File ui/gfx/gpu_memory_buffer.h (right): https://codereview.chromium.org/302603004/diff/140001/ui/gfx/gpu_memory_buffer.h#newcode61 ui/gfx/gpu_memory_buffer.h:61: GpuMemoryBufferId gpu_memory_id; On 2014/05/31 00:34:02, reveman wrote: > ...
6 years, 6 months ago (2014-06-02 19:19:45 UTC) #7
reveman
https://codereview.chromium.org/302603004/diff/150001/content/common/gpu/client/gpu_channel_host.h File content/common/gpu/client/gpu_channel_host.h (right): https://codereview.chromium.org/302603004/diff/150001/content/common/gpu/client/gpu_channel_host.h#newcode87 content/common/gpu/client/gpu_channel_host.h:87: class CONTENT_EXPORT GpuChannelHostGpuBufferFactory { We need a better name ...
6 years, 6 months ago (2014-06-02 22:47:33 UTC) #8
alexst (slow to review)
Addressed comments, and please excuse the slow turnaround time, I was on vacation all of ...
6 years, 6 months ago (2014-06-09 03:23:13 UTC) #9
reveman
https://codereview.chromium.org/302603004/diff/210001/content/common/gpu/client/gpu_memory_buffer_factory_host.h File content/common/gpu/client/gpu_memory_buffer_factory_host.h (right): https://codereview.chromium.org/302603004/diff/210001/content/common/gpu/client/gpu_memory_buffer_factory_host.h#newcode14 content/common/gpu/client/gpu_memory_buffer_factory_host.h:14: class GpuMemoryBufferFactoryHost { We'll need static Set/GetInstance functions for ...
6 years, 6 months ago (2014-06-09 14:35:21 UTC) #10
alexst (slow to review)
> We'll need static Set/GetInstance functions for GpuMemoryBufferImpls to access > this but you can ...
6 years, 6 months ago (2014-06-09 15:03:50 UTC) #11
reveman
lgtm with a question/possible change and small nit https://codereview.chromium.org/302603004/diff/230001/content/common/gpu/client/gpu_memory_buffer_impl.h File content/common/gpu/client/gpu_memory_buffer_impl.h (right): https://codereview.chromium.org/302603004/diff/230001/content/common/gpu/client/gpu_memory_buffer_impl.h#newcode36 content/common/gpu/client/gpu_memory_buffer_impl.h:36: int ...
6 years, 6 months ago (2014-06-09 23:27:59 UTC) #12
alexst (slow to review)
> https://codereview.chromium.org/302603004/diff/230001/content/common/gpu/client/gpu_memory_buffer_impl.h#newcode36 > content/common/gpu/client/gpu_memory_buffer_impl.h:36: int child_id, > This seems fine unless there's some existing mechanism ...
6 years, 6 months ago (2014-06-10 01:30:58 UTC) #13
alexst (slow to review)
On 2014/06/10 01:30:58, alexst wrote: > > > https://codereview.chromium.org/302603004/diff/230001/content/common/gpu/client/gpu_memory_buffer_impl.h#newcode36 > > content/common/gpu/client/gpu_memory_buffer_impl.h:36: int child_id, > ...
6 years, 6 months ago (2014-06-10 02:04:33 UTC) #14
piman
https://codereview.chromium.org/302603004/diff/250001/content/browser/gpu/browser_gpu_channel_host_factory.cc File content/browser/gpu/browser_gpu_channel_host_factory.cc (right): https://codereview.chromium.org/302603004/diff/250001/content/browser/gpu/browser_gpu_channel_host_factory.cc#newcode487 content/browser/gpu/browser_gpu_channel_host_factory.cc:487: callback)); This pattern, passing a callback to another thread, ...
6 years, 6 months ago (2014-06-10 02:48:13 UTC) #15
alexst (slow to review)
Added a map to account for failure conditions that happen out of order, please PTAL. ...
6 years, 6 months ago (2014-06-10 04:38:25 UTC) #16
reveman
https://codereview.chromium.org/302603004/diff/270001/content/browser/gpu/browser_gpu_channel_host_factory.cc File content/browser/gpu/browser_gpu_channel_host_factory.cc (right): https://codereview.chromium.org/302603004/diff/270001/content/browser/gpu/browser_gpu_channel_host_factory.cc#newcode542 content/browser/gpu/browser_gpu_channel_host_factory.cc:542: DCHECK(instance_); can you avoid the use of |instance_| here ...
6 years, 6 months ago (2014-06-10 13:39:00 UTC) #17
alexst (slow to review)
https://codereview.chromium.org/302603004/diff/270001/content/browser/gpu/browser_gpu_channel_host_factory.cc File content/browser/gpu/browser_gpu_channel_host_factory.cc (right): https://codereview.chromium.org/302603004/diff/270001/content/browser/gpu/browser_gpu_channel_host_factory.cc#newcode542 content/browser/gpu/browser_gpu_channel_host_factory.cc:542: DCHECK(instance_); On 2014/06/10 13:39:00, reveman (ooo until jun 11) ...
6 years, 6 months ago (2014-06-10 14:22:44 UTC) #18
kenrb
ipc lgtm
6 years, 6 months ago (2014-06-10 14:38:27 UTC) #19
reveman
https://codereview.chromium.org/302603004/diff/270001/content/browser/gpu/browser_gpu_channel_host_factory.h File content/browser/gpu/browser_gpu_channel_host_factory.h (right): https://codereview.chromium.org/302603004/diff/270001/content/browser/gpu/browser_gpu_channel_host_factory.h#newcode125 content/browser/gpu/browser_gpu_channel_host_factory.h:125: CreateGpuMemoryBufferCallbackMap create_gpu_memory_buffer_requests_; On 2014/06/10 14:22:44, alexst wrote: > On ...
6 years, 6 months ago (2014-06-10 16:01:32 UTC) #20
alexst (slow to review)
> > I added a map because CreateGpuMemoryBufferOnIO failing early would be > > potentially ...
6 years, 6 months ago (2014-06-10 17:06:57 UTC) #21
piman
lgtm https://codereview.chromium.org/302603004/diff/250001/content/browser/gpu/browser_gpu_channel_host_factory.cc File content/browser/gpu/browser_gpu_channel_host_factory.cc (right): https://codereview.chromium.org/302603004/diff/250001/content/browser/gpu/browser_gpu_channel_host_factory.cc#newcode487 content/browser/gpu/browser_gpu_channel_host_factory.cc:487: callback)); On 2014/06/10 04:38:25, alexst wrote: > On ...
6 years, 6 months ago (2014-06-10 23:11:31 UTC) #22
reveman
https://codereview.chromium.org/302603004/diff/290001/content/browser/gpu/browser_gpu_channel_host_factory.h File content/browser/gpu/browser_gpu_channel_host_factory.h (right): https://codereview.chromium.org/302603004/diff/290001/content/browser/gpu/browser_gpu_channel_host_factory.h#newcode122 content/browser/gpu/browser_gpu_channel_host_factory.h:122: int32 next_create_gpu_memory_buffer_request_id_; how about uint32 instead? in case this ...
6 years, 6 months ago (2014-06-11 13:46:07 UTC) #23
reveman
https://codereview.chromium.org/302603004/diff/290001/content/common/gpu/client/gpu_memory_buffer_factory_host.h File content/common/gpu/client/gpu_memory_buffer_factory_host.h (right): https://codereview.chromium.org/302603004/diff/290001/content/common/gpu/client/gpu_memory_buffer_factory_host.h#newcode7 content/common/gpu/client/gpu_memory_buffer_factory_host.h:7: include base/callback.h https://codereview.chromium.org/302603004/diff/290001/content/common/gpu/gpu_channel_manager.cc File content/common/gpu/gpu_channel_manager.cc (right): https://codereview.chromium.org/302603004/diff/290001/content/common/gpu/gpu_channel_manager.cc#newcode271 content/common/gpu/gpu_channel_manager.cc:271: NOTIMPLEMENTED(); ...
6 years, 6 months ago (2014-06-11 14:03:22 UTC) #24
alexst (slow to review)
patch https://codereview.chromium.org/302603004/diff/290001/content/browser/gpu/browser_gpu_channel_host_factory.h File content/browser/gpu/browser_gpu_channel_host_factory.h (right): https://codereview.chromium.org/302603004/diff/290001/content/browser/gpu/browser_gpu_channel_host_factory.h#newcode122 content/browser/gpu/browser_gpu_channel_host_factory.h:122: int32 next_create_gpu_memory_buffer_request_id_; On 2014/06/11 13:46:07, reveman wrote: > ...
6 years, 6 months ago (2014-06-11 14:18:59 UTC) #25
reveman
lgtm after addressing this last set of comments https://codereview.chromium.org/302603004/diff/310001/content/browser/gpu/browser_gpu_channel_host_factory.cc File content/browser/gpu/browser_gpu_channel_host_factory.cc (right): https://codereview.chromium.org/302603004/diff/310001/content/browser/gpu/browser_gpu_channel_host_factory.cc#newcode480 content/browser/gpu/browser_gpu_channel_host_factory.cc:480: int32 ...
6 years, 6 months ago (2014-06-11 14:52:09 UTC) #26
alexst (slow to review)
https://codereview.chromium.org/302603004/diff/310001/content/browser/gpu/browser_gpu_channel_host_factory.cc File content/browser/gpu/browser_gpu_channel_host_factory.cc (right): https://codereview.chromium.org/302603004/diff/310001/content/browser/gpu/browser_gpu_channel_host_factory.cc#newcode540 content/browser/gpu/browser_gpu_channel_host_factory.cc:540: int32 request_id, On 2014/06/11 14:52:09, reveman wrote: > uint32 ...
6 years, 6 months ago (2014-06-11 15:36:47 UTC) #27
alexst (slow to review)
The CQ bit was checked by alexst@chromium.org
6 years, 6 months ago (2014-06-11 15:36:55 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexst@chromium.org/302603004/330001
6 years, 6 months ago (2014-06-11 15:38:23 UTC) #29
alexst (slow to review)
The CQ bit was checked by alexst@chromium.org
6 years, 6 months ago (2014-06-11 16:04:12 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexst@chromium.org/302603004/350001
6 years, 6 months ago (2014-06-11 16:05:34 UTC) #31
alexst (slow to review)
The CQ bit was checked by alexst@chromium.org
6 years, 6 months ago (2014-06-11 19:25:52 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexst@chromium.org/302603004/370001
6 years, 6 months ago (2014-06-11 19:28:47 UTC) #33
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 22:59:25 UTC) #34
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 23:03:05 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_rel/builds/38130) win_chromium_compile_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_compile_dbg/builds/28058) win_chromium_x64_rel ...
6 years, 6 months ago (2014-06-11 23:03:06 UTC) #36
alexst (slow to review)
The CQ bit was checked by alexst@chromium.org
6 years, 6 months ago (2014-06-12 01:26:42 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexst@chromium.org/302603004/370001
6 years, 6 months ago (2014-06-12 01:28:53 UTC) #38
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_compile_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-12 07:24:52 UTC) #39
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-12 10:40:37 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_compile_dbg/builds/28245)
6 years, 6 months ago (2014-06-12 10:40:38 UTC) #41
alexst (slow to review)
The CQ bit was checked by alexst@chromium.org
6 years, 6 months ago (2014-06-12 12:07:31 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexst@chromium.org/302603004/370001
6 years, 6 months ago (2014-06-12 12:10:11 UTC) #43
alexst (slow to review)
The CQ bit was checked by alexst@chromium.org
6 years, 6 months ago (2014-06-12 13:20:15 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexst@chromium.org/302603004/390001
6 years, 6 months ago (2014-06-12 13:22:11 UTC) #45
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-12 15:10:44 UTC) #46
commit-bot: I haz the power
6 years, 6 months ago (2014-06-12 18:07:56 UTC) #47
Message was sent while issue was closed.
Change committed as 276738

Powered by Google App Engine
This is Rietveld 408576698