Index: bench/ColorCodecBench.cpp |
diff --git a/bench/ColorCodecBench.cpp b/bench/ColorCodecBench.cpp |
index 85785d864c6b185b7808a5c388b546216519c037..bfbea62c418b88015c47fc340a302d63075135c0 100644 |
--- a/bench/ColorCodecBench.cpp |
+++ b/bench/ColorCodecBench.cpp |
@@ -172,6 +172,10 @@ void ColorCodecBench::onDelayedSetup() { |
if (FLAGS_qcms) { |
fDstSpaceQCMS.reset(qcms_profile_from_memory(dstData->data(), dstData->size())); |
SkASSERT(fDstSpaceQCMS); |
+ |
+ // This call takes a non-trivial amount of time, but I think it's the most fair to |
+ // treat it as overhead. It only needs to happen once. |
+ qcms_profile_precache_output_transform(fDstSpaceQCMS); |
} else |
#endif |
{ |