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

Unified Diff: tests/SRGBTest.cpp

Issue 2221803002: Test sk_linear_to_srgb() less exhaustively in Debug mode. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/SRGBTest.cpp
diff --git a/tests/SRGBTest.cpp b/tests/SRGBTest.cpp
index 43ec02700f9d389eb9534879f4f8188462c285bb..77c1fb75dedbc4d61378e21340fae4f06c2b31bd 100644
--- a/tests/SRGBTest.cpp
+++ b/tests/SRGBTest.cpp
@@ -33,6 +33,7 @@ DEF_TEST(sk_linear_to_srgb, r) {
union { float flt; uint32_t bits; } pun = { f };
pun.bits++;
+ SkDEBUGCODE(pun.bits += 127);
f = pun.flt;
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698