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

Issue 1879153003: cc: Use ResourceUtil::UncheckedWidthInBytes() in CopyOnWorkerThread(). (Closed)

Created:
4 years, 8 months ago by prashant.n
Modified:
4 years, 8 months ago
Reviewers:
danakj, reveman, vmpstr, ericrk
CC:
cc-bugs_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@raster_provider
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Use ResourceUtil::UncheckedWidthInBytes() in CopyOnWorkerThread(). Use unchecked version for computing bytes_per_row in OneCopyTileTaskWorkerPool::CopyOnWorkerThread() function to check overflow or underflow conditions in debug builds. BUG= CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/00f3200485a68c3757e686d7d6ba164aca2cdeb6 Cr-Commit-Position: refs/heads/master@{#388034}

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M cc/raster/one_copy_tile_task_worker_pool.cc View 1 chunk +2 lines, -2 lines 3 comments Download

Depends on Patchset:

Messages

Total messages: 17 (5 generated)
prashant.n
ptal
4 years, 8 months ago (2016-04-13 11:51:54 UTC) #3
danakj
https://codereview.chromium.org/1879153003/diff/1/cc/raster/one_copy_tile_task_worker_pool.cc File cc/raster/one_copy_tile_task_worker_pool.cc (right): https://codereview.chromium.org/1879153003/diff/1/cc/raster/one_copy_tile_task_worker_pool.cc#newcode328 cc/raster/one_copy_tile_task_worker_pool.cc:328: int bytes_per_row = ResourceUtil::UncheckedWidthInBytes<int>( If it can overflow/underflow then ...
4 years, 8 months ago (2016-04-13 18:38:59 UTC) #4
prashant.n
On 2016/04/13 18:38:59, danakj wrote: > https://codereview.chromium.org/1879153003/diff/1/cc/raster/one_copy_tile_task_worker_pool.cc > File cc/raster/one_copy_tile_task_worker_pool.cc (right): > > https://codereview.chromium.org/1879153003/diff/1/cc/raster/one_copy_tile_task_worker_pool.cc#newcode328 > ...
4 years, 8 months ago (2016-04-14 03:00:51 UTC) #5
prashant.n
> Yes. Unchecked is for we can safely use without checking overflow/underflow. But > debug ...
4 years, 8 months ago (2016-04-14 03:03:33 UTC) #6
prashant.n
ptal - patch #3.
4 years, 8 months ago (2016-04-15 07:04:47 UTC) #7
prashant.n
ping
4 years, 8 months ago (2016-04-17 18:30:27 UTC) #8
reveman
lgtm when danakj is happy with it https://codereview.chromium.org/1879153003/diff/1/cc/raster/one_copy_tile_task_worker_pool.cc File cc/raster/one_copy_tile_task_worker_pool.cc (right): https://codereview.chromium.org/1879153003/diff/1/cc/raster/one_copy_tile_task_worker_pool.cc#newcode328 cc/raster/one_copy_tile_task_worker_pool.cc:328: int bytes_per_row ...
4 years, 8 months ago (2016-04-17 20:22:59 UTC) #9
prashant.n
danakj@, can you pls. put your opinion.
4 years, 8 months ago (2016-04-18 05:06:14 UTC) #11
danakj
https://codereview.chromium.org/1879153003/diff/1/cc/raster/one_copy_tile_task_worker_pool.cc File cc/raster/one_copy_tile_task_worker_pool.cc (right): https://codereview.chromium.org/1879153003/diff/1/cc/raster/one_copy_tile_task_worker_pool.cc#newcode328 cc/raster/one_copy_tile_task_worker_pool.cc:328: int bytes_per_row = ResourceUtil::UncheckedWidthInBytes<int>( On 2016/04/17 20:22:59, reveman wrote: ...
4 years, 8 months ago (2016-04-18 19:47:53 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1879153003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1879153003/1
4 years, 8 months ago (2016-04-18 20:17:30 UTC) #14
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 8 months ago (2016-04-18 21:29:18 UTC) #15
commit-bot: I haz the power
4 years, 8 months ago (2016-04-18 21:31:05 UTC) #17
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/00f3200485a68c3757e686d7d6ba164aca2cdeb6
Cr-Commit-Position: refs/heads/master@{#388034}

Powered by Google App Engine
This is Rietveld 408576698