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

Issue 263553009: content: Cleanup GpuMemoryBuffer allocation. (Closed)

Created:
6 years, 7 months ago by reveman
Modified:
6 years, 7 months ago
Reviewers:
piman
CC:
chromium-reviews, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org
Visibility:
Public.

Description

content: Cleanup GpuMemoryBuffer allocation. This moves implementation of GpuMemoryBuffer allocation to each specific gpu_memory_buffer_impl_|TYPE| file and the platform specific decision about what implementation to use into gpu_memory_buffer_impl_|PLATFORM| files. Android and MacOSX code is currently tied to the browser and can't be moved to each specific GpuMemoryBuffer implementation. This will be fixed by follow up changes. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269327

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : Remove use of ChildProcessHostImpl and use base::CheckedNumeric #

Total comments: 5

Patch Set 6 : cleanup supported format checks a bit more #

Patch Set 7 : #

Patch Set 8 : rebase and move config check to platform specific files #

Patch Set 9 : make ST and IOSurface code more consitent #

Patch Set 10 : mac build fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+320 lines, -100 lines) Patch
M content/browser/gpu/browser_gpu_channel_host_factory.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -13 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 5 6 7 8 4 chunks +20 lines, -27 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl.h View 1 2 3 4 5 6 7 1 chunk +29 lines, -7 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl.cc View 1 2 3 4 5 6 7 2 chunks +1 line, -5 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_android.cc View 1 2 3 4 5 6 7 2 chunks +39 lines, -3 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_io_surface.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_io_surface.cc View 1 2 3 4 5 6 7 8 3 chunks +10 lines, -2 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_linux.cc View 1 2 3 4 5 6 7 1 chunk +38 lines, -2 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_mac.cc View 1 2 3 4 5 6 7 2 chunks +39 lines, -3 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_shm.h View 1 2 3 4 5 6 7 8 1 chunk +17 lines, -5 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_shm.cc View 1 2 3 4 5 6 7 3 chunks +51 lines, -8 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.h View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -4 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc View 1 2 3 4 5 6 7 8 3 chunks +23 lines, -14 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_win.cc View 1 2 3 4 5 6 7 1 chunk +38 lines, -2 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
reveman
6 years, 7 months ago (2014-05-02 21:54:19 UTC) #1
piman
https://codereview.chromium.org/263553009/diff/60001/content/common/gpu/client/gpu_memory_buffer_impl_shm.cc File content/common/gpu/client/gpu_memory_buffer_impl_shm.cc (right): https://codereview.chromium.org/263553009/diff/60001/content/common/gpu/client/gpu_memory_buffer_impl_shm.cc#newcode31 content/common/gpu/client/gpu_memory_buffer_impl_shm.cc:31: static_cast<uint64>(size.width()) * BytesPerPixel(internalformat); use base::CheckedNumeric here and below https://codereview.chromium.org/263553009/diff/60001/content/common/gpu/client/gpu_memory_buffer_impl_shm.cc#newcode44 ...
6 years, 7 months ago (2014-05-02 22:26:51 UTC) #2
reveman
PTAL https://codereview.chromium.org/263553009/diff/60001/content/common/gpu/client/gpu_memory_buffer_impl_shm.cc File content/common/gpu/client/gpu_memory_buffer_impl_shm.cc (right): https://codereview.chromium.org/263553009/diff/60001/content/common/gpu/client/gpu_memory_buffer_impl_shm.cc#newcode31 content/common/gpu/client/gpu_memory_buffer_impl_shm.cc:31: static_cast<uint64>(size.width()) * BytesPerPixel(internalformat); On 2014/05/02 22:26:51, piman wrote: ...
6 years, 7 months ago (2014-05-03 00:59:48 UTC) #3
piman
https://codereview.chromium.org/263553009/diff/70001/content/common/gpu/client/gpu_memory_buffer_impl_shm.cc File content/common/gpu/client/gpu_memory_buffer_impl_shm.cc (right): https://codereview.chromium.org/263553009/diff/70001/content/common/gpu/client/gpu_memory_buffer_impl_shm.cc#newcode23 content/common/gpu/client/gpu_memory_buffer_impl_shm.cc:23: base::CheckedNumeric<size_t> buffer_size = size.GetArea(); Actually, GetArea can overflow too ...
6 years, 7 months ago (2014-05-05 19:23:50 UTC) #4
danakj
https://codereview.chromium.org/263553009/diff/70001/content/common/gpu/client/gpu_memory_buffer_impl_shm.cc File content/common/gpu/client/gpu_memory_buffer_impl_shm.cc (right): https://codereview.chromium.org/263553009/diff/70001/content/common/gpu/client/gpu_memory_buffer_impl_shm.cc#newcode23 content/common/gpu/client/gpu_memory_buffer_impl_shm.cc:23: base::CheckedNumeric<size_t> buffer_size = size.GetArea(); On 2014/05/05 19:23:51, piman wrote: ...
6 years, 7 months ago (2014-05-05 19:27:24 UTC) #5
reveman
https://codereview.chromium.org/263553009/diff/70001/content/common/gpu/client/gpu_memory_buffer_impl_shm.cc File content/common/gpu/client/gpu_memory_buffer_impl_shm.cc (right): https://codereview.chromium.org/263553009/diff/70001/content/common/gpu/client/gpu_memory_buffer_impl_shm.cc#newcode23 content/common/gpu/client/gpu_memory_buffer_impl_shm.cc:23: base::CheckedNumeric<size_t> buffer_size = size.GetArea(); On 2014/05/05 19:23:51, piman wrote: ...
6 years, 7 months ago (2014-05-05 20:41:23 UTC) #6
piman
https://codereview.chromium.org/263553009/diff/70001/content/common/gpu/client/gpu_memory_buffer_impl_shm.cc File content/common/gpu/client/gpu_memory_buffer_impl_shm.cc (right): https://codereview.chromium.org/263553009/diff/70001/content/common/gpu/client/gpu_memory_buffer_impl_shm.cc#newcode23 content/common/gpu/client/gpu_memory_buffer_impl_shm.cc:23: base::CheckedNumeric<size_t> buffer_size = size.GetArea(); On 2014/05/05 20:41:23, reveman wrote: ...
6 years, 7 months ago (2014-05-05 21:02:14 UTC) #7
reveman
https://codereview.chromium.org/263553009/diff/70001/content/common/gpu/client/gpu_memory_buffer_impl_shm.cc File content/common/gpu/client/gpu_memory_buffer_impl_shm.cc (right): https://codereview.chromium.org/263553009/diff/70001/content/common/gpu/client/gpu_memory_buffer_impl_shm.cc#newcode23 content/common/gpu/client/gpu_memory_buffer_impl_shm.cc:23: base::CheckedNumeric<size_t> buffer_size = size.GetArea(); On 2014/05/05 21:02:16, piman wrote: ...
6 years, 7 months ago (2014-05-06 12:26:26 UTC) #8
piman
lgtm
6 years, 7 months ago (2014-05-06 18:04:42 UTC) #9
reveman
The CQ bit was checked by reveman@chromium.org
6 years, 7 months ago (2014-05-08 15:07:10 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/263553009/150001
6 years, 7 months ago (2014-05-08 15:09:51 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-08 19:26:28 UTC) #12
reveman
The CQ bit was checked by reveman@chromium.org
6 years, 7 months ago (2014-05-08 20:22:30 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/263553009/170001
6 years, 7 months ago (2014-05-08 20:29:11 UTC) #14
commit-bot: I haz the power
6 years, 7 months ago (2014-05-09 16:29:17 UTC) #15
Message was sent while issue was closed.
Change committed as 269327

Powered by Google App Engine
This is Rietveld 408576698