blob: 13f5b8aef34cfd7a74603c27a63c78c5e37a9f7f [file] [log] [blame]
reed@android.com8a1c16f2008-12-17 15:59:43 +00001/*
epoger@google.comec3ed6a2011-07-28 14:26:00 +00002 * Copyright 2008 The Android Open Source Project
reed@android.com8a1c16f2008-12-17 15:59:43 +00003 *
epoger@google.comec3ed6a2011-07-28 14:26:00 +00004 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
reed@android.com8a1c16f2008-12-17 15:59:43 +00006 */
7
epoger@google.comec3ed6a2011-07-28 14:26:00 +00008
reed@android.com8a1c16f2008-12-17 15:59:43 +00009#ifndef SkBlurDrawLooper_DEFINED
10#define SkBlurDrawLooper_DEFINED
11
12#include "SkDrawLooper.h"
reed@android.com8a1c16f2008-12-17 15:59:43 +000013
Matt Sarett56ea77a2017-03-28 15:27:06 -040014/**
15 * Draws a shadow of the object (possibly offset), and then draws the original object in
16 * its original position.
17 */
18namespace SkBlurDrawLooper {
Leon Scroggins IIIe5481612019-01-09 15:57:34 -050019 sk_sp<SkDrawLooper> SK_API Make(SkColor4f color, SkColorSpace* cs,
20 SkScalar sigma, SkScalar dx, SkScalar dy);
Derek Sollenberger2fbf1bc2017-09-20 15:51:08 -040021 sk_sp<SkDrawLooper> SK_API Make(SkColor color, SkScalar sigma, SkScalar dx, SkScalar dy);
reed@android.com8a1c16f2008-12-17 15:59:43 +000022};
23
24#endif