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

Issue 1286523002: Add CHECKs when a single GpuMemoryBuffer plane is assumed (Closed)

Created:
5 years, 4 months ago by Andre
Modified:
5 years, 4 months ago
Reviewers:
reveman, ccameron
CC:
cc-bugs_chromium.org, 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@420-biplanar
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add CHECKs when a single GpuMemoryBuffer plane is assumed. Make sure Map() and GetStride() is never called with an array that is too small. BUG=510260 TEST=No expected behavior change. CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/4d4b028eab8d68f048c2e346f5564a5be9109126 Cr-Commit-Position: refs/heads/master@{#343080}

Patch Set 1 #

Patch Set 2 : Fix for ericrk #

Patch Set 3 : For reveman #

Patch Set 4 : Forgot #include #

Total comments: 4

Patch Set 5 : DCHECK #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M cc/raster/one_copy_tile_task_worker_pool.cc View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M cc/raster/zero_copy_tile_task_worker_pool.cc View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 26 (11 generated)
Andre
PTAL
5 years, 4 months ago (2015-08-10 19:55:03 UTC) #2
ericrk
On 2015/08/10 19:55:03, Andre wrote: > PTAL Seems like a good change! Two thoughts: 1) ...
5 years, 4 months ago (2015-08-10 20:29:13 UTC) #3
Andre
1) Done, thanks, I missed that one. 2) reveman, WDYT?
5 years, 4 months ago (2015-08-10 21:16:51 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1286523002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1286523002/20001
5 years, 4 months ago (2015-08-10 22:39:52 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/67653)
5 years, 4 months ago (2015-08-10 22:53:08 UTC) #9
reveman
There's no real issue here afaict. Number of planes is defined by the format. If ...
5 years, 4 months ago (2015-08-11 15:00:47 UTC) #10
Andre
Thanks, PTAL. Went with CHECK instead of DCHECK, better to crash in a known place ...
5 years, 4 months ago (2015-08-11 18:30:04 UTC) #11
reveman
lgtm with nits https://codereview.chromium.org/1286523002/diff/60001/cc/raster/one_copy_tile_task_worker_pool.cc File cc/raster/one_copy_tile_task_worker_pool.cc (right): https://codereview.chromium.org/1286523002/diff/60001/cc/raster/one_copy_tile_task_worker_pool.cc#newcode343 cc/raster/one_copy_tile_task_worker_pool.cc:343: 1u, gfx::NumberOfPlanesForBufferFormat(gpu_memory_buffer->GetFormat())); nit: DCHECK_EQ. I don't ...
5 years, 4 months ago (2015-08-11 18:59:11 UTC) #12
Andre
https://codereview.chromium.org/1286523002/diff/60001/cc/raster/one_copy_tile_task_worker_pool.cc File cc/raster/one_copy_tile_task_worker_pool.cc (right): https://codereview.chromium.org/1286523002/diff/60001/cc/raster/one_copy_tile_task_worker_pool.cc#newcode343 cc/raster/one_copy_tile_task_worker_pool.cc:343: 1u, gfx::NumberOfPlanesForBufferFormat(gpu_memory_buffer->GetFormat())); On 2015/08/11 18:59:11, reveman (OOO Aug 10 ...
5 years, 4 months ago (2015-08-11 19:37:53 UTC) #13
commit-bot: I haz the power
This CL has an open dependency (Issue 1282313002 Patch 200001). Please resolve the dependency and ...
5 years, 4 months ago (2015-08-12 00:30:49 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1286523002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1286523002/100001
5 years, 4 months ago (2015-08-12 18:11:31 UTC) #19
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-12 19:14:36 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1286523002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1286523002/100001
5 years, 4 months ago (2015-08-12 20:00:23 UTC) #24
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 4 months ago (2015-08-12 20:06:21 UTC) #25
commit-bot: I haz the power
5 years, 4 months ago (2015-08-12 20:07:41 UTC) #26
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/4d4b028eab8d68f048c2e346f5564a5be9109126
Cr-Commit-Position: refs/heads/master@{#343080}

Powered by Google App Engine
This is Rietveld 408576698