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

Unified Diff: bench/ColorCodecBench.cpp

Issue 2159223003: Fix master-skia build (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 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: bench/ColorCodecBench.cpp
diff --git a/bench/ColorCodecBench.cpp b/bench/ColorCodecBench.cpp
index 55ec7d9d7b031d9b8c890c64e073c8e349255d58..45bd293991785446c90bdc5ee21f971216bb6755 100644
--- a/bench/ColorCodecBench.cpp
+++ b/bench/ColorCodecBench.cpp
@@ -199,7 +199,12 @@ void ColorCodecBench::onDelayedSetup() {
}
void ColorCodecBench::onDraw(int n, SkCanvas*) {
- if ((FLAGS_srgb || FLAGS_qcms) && FLAGS_half) {
+#if defined(SK_TEST_QCMS)
+ bool to8888 = FLAGS_srgb || FLAGS_qcms;
+#else
+ bool to8888 = FLAGS_srgb;
+#endif
+ if (to8888 && FLAGS_half) {
SkDebugf("Error: Contradicting flags.\n");
return;
}
« 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