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

Issue 1304843005: Deal with AllocateGpuMemoryBuffer returning null. (Closed)

Created:
5 years, 3 months ago by Daniele Castagna
Modified:
5 years, 3 months ago
Reviewers:
reveman, DaleCurtis
CC:
chromium-reviews, feature-media-reviews_chromium.org, mcasas+watch_chromium.org, posciak+watch_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Deal with AllocateGpuMemoryBuffer returning null. AllocateGpuMemoryBuffer can return null (e.g: when the GPU process is down). This CL makes sure we don't crash in that case and make the code behave in the most similar way to when allocations succeed. BUG=529088 Committed: https://crrev.com/f894f228913000fc9ada3e3c9d0e71300a59f56a Cr-Commit-Position: refs/heads/master@{#348738}

Patch Set 1 #

Patch Set 2 : s/fail_to_allocated/fail_to_allocate #

Total comments: 2

Patch Set 3 : Address reveman's comment. #

Total comments: 4

Patch Set 4 : Remove outdated comment. #

Patch Set 5 : Address reveman's nits. #

Total comments: 4

Patch Set 6 : Add "ForTesting" suffix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -50 lines) Patch
M media/renderers/mock_gpu_video_accelerator_factories.h View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M media/renderers/mock_gpu_video_accelerator_factories.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M media/video/gpu_memory_buffer_video_frame_pool.cc View 1 2 3 4 5 chunks +58 lines, -50 lines 0 comments Download
M media/video/gpu_memory_buffer_video_frame_pool_unittest.cc View 1 2 3 4 5 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (5 generated)
Daniele Castagna
PTAL.
5 years, 3 months ago (2015-09-09 22:23:55 UTC) #2
reveman
https://codereview.chromium.org/1304843005/diff/20001/media/video/gpu_memory_buffer_video_frame_pool.cc File media/video/gpu_memory_buffer_video_frame_pool.cc (right): https://codereview.chromium.org/1304843005/diff/20001/media/video/gpu_memory_buffer_video_frame_pool.cc#newcode540 media/video/gpu_memory_buffer_video_frame_pool.cc:540: return false; Not needed as discussed.
5 years, 3 months ago (2015-09-09 22:45:28 UTC) #3
Daniele Castagna
https://codereview.chromium.org/1304843005/diff/20001/media/video/gpu_memory_buffer_video_frame_pool.cc File media/video/gpu_memory_buffer_video_frame_pool.cc (right): https://codereview.chromium.org/1304843005/diff/20001/media/video/gpu_memory_buffer_video_frame_pool.cc#newcode540 media/video/gpu_memory_buffer_video_frame_pool.cc:540: return false; On 2015/09/09 at 22:45:28, reveman wrote: > ...
5 years, 3 months ago (2015-09-10 00:04:20 UTC) #4
reveman
lgtm with nits https://codereview.chromium.org/1304843005/diff/40001/media/video/gpu_memory_buffer_video_frame_pool.cc File media/video/gpu_memory_buffer_video_frame_pool.cc (right): https://codereview.chromium.org/1304843005/diff/40001/media/video/gpu_memory_buffer_video_frame_pool.cc#newcode536 media/video/gpu_memory_buffer_video_frame_pool.cc:536: } is this just being moved ...
5 years, 3 months ago (2015-09-10 00:09:12 UTC) #5
Daniele Castagna
+dalecurtis for owner approval. https://codereview.chromium.org/1304843005/diff/40001/media/video/gpu_memory_buffer_video_frame_pool.cc File media/video/gpu_memory_buffer_video_frame_pool.cc (right): https://codereview.chromium.org/1304843005/diff/40001/media/video/gpu_memory_buffer_video_frame_pool.cc#newcode536 media/video/gpu_memory_buffer_video_frame_pool.cc:536: } On 2015/09/10 at 00:09:12, ...
5 years, 3 months ago (2015-09-10 00:15:35 UTC) #7
ccameron
On 2015/09/10 00:15:35, Daniele Castagna wrote: > +dalecurtis for owner approval. > > https://codereview.chromium.org/1304843005/diff/40001/media/video/gpu_memory_buffer_video_frame_pool.cc > ...
5 years, 3 months ago (2015-09-12 23:42:32 UTC) #8
Daniele Castagna
On 2015/09/12 at 23:42:32, ccameron wrote: > On 2015/09/10 00:15:35, Daniele Castagna wrote: > > ...
5 years, 3 months ago (2015-09-13 18:11:53 UTC) #9
DaleCurtis
There's a lot of conditionals added in this CL for what seems like an issue ...
5 years, 3 months ago (2015-09-13 18:48:47 UTC) #10
Daniele Castagna
On 2015/09/13 at 18:48:47, dalecurtis wrote: > There's a lot of conditionals added in this ...
5 years, 3 months ago (2015-09-13 19:31:06 UTC) #12
DaleCurtis
On 2015/09/13 19:31:06, Daniele Castagna wrote: > On 2015/09/13 at 18:48:47, dalecurtis wrote: > > ...
5 years, 3 months ago (2015-09-14 16:06:15 UTC) #13
reveman
On 2015/09/14 at 16:06:15, dalecurtis wrote: > On 2015/09/13 19:31:06, Daniele Castagna wrote: > > ...
5 years, 3 months ago (2015-09-14 16:57:48 UTC) #14
DaleCurtis
On 2015/09/14 16:57:48, reveman wrote: > On 2015/09/14 at 16:06:15, dalecurtis wrote: > > On ...
5 years, 3 months ago (2015-09-14 18:33:34 UTC) #15
reveman
On 2015/09/14 at 18:33:34, dalecurtis wrote: > On 2015/09/14 16:57:48, reveman wrote: > > On ...
5 years, 3 months ago (2015-09-14 18:45:54 UTC) #16
DaleCurtis
On 2015/09/14 18:45:54, reveman wrote: > On 2015/09/14 at 18:33:34, dalecurtis wrote: > > On ...
5 years, 3 months ago (2015-09-14 18:51:45 UTC) #17
reveman
On 2015/09/14 at 18:51:45, dalecurtis wrote: > On 2015/09/14 18:45:54, reveman wrote: > > On ...
5 years, 3 months ago (2015-09-14 19:48:51 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1304843005/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1304843005/120001
5 years, 3 months ago (2015-09-14 19:59:18 UTC) #21
commit-bot: I haz the power
Committed patchset #6 (id:120001)
5 years, 3 months ago (2015-09-14 22:12:00 UTC) #22
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/f894f228913000fc9ada3e3c9d0e71300a59f56a Cr-Commit-Position: refs/heads/master@{#348738}
5 years, 3 months ago (2015-09-14 22:13:10 UTC) #23
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:38:00 UTC) #24
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/f894f228913000fc9ada3e3c9d0e71300a59f56a
Cr-Commit-Position: refs/heads/master@{#348738}

Powered by Google App Engine
This is Rietveld 408576698