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

Unified Diff: third_party/WebKit/Source/platform/graphics/filters/FEComponentTransfer.cpp

Issue 2389703004: Rewrap comments to 80 columns in Source/platform/graphics/filters/. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 20eaac4b3e92d8872509736d456ad4619bba5f9d..864a21ff50dc02764eedab2b880bbf9ca683b9d6 100644
--- a/third_party/WebKit/Source/platform/graphics/filters/FEComponentTransfer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/filters/FEComponentTransfer.cpp
@@ -103,9 +103,7 @@ static void linear(unsigned char* values,
static void gamma(unsigned char* values,
const ComponentTransferFunction& transferFunction) {
for (unsigned i = 0; i < 256; ++i) {
- double exponent =
- transferFunction
- .exponent; // RCVT doesn't like passing a double and a float to pow, so promote this to double
+ double exponent = transferFunction.exponent;
double val =
255.0 * (transferFunction.amplitude * pow((i / 255.0), exponent) +
transferFunction.offset);

Powered by Google App Engine
This is Rietveld 408576698