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

Issue 600693002: content: Cleanup GpuMemoryBufferImpl destruction. (Closed)

Created:
6 years, 3 months ago by reveman
Modified:
6 years, 3 months ago
CC:
chromium-reviews, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, darin-cc_chromium.org, kalyank, mkwst+moarreviews-renderer_chromium.org, piman+watch_chromium.org, danakj+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

content: Cleanup GpuMemoryBufferImpl destruction. Use an internal callback instead of requiring the client to pass a scoped_ptr<> to a "Delete" function. BUG=416873 Committed: https://crrev.com/fdf0a9f6d6f29d68a0a55507f912bd82688303b1 Cr-Commit-Position: refs/heads/master@{#296411}

Patch Set 1 #

Total comments: 10

Patch Set 2 : address review feedback #

Total comments: 2

Patch Set 3 : fix android typo #

Patch Set 4 : another android build fix #

Patch Set 5 : android build fix #

Patch Set 6 : remove scoped_refptr<> from sender param of DeletedGpuMemoryBuffer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+263 lines, -246 lines) Patch
M content/browser/gpu/browser_gpu_channel_host_factory.h View 2 chunks +0 lines, -4 lines 0 comments Download
M content/browser/gpu/browser_gpu_channel_host_factory.cc View 2 chunks +0 lines, -15 lines 0 comments Download
M content/common/gpu/client/command_buffer_proxy_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/client/gpu_channel_host.h View 1 chunk +0 lines, -2 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl.h View 1 3 chunks +10 lines, -3 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl.cc View 1 1 chunk +9 lines, -3 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_android.cc View 1 2 2 chunks +9 lines, -18 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_io_surface.h View 1 2 chunks +11 lines, -4 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_io_surface.cc View 1 2 chunks +25 lines, -16 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_linux.cc View 1 2 chunks +6 lines, -10 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_mac.cc View 1 2 chunks +9 lines, -18 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_ozone.cc View 1 2 chunks +11 lines, -21 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.h View 1 2 chunks +15 lines, -14 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.cc View 1 6 chunks +24 lines, -18 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h View 1 3 chunks +14 lines, -12 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc View 1 4 chunks +40 lines, -29 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.h View 1 2 3 2 chunks +13 lines, -5 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc View 1 2 3 4 2 chunks +37 lines, -28 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_win.cc View 1 2 chunks +6 lines, -10 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 chunk +0 lines, -2 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 3 chunks +23 lines, -13 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
reveman
I think this is a nicer way to handle deletion of these buffers. I'm hoping ...
6 years, 3 months ago (2014-09-24 01:15:46 UTC) #2
piman
https://codereview.chromium.org/600693002/diff/1/content/common/gpu/client/gpu_memory_buffer_impl.h File content/common/gpu/client/gpu_memory_buffer_impl.h (right): https://codereview.chromium.org/600693002/diff/1/content/common/gpu/client/gpu_memory_buffer_impl.h#newcode55 content/common/gpu/client/gpu_memory_buffer_impl.h:55: const DestructionCallback& callback); nit: I think it should be ...
6 years, 3 months ago (2014-09-24 03:19:11 UTC) #3
reveman
PTAL https://codereview.chromium.org/600693002/diff/1/content/common/gpu/client/gpu_memory_buffer_impl.h File content/common/gpu/client/gpu_memory_buffer_impl.h (right): https://codereview.chromium.org/600693002/diff/1/content/common/gpu/client/gpu_memory_buffer_impl.h#newcode55 content/common/gpu/client/gpu_memory_buffer_impl.h:55: const DestructionCallback& callback); On 2014/09/24 03:19:10, piman (Very ...
6 years, 3 months ago (2014-09-24 06:03:38 UTC) #4
piman
lgtm https://codereview.chromium.org/600693002/diff/1/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/600693002/diff/1/content/renderer/render_thread_impl.cc#newcode1313 content/renderer/render_thread_impl.cc:1313: make_scoped_refptr(thread_safe_sender()), On 2014/09/24 06:03:38, reveman wrote: > On ...
6 years, 3 months ago (2014-09-24 06:40:28 UTC) #5
reveman
https://codereview.chromium.org/600693002/diff/1/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/600693002/diff/1/content/renderer/render_thread_impl.cc#newcode1313 content/renderer/render_thread_impl.cc:1313: make_scoped_refptr(thread_safe_sender()), On 2014/09/24 06:40:28, piman (Very slow to review) ...
6 years, 3 months ago (2014-09-24 07:10:54 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/600693002/60001
6 years, 3 months ago (2014-09-24 07:12:40 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/11839)
6 years, 3 months ago (2014-09-24 07:27:15 UTC) #10
piman
On Wed, Sep 24, 2014 at 12:10 AM, <reveman@chromium.org> wrote: > > https://codereview.chromium.org/600693002/diff/1/content/ > renderer/render_thread_impl.cc ...
6 years, 3 months ago (2014-09-24 07:58:32 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/600693002/100001
6 years, 3 months ago (2014-09-24 13:48:11 UTC) #13
reveman
On 2014/09/24 07:58:32, piman (Very slow to review) wrote: > On Wed, Sep 24, 2014 ...
6 years, 3 months ago (2014-09-24 13:48:27 UTC) #14
commit-bot: I haz the power
Committed patchset #6 (id:100001) as 12332e114e2d42b3c6b1244f09b6738b04cf1691
6 years, 3 months ago (2014-09-24 14:47:57 UTC) #15
commit-bot: I haz the power
6 years, 3 months ago (2014-09-24 14:48:30 UTC) #16
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/fdf0a9f6d6f29d68a0a55507f912bd82688303b1
Cr-Commit-Position: refs/heads/master@{#296411}

Powered by Google App Engine
This is Rietveld 408576698