From f618cb32fcca2ec91cadadcc2965cbe2602bc2cc Mon Sep 17 00:00:00 2001 From: Bryce Harrington Date: Tue, 15 Apr 2014 12:31:20 -0700 Subject: 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. --- src/skia-tests/mask.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/skia-tests/mask.cpp') 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 #include #include @@ -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; } -- cgit v1.3.1-4-g156e