summaryrefslogtreecommitdiffstatsci
path: root/src
diff options
context:
space:
mode:
authorBryce Harrington <b.harrington@samsung.com>2014-04-15 12:31:20 -0700
committerBryce Harrington <b.harrington@samsung.com>2014-04-15 12:31:20 -0700
commitf618cb32fcca2ec91cadadcc2965cbe2602bc2cc (patch)
tree2ca170d0fe7ba6a03627ba33b58ac3c98428c3fd /src
parent9b8ab58b76af822e9ec5529b5ca982d960909d77 (diff)
cmake: Only use skia-sra API if ENABLE_LEGACY_SKIA_SRA specified
This enables us to move mainline to skia-samsung while (temporarily) preserving backwards compatibility to the old skia-sra tree. This option should be removed once we are no longer using skia-sra anywhere and no longer need to test against it.
Diffstat (limited to 'src')
-rw-r--r--src/skia-tests/mask.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/skia-tests/mask.cpp b/src/skia-tests/mask.cpp
index 2688d9d..fb1ef7b 100644
--- a/src/skia-tests/mask.cpp
+++ b/src/skia-tests/mask.cpp
@@ -1,3 +1,5 @@
+#include "config.h"
+
#include <SkCanvas.h>
#include <SkPaint.h>
#include <effects/SkStippleMaskFilter.h>
@@ -8,7 +10,11 @@
int
sk_setup_mask(caskbench_context_t *ctx)
{
+#if USE_LEGACY_SKIA_SRA
SkMaskFilter *mask = new SkStippleMaskFilter();
+#else
+ SkMaskFilter *mask = SkStippleMaskFilter::Create();
+#endif
ctx->skia_paint->setMaskFilter(mask);
return 1;
}