michael@0: michael@0: /* michael@0: * Copyright 2006 The Android Open Source Project michael@0: * michael@0: * Use of this source code is governed by a BSD-style license that can be michael@0: * found in the LICENSE file. michael@0: */ michael@0: michael@0: michael@0: #include "SkDrawBlur.h" michael@0: michael@0: #if SK_USE_CONDENSED_INFO == 0 michael@0: michael@0: const SkMemberInfo SkDrawBlur::fInfo[] = { michael@0: SK_MEMBER(fBlurStyle, MaskFilterBlurStyle), michael@0: SK_MEMBER(fSigma, Float) michael@0: }; michael@0: michael@0: #endif michael@0: michael@0: DEFINE_GET_MEMBER(SkDrawBlur); michael@0: michael@0: SkDrawBlur::SkDrawBlur() michael@0: : fSigma(-1) michael@0: , fBlurStyle(SkBlurMaskFilter::kNormal_BlurStyle) { michael@0: } michael@0: michael@0: SkMaskFilter* SkDrawBlur::getMaskFilter() { michael@0: if (fSigma < 0) michael@0: return NULL; michael@0: return SkBlurMaskFilter::Create((SkBlurMaskFilter::BlurStyle) fBlurStyle, fSigma); michael@0: }