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

Issue 394183002: ui/gfx: remove redundant erase operations and remove unused function (Closed)

Created:
6 years, 5 months ago by hyunki
Modified:
6 years, 5 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

ui/gfx: remove redundant erase operations and remove unused function It removes erase operations for SkBitmaps which touch whole inside pixels since all pixels should be drawn fully. Additionally, it removes a unused function, CreateSuperimposedBitmap(). BUG=NONE TEST=gfx_unittests --gtest_filter="SkBitmapOperationsTest*" Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283814

Patch Set 1 #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -40 lines) Patch
M ui/gfx/skbitmap_operations.h View 1 chunk +0 lines, -6 lines 0 comments Download
M ui/gfx/skbitmap_operations.cc View 6 chunks +0 lines, -34 lines 10 comments Download

Messages

Total messages: 18 (0 generated)
hyunki
Please take a look. Thanks.
6 years, 5 months ago (2014-07-16 11:44:58 UTC) #1
oshima
lgtm if the test passes valgrind. Just want to make sure there is no edge/special ...
6 years, 5 months ago (2014-07-16 15:09:26 UTC) #2
oshima
lgtm if the test passes valgrind. Just want to make sure there is no edge/special ...
6 years, 5 months ago (2014-07-16 15:09:26 UTC) #3
sky
LGTM
6 years, 5 months ago (2014-07-16 15:17:20 UTC) #4
danakj
https://codereview.chromium.org/394183002/diff/1/ui/gfx/skbitmap_operations.cc File ui/gfx/skbitmap_operations.cc (left): https://codereview.chromium.org/394183002/diff/1/ui/gfx/skbitmap_operations.cc#oldcode29 ui/gfx/skbitmap_operations.cc:29: inverted.allocN32Pixels(image.width(), image.height()); will it be filled with opaque values? ...
6 years, 5 months ago (2014-07-16 15:18:25 UTC) #5
hyunki
Please check my comments. https://codereview.chromium.org/394183002/diff/1/ui/gfx/skbitmap_operations.cc File ui/gfx/skbitmap_operations.cc (left): https://codereview.chromium.org/394183002/diff/1/ui/gfx/skbitmap_operations.cc#oldcode29 ui/gfx/skbitmap_operations.cc:29: inverted.allocN32Pixels(image.width(), image.height()); On 2014/07/16 15:18:25, ...
6 years, 5 months ago (2014-07-16 15:28:48 UTC) #6
danakj
https://codereview.chromium.org/394183002/diff/1/ui/gfx/skbitmap_operations.cc File ui/gfx/skbitmap_operations.cc (left): https://codereview.chromium.org/394183002/diff/1/ui/gfx/skbitmap_operations.cc#oldcode29 ui/gfx/skbitmap_operations.cc:29: inverted.allocN32Pixels(image.width(), image.height()); On 2014/07/16 15:28:48, hyunki wrote: > On ...
6 years, 5 months ago (2014-07-16 15:30:42 UTC) #7
hyunki
https://codereview.chromium.org/394183002/diff/1/ui/gfx/skbitmap_operations.cc File ui/gfx/skbitmap_operations.cc (left): https://codereview.chromium.org/394183002/diff/1/ui/gfx/skbitmap_operations.cc#oldcode29 ui/gfx/skbitmap_operations.cc:29: inverted.allocN32Pixels(image.width(), image.height()); Yes. It depends on the input image. ...
6 years, 5 months ago (2014-07-16 15:35:16 UTC) #8
danakj
https://codereview.chromium.org/394183002/diff/1/ui/gfx/skbitmap_operations.cc File ui/gfx/skbitmap_operations.cc (left): https://codereview.chromium.org/394183002/diff/1/ui/gfx/skbitmap_operations.cc#oldcode29 ui/gfx/skbitmap_operations.cc:29: inverted.allocN32Pixels(image.width(), image.height()); On 2014/07/16 15:35:16, hyunki wrote: > Yes. ...
6 years, 5 months ago (2014-07-16 15:38:12 UTC) #9
hyunki
https://codereview.chromium.org/394183002/diff/1/ui/gfx/skbitmap_operations.cc File ui/gfx/skbitmap_operations.cc (left): https://codereview.chromium.org/394183002/diff/1/ui/gfx/skbitmap_operations.cc#oldcode29 ui/gfx/skbitmap_operations.cc:29: inverted.allocN32Pixels(image.width(), image.height()); No. I'm telling below operation fills whole ...
6 years, 5 months ago (2014-07-16 15:42:17 UTC) #10
danakj
https://codereview.chromium.org/394183002/diff/1/ui/gfx/skbitmap_operations.cc File ui/gfx/skbitmap_operations.cc (left): https://codereview.chromium.org/394183002/diff/1/ui/gfx/skbitmap_operations.cc#oldcode29 ui/gfx/skbitmap_operations.cc:29: inverted.allocN32Pixels(image.width(), image.height()); On 2014/07/16 15:42:17, hyunki wrote: > No. ...
6 years, 5 months ago (2014-07-16 15:52:29 UTC) #11
hyunki
https://codereview.chromium.org/394183002/diff/1/ui/gfx/skbitmap_operations.cc File ui/gfx/skbitmap_operations.cc (left): https://codereview.chromium.org/394183002/diff/1/ui/gfx/skbitmap_operations.cc#oldcode29 ui/gfx/skbitmap_operations.cc:29: inverted.allocN32Pixels(image.width(), image.height()); Sorry. For clarification, (your question) will it ...
6 years, 5 months ago (2014-07-16 16:03:04 UTC) #12
hyunki
danakj@, can you please have a look? thanks.
6 years, 5 months ago (2014-07-16 23:28:02 UTC) #13
danakj
Sure, I think you have all the reviews you need. When isOpaque is false, though, ...
6 years, 5 months ago (2014-07-17 15:22:30 UTC) #14
hyunki
On 2014/07/17 15:22:30, danakj wrote: > Sure, I think you have all the reviews you ...
6 years, 5 months ago (2014-07-17 15:28:44 UTC) #15
hyunki
The CQ bit was checked by hyunki.baik@samsung.com
6 years, 5 months ago (2014-07-17 15:28:51 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hyunki.baik@samsung.com/394183002/1
6 years, 5 months ago (2014-07-17 15:29:36 UTC) #17
commit-bot: I haz the power
6 years, 5 months ago (2014-07-17 17:59:45 UTC) #18
Message was sent while issue was closed.
Change committed as 283814

Powered by Google App Engine
This is Rietveld 408576698