Add support for converting Colors to linear RGB; Fix relevant filters

Moves get{Linear,Device}RgbLUT out of ImageBuffer.cpp and into the (new)
ColorSpace.cpp and a (new) namespace ColorSpaceUtilities.
Implement ColorSpaceUtilities::convertColor and getConversionLUT, and use them in a
new FilterEffect::adaptColorToOperatingColorSpace method, that derived
classes can use.

With the above infrastructure in place, use it in FEDropShadow to make
sure the result of the (conceptual) flood operation is in correct color
space (== the operating colorspace of the FEDropShadow).
Also use it to transform the lighting-color of the lighting primitives.

BUG=336440

Review URL: https://codereview.chromium.org/134733016

git-svn-id: svn://svn.chromium.org/blink/trunk@165767 bbb929c8-8fbe-4397-9dbb-9b2b20218538
15 files changed
tree: dabe441c12cf6614ddaf2dd96a7c4253e8c217c0
  1. third_party/