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

Issue 187343007: Adding fading effect for paint rectangles in HUD. (Closed)

Created:
6 years, 9 months ago by malch
Modified:
6 years, 9 months ago
Reviewers:
danakj, caseq, Nat
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Adding fading effect for paint rectangles in HUD layer. Review URL: https://codereview.chromium.org/187343007 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=256635

Patch Set 1 #

Total comments: 12

Patch Set 2 : Fixes. #

Total comments: 4

Patch Set 3 : More fixes. #

Total comments: 4

Patch Set 4 : And more fixes. #

Patch Set 5 : Same set. #

Patch Set 6 : Uploading same set once again. #

Total comments: 8

Patch Set 7 : Fixed initial alpha bug. #

Patch Set 8 : Changed int to unsigned. Removed const where it's needless. #

Total comments: 18

Patch Set 9 : Fixes. #

Total comments: 4

Patch Set 10 : Final fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -62 lines) Patch
M cc/debug/debug_colors.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download
M cc/debug/debug_colors.cc View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -4 lines 0 comments Download
M cc/layers/heads_up_display_layer_impl.h View 1 2 3 4 5 6 7 8 6 chunks +15 lines, -4 lines 0 comments Download
M cc/layers/heads_up_display_layer_impl.cc View 1 2 3 4 5 6 7 8 9 6 chunks +88 lines, -51 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 23 (0 generated)
malch
6 years, 9 months ago (2014-03-05 12:00:27 UTC) #1
caseq
https://codereview.chromium.org/187343007/diff/1/cc/debug/debug_colors.cc File cc/debug/debug_colors.cc (right): https://codereview.chromium.org/187343007/diff/1/cc/debug/debug_colors.cc#newcode176 cc/debug/debug_colors.cc:176: SkColor fadedGreen(const int initial_value, const int step) { static ...
6 years, 9 months ago (2014-03-05 13:20:59 UTC) #2
malch
https://codereview.chromium.org/187343007/diff/1/cc/debug/debug_colors.cc File cc/debug/debug_colors.cc (right): https://codereview.chromium.org/187343007/diff/1/cc/debug/debug_colors.cc#newcode176 cc/debug/debug_colors.cc:176: SkColor fadedGreen(const int initial_value, const int step) { On ...
6 years, 9 months ago (2014-03-05 14:43:26 UTC) #3
caseq
https://codereview.chromium.org/187343007/diff/10001/cc/layers/heads_up_display_layer_impl.cc File cc/layers/heads_up_display_layer_impl.cc (right): https://codereview.chromium.org/187343007/diff/10001/cc/layers/heads_up_display_layer_impl.cc#newcode729 cc/layers/heads_up_display_layer_impl.cc:729: fade_step_ = 0; You can make things simpler by ...
6 years, 9 months ago (2014-03-05 16:33:34 UTC) #4
malch
https://codereview.chromium.org/187343007/diff/10001/cc/layers/heads_up_display_layer_impl.cc File cc/layers/heads_up_display_layer_impl.cc (right): https://codereview.chromium.org/187343007/diff/10001/cc/layers/heads_up_display_layer_impl.cc#newcode729 cc/layers/heads_up_display_layer_impl.cc:729: fade_step_ = 0; On 2014/03/05 16:33:34, caseq wrote: > ...
6 years, 9 months ago (2014-03-06 07:24:29 UTC) #5
caseq
https://codereview.chromium.org/187343007/diff/30001/cc/debug/debug_colors.cc File cc/debug/debug_colors.cc (right): https://codereview.chromium.org/187343007/diff/30001/cc/debug/debug_colors.cc#newcode178 cc/debug/debug_colors.cc:178: return SkColorSetARGB(value > 0 ? value : 0, 0, ...
6 years, 9 months ago (2014-03-06 10:46:32 UTC) #6
malch
https://codereview.chromium.org/187343007/diff/30001/cc/debug/debug_colors.cc File cc/debug/debug_colors.cc (right): https://codereview.chromium.org/187343007/diff/30001/cc/debug/debug_colors.cc#newcode178 cc/debug/debug_colors.cc:178: return SkColorSetARGB(value > 0 ? value : 0, 0, ...
6 years, 9 months ago (2014-03-06 11:27:56 UTC) #7
caseq
https://codereview.chromium.org/187343007/diff/70002/cc/debug/debug_colors.cc File cc/debug/debug_colors.cc (right): https://codereview.chromium.org/187343007/diff/70002/cc/debug/debug_colors.cc#newcode176 cc/debug/debug_colors.cc:176: static SkColor FadedGreen(const int initial_value, const int step) { ...
6 years, 9 months ago (2014-03-06 11:48:37 UTC) #8
malch
https://codereview.chromium.org/187343007/diff/70002/cc/debug/debug_colors.cc File cc/debug/debug_colors.cc (right): https://codereview.chromium.org/187343007/diff/70002/cc/debug/debug_colors.cc#newcode176 cc/debug/debug_colors.cc:176: static SkColor FadedGreen(const int initial_value, const int step) { ...
6 years, 9 months ago (2014-03-06 12:06:22 UTC) #9
caseq
Generally makes sense to me, Dana & Nat, can you have a look please? https://codereview.chromium.org/187343007/diff/120001/cc/debug/debug_colors.h ...
6 years, 9 months ago (2014-03-06 12:40:03 UTC) #10
danakj
https://codereview.chromium.org/187343007/diff/120001/cc/debug/debug_colors.cc File cc/debug/debug_colors.cc (right): https://codereview.chromium.org/187343007/diff/120001/cc/debug/debug_colors.cc#newcode177 cc/debug/debug_colors.cc:177: unsigned value = step * initial_value / DebugColors::kFadeSteps; DCHECK ...
6 years, 9 months ago (2014-03-06 19:03:21 UTC) #11
caseq
https://codereview.chromium.org/187343007/diff/120001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/187343007/diff/120001/cc/trees/layer_tree_host_impl.cc#newcode720 cc/trees/layer_tree_host_impl.cc:720: (!active_tree_->hud_layer() || On 2014/03/06 19:03:21, danakj wrote: > I'm ...
6 years, 9 months ago (2014-03-07 09:08:20 UTC) #12
danakj
On 2014/03/07 09:08:20, caseq wrote: > https://codereview.chromium.org/187343007/diff/120001/cc/trees/layer_tree_host_impl.cc > File cc/trees/layer_tree_host_impl.cc (right): > > https://codereview.chromium.org/187343007/diff/120001/cc/trees/layer_tree_host_impl.cc#newcode720 > ...
6 years, 9 months ago (2014-03-07 18:53:37 UTC) #13
caseq
> Then we'll need to SetNeedsRedraw() after each frame when HUD wants to draw > ...
6 years, 9 months ago (2014-03-07 19:36:11 UTC) #14
danakj
https://codereview.chromium.org/187343007/diff/120001/cc/layers/heads_up_display_layer_impl.cc File cc/layers/heads_up_display_layer_impl.cc (right): https://codereview.chromium.org/187343007/diff/120001/cc/layers/heads_up_display_layer_impl.cc#newcode741 cc/layers/heads_up_display_layer_impl.cc:741: layer_tree_impl()->SetNeedsRedraw(); On 2014/03/07 19:36:12, caseq wrote: > So it's ...
6 years, 9 months ago (2014-03-07 19:41:11 UTC) #15
danakj
ok, LG overall, a few more comments now that I have my head wrapped around ...
6 years, 9 months ago (2014-03-07 20:50:20 UTC) #16
malch
https://codereview.chromium.org/187343007/diff/120001/cc/layers/heads_up_display_layer_impl.cc File cc/layers/heads_up_display_layer_impl.cc (left): https://codereview.chromium.org/187343007/diff/120001/cc/layers/heads_up_display_layer_impl.cc#oldcode593 cc/layers/heads_up_display_layer_impl.cc:593: SkPaint paint = CreatePaint(); On 2014/03/06 19:03:21, danakj wrote: ...
6 years, 9 months ago (2014-03-11 16:14:41 UTC) #17
danakj
Thanks! LGTM https://codereview.chromium.org/187343007/diff/140001/cc/layers/heads_up_display_layer_impl.cc File cc/layers/heads_up_display_layer_impl.cc (right): https://codereview.chromium.org/187343007/diff/140001/cc/layers/heads_up_display_layer_impl.cc#newcode650 cc/layers/heads_up_display_layer_impl.cc:650: nit: drop extra whitespace https://codereview.chromium.org/187343007/diff/140001/cc/layers/heads_up_display_layer_impl.cc#newcode730 cc/layers/heads_up_display_layer_impl.cc:730: paint_rects_.swap(new_paint_rects); ...
6 years, 9 months ago (2014-03-11 17:28:31 UTC) #18
malch
https://codereview.chromium.org/187343007/diff/140001/cc/layers/heads_up_display_layer_impl.cc File cc/layers/heads_up_display_layer_impl.cc (right): https://codereview.chromium.org/187343007/diff/140001/cc/layers/heads_up_display_layer_impl.cc#newcode650 cc/layers/heads_up_display_layer_impl.cc:650: On 2014/03/11 17:28:32, danakj wrote: > nit: drop extra ...
6 years, 9 months ago (2014-03-12 07:22:53 UTC) #19
caseq
The CQ bit was checked by caseq@chromium.org
6 years, 9 months ago (2014-03-12 17:04:01 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/malch@chromium.org/187343007/160001
6 years, 9 months ago (2014-03-12 17:14:30 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/malch@chromium.org/187343007/160001
6 years, 9 months ago (2014-03-12 19:24:00 UTC) #22
commit-bot: I haz the power
6 years, 9 months ago (2014-03-12 20:44:33 UTC) #23
Message was sent while issue was closed.
Change committed as 256635

Powered by Google App Engine
This is Rietveld 408576698