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

Unified Diff: bench/ColorCodecBench.cpp

Issue 2206403003: Optimize color xforms when src and dst are matching (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Response to comments 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 | src/core/SkColorSpaceXform.h » ('j') | 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 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)
« no previous file with comments | « no previous file | src/core/SkColorSpaceXform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698