Index: bench/SkBenchmark.cpp |
diff --git a/bench/SkBenchmark.cpp b/bench/SkBenchmark.cpp |
index 6afcd8e9f39e9db09792d148f2c92c6652e6b528..43f78b0f2ddc50eb15d8ebddd617e1fdfd9b319b 100644 |
--- a/bench/SkBenchmark.cpp |
+++ b/bench/SkBenchmark.cpp |
@@ -20,6 +20,7 @@ SkBenchmark::SkBenchmark(void* defineDict) { |
fDither = SkTriState::kDefault; |
fHasStrokeWidth = false; |
fIsRendering = true; |
+ fOrMask = fClearMask = 0; |
} |
const char* SkBenchmark::getName() { |
@@ -47,6 +48,8 @@ void SkBenchmark::setupPaint(SkPaint* paint) { |
paint->setAntiAlias(fForceAA); |
paint->setFilterBitmap(fForceFilter); |
+ paint->setFlags((paint->getFlags() & ~fClearMask) | fOrMask); |
+ |
if (SkTriState::kDefault != fDither) { |
paint->setDither(SkTriState::kTrue == fDither); |
} |