Index: third_party/WebKit/Source/platform/graphics/filters/FEComponentTransfer.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/filters/FEComponentTransfer.cpp b/third_party/WebKit/Source/platform/graphics/filters/FEComponentTransfer.cpp |
index 3f081d569dedea98ff3d0d1d0d6b4c6962be46d6..ee206a6265b3ed96c373f5e205449d15fdcc45dc 100644 |
--- a/third_party/WebKit/Source/platform/graphics/filters/FEComponentTransfer.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/filters/FEComponentTransfer.cpp |
@@ -104,9 +104,9 @@ static void gamma(unsigned char* values, |
const ComponentTransferFunction& transferFunction) { |
for (unsigned i = 0; i < 256; ++i) { |
double exponent = transferFunction.exponent; |
- double val = |
- 255.0 * (transferFunction.amplitude * pow((i / 255.0), exponent) + |
- transferFunction.offset); |
+ double val = 255.0 * |
+ (transferFunction.amplitude * pow((i / 255.0), exponent) + |
+ transferFunction.offset); |
val = clampTo(val, 0.0, 255.0); |
values[i] = static_cast<unsigned char>(val); |
} |