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

Issue 1930193002: cc: Add GpuMemoryBufferHandle to TextureMailbox (Closed)

Created:
4 years, 7 months ago by ccameron
Modified:
4 years, 7 months ago
Reviewers:
reveman, jbauman, piman
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, cc-bugs_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, erikchen, jam, piman+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, piman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Add GpuMemoryBufferHandle to TextureMailbox In cc::ResourceProvider, this popualtes the GpuMemoryBuffer handle but does not consume it either in the renderer or in the browser. That change will come in a non-plumbing patch. BUG=604052 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel

Patch Set 1 : Trim #

Total comments: 1

Patch Set 2 : Fix exo #

Patch Set 3 : Fix exo #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -30 lines) Patch
M cc/blink/web_external_texture_layer_impl.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M cc/layers/texture_layer_impl_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/output/gl_renderer_unittest.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M cc/output/overlay_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M cc/resources/texture_mailbox.h View 3 chunks +4 lines, -0 lines 2 comments Download
M cc/resources/texture_mailbox.cc View 2 chunks +18 lines, -6 lines 0 comments Download
M cc/resources/transferable_resource.h View 2 chunks +2 lines, -0 lines 0 comments Download
M cc/resources/video_resource_updater.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M components/exo/buffer.cc View 1 2 2 chunks +8 lines, -8 lines 0 comments Download
M content/common/cc_messages.h View 1 chunk +1 line, -0 lines 1 comment Download

Messages

Total messages: 26 (9 generated)
ccameron
ptal -- just plumbing for now. https://codereview.chromium.org/1930193002/diff/60001/cc/blink/web_external_texture_layer_impl.cc File cc/blink/web_external_texture_layer_impl.cc (right): https://codereview.chromium.org/1930193002/diff/60001/cc/blink/web_external_texture_layer_impl.cc#newcode98 cc/blink/web_external_texture_layer_impl.cc:98: gfx::GpuMemoryBufferHandle(), client_mailbox.allowOverlay, false); ...
4 years, 7 months ago (2016-04-28 23:26:10 UTC) #8
reveman
https://codereview.chromium.org/1930193002/diff/100001/cc/resources/texture_mailbox.h File cc/resources/texture_mailbox.h (right): https://codereview.chromium.org/1930193002/diff/100001/cc/resources/texture_mailbox.h#newcode79 cc/resources/texture_mailbox.h:79: gfx::GpuMemoryBufferHandle gpu_memory_buffer_handle_; Can this be a "gfx::GpuMemoryBuffer*" and the ...
4 years, 7 months ago (2016-04-29 10:05:05 UTC) #9
ccameron
I think the GMBH works a bit better than GMB here (perhaps just on Mac), ...
4 years, 7 months ago (2016-04-29 17:33:33 UTC) #10
ccameron
On 2016/04/29 17:33:33, ccameron wrote: > I think the GMBH works a bit better than ...
4 years, 7 months ago (2016-05-02 17:24:55 UTC) #11
ccameron
pinging this again.
4 years, 7 months ago (2016-05-03 18:00:46 UTC) #12
reveman
Sorry for the delay. This GMB case is very similar to the existing SharedBitmap case ...
4 years, 7 months ago (2016-05-03 18:58:32 UTC) #13
danakj
On 2016/05/03 18:58:32, reveman wrote: > Sorry for the delay. > > This GMB case ...
4 years, 7 months ago (2016-05-03 19:54:18 UTC) #15
ccameron
On 2016/05/03 19:54:18, danakj wrote: > On 2016/05/03 18:58:32, reveman wrote: > > Sorry for ...
4 years, 7 months ago (2016-05-03 20:35:45 UTC) #16
piman
https://codereview.chromium.org/1930193002/diff/100001/content/common/cc_messages.h File content/common/cc_messages.h (right): https://codereview.chromium.org/1930193002/diff/100001/content/common/cc_messages.h#newcode285 content/common/cc_messages.h:285: IPC_STRUCT_TRAITS_MEMBER(gpu_memory_buffer_handle) drive-by: 3 concerns here: 1- this means the ...
4 years, 7 months ago (2016-05-03 23:40:49 UTC) #18
ccameron
On 2016/05/03 23:40:49, piman wrote: > https://codereview.chromium.org/1930193002/diff/100001/content/common/cc_messages.h > File content/common/cc_messages.h (right): > > https://codereview.chromium.org/1930193002/diff/100001/content/common/cc_messages.h#newcode285 > ...
4 years, 7 months ago (2016-05-03 23:54:20 UTC) #19
jbauman
On 2016/05/03 23:40:49, piman wrote: > https://codereview.chromium.org/1930193002/diff/100001/content/common/cc_messages.h > File content/common/cc_messages.h (right): > > https://codereview.chromium.org/1930193002/diff/100001/content/common/cc_messages.h#newcode285 > ...
4 years, 7 months ago (2016-05-03 23:58:46 UTC) #20
jbauman
On 2016/05/03 23:54:20, ccameron wrote: > On 2016/05/03 23:40:49, piman wrote: > > > https://codereview.chromium.org/1930193002/diff/100001/content/common/cc_messages.h ...
4 years, 7 months ago (2016-05-04 00:07:25 UTC) #21
piman
On Tue, May 3, 2016 at 4:54 PM, <ccameron@chromium.org> wrote: > On 2016/05/03 23:40:49, piman ...
4 years, 7 months ago (2016-05-04 00:18:29 UTC) #22
ccameron
On 2016/05/04 00:18:29, piman wrote: > On Tue, May 3, 2016 at 4:54 PM, <mailto:ccameron@chromium.org> ...
4 years, 7 months ago (2016-05-04 00:22:21 UTC) #23
ccameron
Btw, would it be possible to pass around the gfx::GpuMemoryBufferId instead? And then look it ...
4 years, 7 months ago (2016-05-04 00:27:43 UTC) #24
piman
On Tue, May 3, 2016 at 5:22 PM, <ccameron@chromium.org> wrote: > On 2016/05/04 00:18:29, piman ...
4 years, 7 months ago (2016-05-04 00:39:59 UTC) #25
reveman
4 years, 7 months ago (2016-05-05 09:38:36 UTC) #26
On 2016/05/04 at 00:27:43, ccameron wrote:
> Btw, would it be possible to pass around the gfx::GpuMemoryBufferId instead?
And then look it up from creation time in the browser process?

Yes, the gfx::GpuMemoryBufferId is in some sense the equivalent of
SharedBitmapId so that sgtm. I'd like to handle SharedBitmaps and GMBs
consistently as it will allow us to easily remove SharedBitmaps in favor of
shmem backed GMBs in the future. ie. a SharedBitmap can be a small wrapper
around GpuMemoryBufferImplSharedMemory.

Powered by Google App Engine
This is Rietveld 408576698