10eafc9b06cbfd47e9c3471c82580790cef0fdae5reed/* 20eafc9b06cbfd47e9c3471c82580790cef0fdae5reed * Copyright 2014 Google Inc. 30eafc9b06cbfd47e9c3471c82580790cef0fdae5reed * 40eafc9b06cbfd47e9c3471c82580790cef0fdae5reed * Use of this source code is governed by a BSD-style license that can be 50eafc9b06cbfd47e9c3471c82580790cef0fdae5reed * found in the LICENSE file. 60eafc9b06cbfd47e9c3471c82580790cef0fdae5reed */ 70eafc9b06cbfd47e9c3471c82580790cef0fdae5reed 80eafc9b06cbfd47e9c3471c82580790cef0fdae5reed// EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL 90eafc9b06cbfd47e9c3471c82580790cef0fdae5reed// DO NOT USE -- FOR INTERNAL TESTING ONLY 100eafc9b06cbfd47e9c3471c82580790cef0fdae5reed 110eafc9b06cbfd47e9c3471c82580790cef0fdae5reed#ifndef sk_maskfilter_DEFINED 120eafc9b06cbfd47e9c3471c82580790cef0fdae5reed#define sk_maskfilter_DEFINED 130eafc9b06cbfd47e9c3471c82580790cef0fdae5reed 140eafc9b06cbfd47e9c3471c82580790cef0fdae5reed#include "sk_types.h" 150eafc9b06cbfd47e9c3471c82580790cef0fdae5reed 160eafc9b06cbfd47e9c3471c82580790cef0fdae5reedtypedef enum { 170eafc9b06cbfd47e9c3471c82580790cef0fdae5reed NORMAL_SK_BLUR_STYLE, //!< fuzzy inside and outside 180eafc9b06cbfd47e9c3471c82580790cef0fdae5reed SOLID_SK_BLUR_STYLE, //!< solid inside, fuzzy outside 190eafc9b06cbfd47e9c3471c82580790cef0fdae5reed OUTER_SK_BLUR_STYLE, //!< nothing inside, fuzzy outside 200eafc9b06cbfd47e9c3471c82580790cef0fdae5reed INNER_SK_BLUR_STYLE, //!< fuzzy inside, nothing outside 210eafc9b06cbfd47e9c3471c82580790cef0fdae5reed} sk_blurstyle_t; 220eafc9b06cbfd47e9c3471c82580790cef0fdae5reed 230eafc9b06cbfd47e9c3471c82580790cef0fdae5reedSK_C_PLUS_PLUS_BEGIN_GUARD 240eafc9b06cbfd47e9c3471c82580790cef0fdae5reed 252880df2609eba09b555ca37be04b6ad89290c765Tom Hudson/** 262880df2609eba09b555ca37be04b6ad89290c765Tom Hudson Increment the reference count on the given sk_maskfilter_t. Must be 272880df2609eba09b555ca37be04b6ad89290c765Tom Hudson balanced by a call to sk_maskfilter_unref(). 282880df2609eba09b555ca37be04b6ad89290c765Tom Hudson*/ 290eafc9b06cbfd47e9c3471c82580790cef0fdae5reedvoid sk_maskfilter_ref(sk_maskfilter_t*); 302880df2609eba09b555ca37be04b6ad89290c765Tom Hudson/** 312880df2609eba09b555ca37be04b6ad89290c765Tom Hudson Decrement the reference count. If the reference count is 1 before 322880df2609eba09b555ca37be04b6ad89290c765Tom Hudson the decrement, then release both the memory holding the 332880df2609eba09b555ca37be04b6ad89290c765Tom Hudson sk_maskfilter_t and any other associated resources. New 342880df2609eba09b555ca37be04b6ad89290c765Tom Hudson sk_maskfilter_t are created with a reference count of 1. 352880df2609eba09b555ca37be04b6ad89290c765Tom Hudson*/ 360eafc9b06cbfd47e9c3471c82580790cef0fdae5reedvoid sk_maskfilter_unref(sk_maskfilter_t*); 370eafc9b06cbfd47e9c3471c82580790cef0fdae5reed 382880df2609eba09b555ca37be04b6ad89290c765Tom Hudson/** 392880df2609eba09b555ca37be04b6ad89290c765Tom Hudson Create a blur maskfilter. 402880df2609eba09b555ca37be04b6ad89290c765Tom Hudson @param sk_blurstyle_t The SkBlurStyle to use 412880df2609eba09b555ca37be04b6ad89290c765Tom Hudson @param sigma Standard deviation of the Gaussian blur to apply. Must be > 0. 422880df2609eba09b555ca37be04b6ad89290c765Tom Hudson*/ 430eafc9b06cbfd47e9c3471c82580790cef0fdae5reedsk_maskfilter_t* sk_maskfilter_new_blur(sk_blurstyle_t, float sigma); 440eafc9b06cbfd47e9c3471c82580790cef0fdae5reed 450eafc9b06cbfd47e9c3471c82580790cef0fdae5reedSK_C_PLUS_PLUS_END_GUARD 460eafc9b06cbfd47e9c3471c82580790cef0fdae5reed 470eafc9b06cbfd47e9c3471c82580790cef0fdae5reed#endif 48