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

Issue 1050923003: zero-copy: Clarify to allocate/destroy GpuMemoryBuffer on any thread and use it on the main thread o (Closed)

Created:
5 years, 8 months ago by dshwang
Modified:
5 years, 8 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, kalyank, ozone-reviews_chromium.org, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

zero-copy: Clarify to allocate/destroy GpuMemoryBuffer on any thread and use it on the main thread only Add many thread check to clarify it. BUG=473125 Committed: https://crrev.com/d041a28b7aa47ff1d0ff3cca7387a643729b0287 Cr-Commit-Position: refs/heads/master@{#324382}

Patch Set 1 #

Total comments: 4

Patch Set 2 : make surface_factory_ozone interface clean #

Patch Set 3 : move GpuMemoryBuffer to main thread after creation in IO thread #

Patch Set 4 : just add thread check #

Total comments: 11

Patch Set 5 : rollback unrelated ozone changes #

Patch Set 6 : thread check in gl image #

Total comments: 2

Patch Set 7 : rephrase comment in gpu_channel_manager.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -2 lines) Patch
M content/common/gpu/gpu_channel_manager.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory.h View 1 2 3 3 chunks +5 lines, -2 lines 0 comments Download
M ui/gl/gl_image_egl.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M ui/gl/gl_image_egl.cc View 1 2 3 4 5 6 3 chunks +4 lines, -0 lines 0 comments Download
M ui/gl/gl_image_io_surface.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M ui/gl/gl_image_io_surface.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M ui/gl/gl_image_surface_texture.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M ui/gl/gl_image_surface_texture.cc View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M ui/ozone/gpu/gpu_memory_buffer_factory_ozone_native_buffer.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (10 generated)
dshwang
reveman@, there is the way to avoid thread safe ref counted. This CL fixes all ...
5 years, 8 months ago (2015-04-01 19:03:42 UTC) #2
spang
5 years, 8 months ago (2015-04-01 19:05:23 UTC) #4
reveman
lgtm % alexst review and moving the thread checker https://codereview.chromium.org/1050923003/diff/1/ui/ozone/public/surface_factory_ozone.h File ui/ozone/public/surface_factory_ozone.h (right): https://codereview.chromium.org/1050923003/diff/1/ui/ozone/public/surface_factory_ozone.h#newcode171 ui/ozone/public/surface_factory_ozone.h:171: ...
5 years, 8 months ago (2015-04-01 19:22:21 UTC) #5
dshwang
On 2015/04/01 19:22:21, reveman wrote: > lgtm % alexst review and moving the thread checker ...
5 years, 8 months ago (2015-04-02 07:56:05 UTC) #6
reveman
https://codereview.chromium.org/1050923003/diff/1/ui/ozone/public/surface_factory_ozone.h File ui/ozone/public/surface_factory_ozone.h (right): https://codereview.chromium.org/1050923003/diff/1/ui/ozone/public/surface_factory_ozone.h#newcode171 ui/ozone/public/surface_factory_ozone.h:171: base::ThreadChecker thread_checker_; On 2015/04/02 07:56:05, dshwang wrote: > On ...
5 years, 8 months ago (2015-04-02 12:35:39 UTC) #7
dshwang
alexst@, could you review it in terms of GpuMemoryBuffer design? spang@, could you review ui/ ...
5 years, 8 months ago (2015-04-02 14:26:27 UTC) #9
reveman
-lcwu -sievers -spang Please wait for alexst@'s feedback before you move forward with this. I ...
5 years, 8 months ago (2015-04-02 14:41:59 UTC) #11
dshwang
On 2015/04/02 14:41:59, reveman wrote: > -lcwu > -sievers > -spang > > Please wait ...
5 years, 8 months ago (2015-04-02 15:07:36 UTC) #12
reveman
On 2015/04/02 at 15:07:36, dongseong.hwang wrote: > On 2015/04/02 14:41:59, reveman wrote: > > -lcwu ...
5 years, 8 months ago (2015-04-02 15:30:06 UTC) #13
alexst (slow to review)
On 2015/04/02 15:30:06, reveman wrote: > On 2015/04/02 at 15:07:36, dongseong.hwang wrote: > > On ...
5 years, 8 months ago (2015-04-02 16:41:15 UTC) #14
dshwang
On 2015/04/02 16:41:15, alexst wrote: > I am not necessarily a fan of this thread ...
5 years, 8 months ago (2015-04-06 17:57:45 UTC) #16
reveman
On 2015/04/06 at 17:57:45, dongseong.hwang wrote: > On 2015/04/02 16:41:15, alexst wrote: > > I ...
5 years, 8 months ago (2015-04-06 18:20:20 UTC) #17
dshwang
On 2015/04/06 18:20:20, reveman wrote: > The current requirement for these object are; allocated/destroy on ...
5 years, 8 months ago (2015-04-07 05:08:00 UTC) #19
reveman
sorry, I'm failing to see how all these ui/ozone changes are related. is it not ...
5 years, 8 months ago (2015-04-07 13:07:05 UTC) #20
dshwang
On 2015/04/07 13:07:05, reveman wrote: > sorry, I'm failing to see how all these ui/ozone ...
5 years, 8 months ago (2015-04-07 14:04:27 UTC) #21
reveman
https://codereview.chromium.org/1050923003/diff/90020/content/common/gpu/gpu_memory_buffer_factory_io_surface.cc File content/common/gpu/gpu_memory_buffer_factory_io_surface.cc (right): https://codereview.chromium.org/1050923003/diff/90020/content/common/gpu/gpu_memory_buffer_factory_io_surface.cc#newcode162 content/common/gpu/gpu_memory_buffer_factory_io_surface.cc:162: DCHECK(thread_checker_.CalledOnValidThread()); On 2015/04/07 14:04:26, dshwang wrote: > On 2015/04/07 ...
5 years, 8 months ago (2015-04-07 14:22:00 UTC) #23
dshwang
On 2015/04/07 14:22:00, reveman wrote: > https://codereview.chromium.org/1050923003/diff/90020/content/common/gpu/gpu_memory_buffer_factory_io_surface.cc > File content/common/gpu/gpu_memory_buffer_factory_io_surface.cc (right): > > https://codereview.chromium.org/1050923003/diff/90020/content/common/gpu/gpu_memory_buffer_factory_io_surface.cc#newcode162 > ...
5 years, 8 months ago (2015-04-07 14:54:48 UTC) #24
reveman
On 2015/04/07 at 14:54:48, dongseong.hwang wrote: > On 2015/04/07 14:22:00, reveman wrote: > > https://codereview.chromium.org/1050923003/diff/90020/content/common/gpu/gpu_memory_buffer_factory_io_surface.cc ...
5 years, 8 months ago (2015-04-07 16:19:01 UTC) #25
dshwang
On 2015/04/07 16:19:01, reveman wrote: > > Indeed, but CreateImageForGpuMemoryBuffer() is reason why all > ...
5 years, 8 months ago (2015-04-07 16:50:38 UTC) #26
reveman
lgtm
5 years, 8 months ago (2015-04-07 17:34:44 UTC) #27
alexst (slow to review)
lgtm
5 years, 8 months ago (2015-04-07 17:51:16 UTC) #28
dshwang
Thanks for reviewing! sievers@, could you review content/common/gpu/gpu_channel_manager.cc ?
5 years, 8 months ago (2015-04-08 06:04:43 UTC) #30
no sievers
lgtm stamp for adding comment https://codereview.chromium.org/1050923003/diff/150001/content/common/gpu/gpu_channel_manager.cc File content/common/gpu/gpu_channel_manager.cc (right): https://codereview.chromium.org/1050923003/diff/150001/content/common/gpu/gpu_channel_manager.cc#newcode63 content/common/gpu/gpu_channel_manager.cc:63: // Bouncing off only ...
5 years, 8 months ago (2015-04-08 18:51:35 UTC) #31
dshwang
thx for reviewing https://codereview.chromium.org/1050923003/diff/150001/content/common/gpu/gpu_channel_manager.cc File content/common/gpu/gpu_channel_manager.cc (right): https://codereview.chromium.org/1050923003/diff/150001/content/common/gpu/gpu_channel_manager.cc#newcode63 content/common/gpu/gpu_channel_manager.cc:63: // Bouncing off only GPU IO ...
5 years, 8 months ago (2015-04-09 04:06:18 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1050923003/170001
5 years, 8 months ago (2015-04-09 04:07:11 UTC) #35
commit-bot: I haz the power
Committed patchset #7 (id:170001)
5 years, 8 months ago (2015-04-09 05:34:43 UTC) #36
commit-bot: I haz the power
5 years, 8 months ago (2015-04-09 05:35:29 UTC) #37
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/d041a28b7aa47ff1d0ff3cca7387a643729b0287
Cr-Commit-Position: refs/heads/master@{#324382}

Powered by Google App Engine
This is Rietveld 408576698