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

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

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 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);
}

Powered by Google App Engine
This is Rietveld 408576698