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

Issue 112653005: Cleanup ColorDistance (Closed)

Created:
6 years, 11 months ago by rwlbuis
Modified:
6 years, 11 months ago
CC:
blink-reviews, Steve Block, krit, rjwright, alancutter (OOO until 2018), Mike Lawther (Google), dstockwell, Timothy Loh, shans, f(malita), darktears, pdr, Stephen Chennney, Eric Willigers, dino_apple.com
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Cleanup ColorDistance Remove all constructors, remove clampColor as we can just use makeRGBA. Also make distance static so we don't need any state in this helper class. BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=164409

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -52 lines) Patch
M Source/core/svg/ColorDistance.h View 1 chunk +2 lines, -12 lines 0 comments Download
M Source/core/svg/ColorDistance.cpp View 1 chunk +6 lines, -38 lines 0 comments Download
M Source/core/svg/SVGAnimatedColor.cpp View 2 chunks +2 lines, -2 lines 1 comment Download

Messages

Total messages: 10 (0 generated)
rwlbuis
An idea to clean this file up a bit. Obviously it reduces binary size as ...
6 years, 11 months ago (2013-12-31 21:41:33 UTC) #1
eseidel
https://codereview.chromium.org/112653005/diff/1/Source/core/svg/SVGAnimatedColor.cpp File Source/core/svg/SVGAnimatedColor.cpp (right): https://codereview.chromium.org/112653005/diff/1/Source/core/svg/SVGAnimatedColor.cpp#newcode97 Source/core/svg/SVGAnimatedColor.cpp:97: animatedColor = makeRGBA(static_cast<int>(roundf(animatedRed)), static_cast<int>(roundf(animatedGreen)), static_cast<int>(roundf(animatedBlue)), static_cast<int>(roundf(animatedAlpha))); What about the ...
6 years, 11 months ago (2013-12-31 21:59:58 UTC) #2
rwlbuis
On 2013/12/31 21:59:58, eseidel wrote: > https://codereview.chromium.org/112653005/diff/1/Source/core/svg/SVGAnimatedColor.cpp > File Source/core/svg/SVGAnimatedColor.cpp (right): > > https://codereview.chromium.org/112653005/diff/1/Source/core/svg/SVGAnimatedColor.cpp#newcode97 > ...
6 years, 11 months ago (2013-12-31 22:03:41 UTC) #3
eseidel
lgtm
6 years, 11 months ago (2013-12-31 23:10:57 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rob.buis@samsung.com/112653005/1
6 years, 11 months ago (2013-12-31 23:11:11 UTC) #5
commit-bot: I haz the power
Retried try job too often on win_layout for step(s) webkit_lint http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_layout&number=17649
6 years, 11 months ago (2014-01-01 00:44:38 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rob.buis@samsung.com/112653005/1
6 years, 11 months ago (2014-01-01 11:49:30 UTC) #7
commit-bot: I haz the power
Retried try job too often on win_layout for step(s) webkit_lint http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_layout&number=17653
6 years, 11 months ago (2014-01-01 12:35:36 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rob.buis@samsung.com/112653005/1
6 years, 11 months ago (2014-01-01 15:34:19 UTC) #9
commit-bot: I haz the power
6 years, 11 months ago (2014-01-01 15:34:47 UTC) #10
Message was sent while issue was closed.
Change committed as 164409

Powered by Google App Engine
This is Rietveld 408576698