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

Issue 201503002: Simplify Gradient by holding a Color instead of four floats. (Closed)

Created:
6 years, 9 months ago by jbroman
Modified:
6 years, 9 months ago
CC:
blink-reviews, jamesr, krit, dsinclair, fs, danakj, ed+blinkwatch_opera.com, Rik, gyuyoung.kim_webkit.org, Stephen Chennney, kouhei+svg_chromium.org, pdr., rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Simplify Gradient by holding a Color instead of four floats. This makes it easier to read, and also prevents pointless conversions back and forth between a 32-bit integer and four floats. This resolves a FIXME which asked why this was the case. BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169396

Patch Set 1 #

Total comments: 2

Patch Set 2 : use SkColorSetARGB #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -36 lines) Patch
M Source/core/svg/SVGGradientElement.cpp View 1 chunk +1 line, -8 lines 0 comments Download
M Source/platform/graphics/Gradient.h View 3 chunks +3 lines, -7 lines 0 comments Download
M Source/platform/graphics/Gradient.cpp View 1 7 chunks +12 lines, -21 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
jbroman
This is a minor simplification, but it was a little silly that we took a ...
6 years, 9 months ago (2014-03-17 18:38:07 UTC) #1
f(malita)
lgtm + nit. https://codereview.chromium.org/201503002/diff/1/Source/platform/graphics/Gradient.cpp File Source/platform/graphics/Gradient.cpp (right): https://codereview.chromium.org/201503002/diff/1/Source/platform/graphics/Gradient.cpp#newcode181 Source/platform/graphics/Gradient.cpp:181: colors[0] = stop->color.rgb(); We should use ...
6 years, 9 months ago (2014-03-17 18:50:17 UTC) #2
jbroman
On 2014/03/17 18:50:17, Florin Malita wrote: > lgtm + nit. > > https://codereview.chromium.org/201503002/diff/1/Source/platform/graphics/Gradient.cpp > File ...
6 years, 9 months ago (2014-03-17 18:53:06 UTC) #3
f(malita)
On 2014/03/17 18:53:06, jbroman wrote: > On 2014/03/17 18:50:17, Florin Malita wrote: > > lgtm ...
6 years, 9 months ago (2014-03-17 19:01:00 UTC) #4
jbroman
On 2014/03/17 19:01:00, Florin Malita wrote: > On 2014/03/17 18:53:06, jbroman wrote: > > On ...
6 years, 9 months ago (2014-03-17 20:53:31 UTC) #5
f(malita)
On 2014/03/17 20:53:31, jbroman wrote: > On 2014/03/17 19:01:00, Florin Malita wrote: > > The ...
6 years, 9 months ago (2014-03-17 21:43:24 UTC) #6
jbroman
The CQ bit was checked by jbroman@chromium.org
6 years, 9 months ago (2014-03-17 22:53:39 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbroman@chromium.org/201503002/20001
6 years, 9 months ago (2014-03-17 22:53:50 UTC) #8
commit-bot: I haz the power
6 years, 9 months ago (2014-03-17 22:54:27 UTC) #9
Message was sent while issue was closed.
Change committed as 169396

Powered by Google App Engine
This is Rietveld 408576698