projects
/
platform
/
upstream
/
libSkiaSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35f255f
)
Fix master-skia build
author
msarett
<msarett@google.com>
Tue, 19 Jul 2016 20:00:35 +0000
(13:00 -0700)
committer
Commit bot
<commit-bot@chromium.org>
Tue, 19 Jul 2016 20:00:35 +0000
(13:00 -0700)
TBR=djsollen@google.com
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=
2159223003
Review-Url: https://codereview.chromium.org/
2159223003
bench/ColorCodecBench.cpp
patch
|
blob
|
history
diff --git
a/bench/ColorCodecBench.cpp
b/bench/ColorCodecBench.cpp
index 55ec7d9d7b031d9b8c890c64e073c8e349255d58..45bd293991785446c90bdc5ee21f971216bb6755 100644
(file)
--- 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;
}