Changeset 53674 in webkit
- Timestamp:
- Jan 21, 2010 9:23:12 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r53673 r53674 1 2010-01-21 Joe Mason <jmason@rim.com> 2 3 Reviewed by Darin Adler. 4 5 Promote pow argument to double to resolve ambiguous overload (compile fix for RVCT 4.0) 6 https://bugs.webkit.org/show_bug.cgi?id=33952 7 8 * platform/graphics/filters/FEComponentTransfer.cpp: 9 (WebCore::gamma): 10 1 11 2010-01-21 Andrei Popescu <andreip@google.com> 2 12 -
trunk/WebCore/platform/graphics/filters/FEComponentTransfer.cpp
r51310 r53674 4 4 2005 Eric Seidel <eric@webkit.org> 5 5 2009 Dirk Schulze <krit@webkit.org> 6 Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 7 7 8 This library is free software; you can redistribute it and/or … … 141 142 { 142 143 for (unsigned i = 0; i < 256; ++i) { 143 double val = 255.0 * (transferFunction.amplitude * pow((i / 255.0), transferFunction.exponent) + transferFunction.offset); 144 double exponent = transferFunction.exponent; // RCVT doesn't like passing a double and a float to pow, so promote this to double 145 double val = 255.0 * (transferFunction.amplitude * pow((i / 255.0), exponent) + transferFunction.offset); 144 146 val = std::max(0.0, std::min(255.0, val)); 145 147 values[i] = static_cast<unsigned char>(val);
Note: See TracChangeset
for help on using the changeset viewer.