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

Issue 1801933004: Refactor SoftwareImageDecodeController (Closed)

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

Description

Refactor SoftwareImageDecodeController to make adding support for medium quality more readable and natural. BUG=594839 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/4c4a73d71ba30eca9fd9b8d17f8175f462631689 Cr-Commit-Position: refs/heads/master@{#387426}

Patch Set 1 : Break DecodeImageInternal into single responsibilities. #

Patch Set 2 : Switching over image quality. #

Patch Set 3 : Removing recursive image decode. #

Patch Set 4 : Builds now. #

Total comments: 13

Patch Set 5 : Making CR changes. #

Patch Set 6 : Hopefully fixing the unit test (which isn't building locally for me). #

Patch Set 7 : Typo #

Patch Set 8 : Bad return type. #

Total comments: 9

Patch Set 9 : Removing ImageDecodeControllerKey's can_use_original_decode_ #

Patch Set 10 : Updating unit test. #

Patch Set 11 : Adding can_use_original_decode back. #

Total comments: 2

Patch Set 12 : Fixing typo in variable name in constructor declaration. #

Total comments: 15

Patch Set 13 : Code review comments. #

Patch Set 14 : Fixing error in high quality encoding. #

Patch Set 15 : Rebasing again. #

Patch Set 16 : Adding comments. #

Patch Set 17 : More clear comment wording. #

Patch Set 18 : Making single-line if not use brackets. #

Patch Set 19 : Removing DecodeImageHighQuality (and MediumQuality) since the calls are small enough to just have b… #

Patch Set 20 : Updating comment to reflect change in code. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -107 lines) Patch
M cc/tiles/software_image_decode_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +13 lines, -0 lines 0 comments Download
M cc/tiles/software_image_decode_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +113 lines, -107 lines 0 comments Download

Messages

Total messages: 91 (42 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1801933004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1801933004/40001
4 years, 9 months ago (2016-03-19 01:02:31 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_android on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/38080)
4 years, 9 months ago (2016-03-19 01:12:27 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1801933004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1801933004/60001
4 years, 9 months ago (2016-03-19 07:02:07 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/199279)
4 years, 9 months ago (2016-03-19 07:50:06 UTC) #11
vmpstr
https://codereview.chromium.org/1801933004/diff/60001/cc/tiles/software_image_decode_controller.cc File cc/tiles/software_image_decode_controller.cc (left): https://codereview.chromium.org/1801933004/diff/60001/cc/tiles/software_image_decode_controller.cc#oldcode110 cc/tiles/software_image_decode_controller.cc:110: SkColorType SkColorTypeForDecoding(ResourceFormat format) { I think you kind of ...
4 years, 9 months ago (2016-03-21 20:53:40 UTC) #13
cblume
I hope I have addressed the comments. I'm about to look into why the tests ...
4 years, 9 months ago (2016-03-21 23:01:04 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1801933004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1801933004/80001
4 years, 9 months ago (2016-03-21 23:01:44 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/185620)
4 years, 9 months ago (2016-03-21 23:39:47 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1801933004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1801933004/100001
4 years, 9 months ago (2016-03-22 09:29:46 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_android on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/38931)
4 years, 9 months ago (2016-03-22 09:39:59 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1801933004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1801933004/120001
4 years, 9 months ago (2016-03-22 10:08:05 UTC) #24
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/83946)
4 years, 9 months ago (2016-03-22 10:25:55 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1801933004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1801933004/140001
4 years, 9 months ago (2016-03-22 10:59:28 UTC) #28
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-22 12:02:41 UTC) #30
ericrk
https://codereview.chromium.org/1801933004/diff/140001/cc/tiles/software_image_decode_controller.cc File cc/tiles/software_image_decode_controller.cc (right): https://codereview.chromium.org/1801933004/diff/140001/cc/tiles/software_image_decode_controller.cc#newcode488 cc/tiles/software_image_decode_controller.cc:488: if (key.can_use_original_decode()) { Can't we just call DecodeImageInternal here? ...
4 years, 9 months ago (2016-03-24 16:06:59 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1801933004/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1801933004/160001
4 years, 9 months ago (2016-03-24 18:25:41 UTC) #33
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/177134)
4 years, 9 months ago (2016-03-24 18:37:40 UTC) #35
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1801933004/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1801933004/180001
4 years, 9 months ago (2016-03-24 18:40:17 UTC) #37
cblume
https://codereview.chromium.org/1801933004/diff/140001/cc/tiles/software_image_decode_controller.cc File cc/tiles/software_image_decode_controller.cc (right): https://codereview.chromium.org/1801933004/diff/140001/cc/tiles/software_image_decode_controller.cc#newcode488 cc/tiles/software_image_decode_controller.cc:488: if (key.can_use_original_decode()) { On 2016/03/24 16:06:59, ericrk wrote: > ...
4 years, 9 months ago (2016-03-24 18:45:11 UTC) #38
cblume
https://codereview.chromium.org/1801933004/diff/140001/cc/tiles/software_image_decode_controller.cc File cc/tiles/software_image_decode_controller.cc (right): https://codereview.chromium.org/1801933004/diff/140001/cc/tiles/software_image_decode_controller.cc#newcode488 cc/tiles/software_image_decode_controller.cc:488: if (key.can_use_original_decode()) { On 2016/03/24 16:06:59, ericrk wrote: > ...
4 years, 9 months ago (2016-03-24 18:46:49 UTC) #39
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/201625)
4 years, 9 months ago (2016-03-24 19:25:59 UTC) #41
ericrk
https://codereview.chromium.org/1801933004/diff/140001/cc/tiles/software_image_decode_controller.h File cc/tiles/software_image_decode_controller.h (right): https://codereview.chromium.org/1801933004/diff/140001/cc/tiles/software_image_decode_controller.h#newcode41 cc/tiles/software_image_decode_controller.h:41: can_use_original_decode_ == other.can_use_original_decode_ && I may have missed something ...
4 years, 9 months ago (2016-03-24 20:01:21 UTC) #42
cblume
https://codereview.chromium.org/1801933004/diff/140001/cc/tiles/software_image_decode_controller.h File cc/tiles/software_image_decode_controller.h (right): https://codereview.chromium.org/1801933004/diff/140001/cc/tiles/software_image_decode_controller.h#newcode41 cc/tiles/software_image_decode_controller.h:41: can_use_original_decode_ == other.can_use_original_decode_ && On 2016/03/24 20:01:21, ericrk wrote: ...
4 years, 9 months ago (2016-03-24 20:59:50 UTC) #43
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1801933004/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1801933004/200001
4 years, 9 months ago (2016-03-25 01:25:29 UTC) #45
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-25 02:29:59 UTC) #47
ericrk
lgtm, but please wait for vmpstr's lgtm as well. https://codereview.chromium.org/1801933004/diff/200001/cc/tiles/software_image_decode_controller.h File cc/tiles/software_image_decode_controller.h (right): https://codereview.chromium.org/1801933004/diff/200001/cc/tiles/software_image_decode_controller.h#newcode77 cc/tiles/software_image_decode_controller.h:77: ...
4 years, 8 months ago (2016-03-29 23:23:10 UTC) #48
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1801933004/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1801933004/220001
4 years, 8 months ago (2016-03-31 18:28:53 UTC) #50
cblume
vmpstr@ ping https://codereview.chromium.org/1801933004/diff/200001/cc/tiles/software_image_decode_controller.h File cc/tiles/software_image_decode_controller.h (right): https://codereview.chromium.org/1801933004/diff/200001/cc/tiles/software_image_decode_controller.h#newcode77 cc/tiles/software_image_decode_controller.h:77: bool can_use_original_decode_); On 2016/03/29 23:23:10, ericrk wrote: ...
4 years, 8 months ago (2016-03-31 18:28:53 UTC) #51
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-03-31 19:45:21 UTC) #53
vmpstr
https://codereview.chromium.org/1801933004/diff/220001/cc/tiles/software_image_decode_controller.cc File cc/tiles/software_image_decode_controller.cc (right): https://codereview.chromium.org/1801933004/diff/220001/cc/tiles/software_image_decode_controller.cc#newcode406 cc/tiles/software_image_decode_controller.cc:406: // fall through I don't think you really need ...
4 years, 8 months ago (2016-03-31 19:54:33 UTC) #54
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1801933004/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1801933004/240001
4 years, 8 months ago (2016-04-08 20:03:19 UTC) #56
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/209683)
4 years, 8 months ago (2016-04-08 20:45:39 UTC) #58
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1801933004/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1801933004/260001
4 years, 8 months ago (2016-04-09 01:10:10 UTC) #60
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/157097) ios_rel_device_gn on ...
4 years, 8 months ago (2016-04-09 01:12:33 UTC) #62
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1801933004/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1801933004/280001
4 years, 8 months ago (2016-04-09 02:14:48 UTC) #64
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-09 03:12:23 UTC) #66
cblume
https://codereview.chromium.org/1801933004/diff/220001/cc/tiles/software_image_decode_controller.cc File cc/tiles/software_image_decode_controller.cc (right): https://codereview.chromium.org/1801933004/diff/220001/cc/tiles/software_image_decode_controller.cc#newcode406 cc/tiles/software_image_decode_controller.cc:406: // fall through On 2016/03/31 19:54:32, vmpstr wrote: > ...
4 years, 8 months ago (2016-04-09 06:48:54 UTC) #67
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1801933004/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1801933004/300001
4 years, 8 months ago (2016-04-09 06:49:21 UTC) #69
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1801933004/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1801933004/320001
4 years, 8 months ago (2016-04-11 16:45:33 UTC) #71
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-11 18:16:07 UTC) #73
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1801933004/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1801933004/340001
4 years, 8 months ago (2016-04-12 01:26:51 UTC) #75
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1801933004/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1801933004/360001
4 years, 8 months ago (2016-04-12 01:42:45 UTC) #77
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/144239)
4 years, 8 months ago (2016-04-12 02:28:34 UTC) #79
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1801933004/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1801933004/380001
4 years, 8 months ago (2016-04-12 20:15:03 UTC) #81
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-12 21:20:05 UTC) #83
vmpstr
lgtm, thanks!
4 years, 8 months ago (2016-04-14 20:14:35 UTC) #84
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1801933004/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1801933004/380001
4 years, 8 months ago (2016-04-14 20:24:46 UTC) #87
commit-bot: I haz the power
Committed patchset #20 (id:380001)
4 years, 8 months ago (2016-04-14 21:18:55 UTC) #89
commit-bot: I haz the power
4 years, 8 months ago (2016-04-14 21:20:23 UTC) #91
Message was sent while issue was closed.
Patchset 20 (id:??) landed as
https://crrev.com/4c4a73d71ba30eca9fd9b8d17f8175f462631689
Cr-Commit-Position: refs/heads/master@{#387426}

Powered by Google App Engine
This is Rietveld 408576698