Index: bench/ColorCodecBench.cpp |
diff --git a/bench/ColorCodecBench.cpp b/bench/ColorCodecBench.cpp |
index 7ec2c94cbef3ee944c3a69c62357831e80ba449e..0687f9ca7ed93cd3277d7d1a92f9f7a67319b671 100644 |
--- a/bench/ColorCodecBench.cpp |
+++ b/bench/ColorCodecBench.cpp |
@@ -182,14 +182,11 @@ void ColorCodecBench::onDelayedSetup() { |
void ColorCodecBench::onDraw(int n, SkCanvas*) { |
#if defined(SK_TEST_QCMS) |
- bool to8888 = FLAGS_srgb || FLAGS_qcms; |
-#else |
- bool to8888 = FLAGS_srgb; |
-#endif |
- if (to8888 && FLAGS_half) { |
+ if (FLAGS_qcms && FLAGS_half) { |
SkDebugf("Error: Contradicting flags.\n"); |
return; |
} |
+#endif |
for (int i = 0; i < n; i++) { |
#if defined(SK_TEST_QCMS) |