aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2017-12-19 15:17:21 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-12-20 13:06:24 +0000
commite3cc317ab2d15015a0ad2841c63473407dca6179 (patch)
tree812feaad2ca6e2d0b6bc39764c380c1b53eb4334
parent094327d6a786de52bd295c1a4f7d88fca7c6abb0 (diff)
Remove SK_SUPPORT_LEGACY_ICC_PRECISION
chromium has rebaselined against the new code Bug: skia: Change-Id: I5e13da56ade52e5e0fc61ff01b39953bf1bd7e8c Reviewed-on: https://skia-review.googlesource.com/87300 Commit-Queue: Mike Klein <mtklein@chromium.org> Reviewed-by: Brian Osman <brianosman@google.com> Reviewed-by: Mike Klein <mtklein@chromium.org>
-rw-r--r--src/core/SkICC.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/core/SkICC.cpp b/src/core/SkICC.cpp
index 5ed4e70560..cfc66e1238 100644
--- a/src/core/SkICC.cpp
+++ b/src/core/SkICC.cpp
@@ -286,11 +286,7 @@ static constexpr uint32_t kICCTagTable[3 * kICCNumEntries] {
// The use of double is necessary to accomodate the full potential 32-bit mantissa of the 16.16
// SkFixed value, and so avoiding rounding problems with float. Also, see the comment in SkFixed.h.
static SkFixed float_round_to_fixed(float x) {
-#if defined(SK_SUPPORT_LEGACY_ICC_PRECISON)
- return SkFloatToFixed(x);
-#else
return sk_float_saturate2int((float)floor((double)x * SK_Fixed1 + 0.5));
-#endif
}
static void write_xyz_tag(uint32_t* ptr, const SkMatrix44& toXYZ, int col) {