| Index: include/effects/SkFloodImageFilter.h
|
| diff --git a/include/effects/SkFloodImageFilter.h b/include/effects/SkFloodImageFilter.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d10eefcb1cf7559a73d1eabe6be629c0ef71cddd
|
| --- /dev/null
|
| +++ b/include/effects/SkFloodImageFilter.h
|
| @@ -0,0 +1,33 @@
|
| +/*
|
| + * Copyright 2013 The Android Open Source Project
|
| + *
|
| + * Use of this source code is governed by a BSD-style license that can be
|
| + * found in the LICENSE file.
|
| + */
|
| +
|
| +#ifndef SkFloodImageFilter_DEFINED
|
| +#define SkFloodImageFilter_DEFINED
|
| +
|
| +#include "SkImageFilter.h"
|
| +#include "SkColor.h"
|
| +
|
| +class SkFloodImageFilter : public SkImageFilter {
|
| + typedef SkImageFilter INHERITED;
|
| +
|
| +public:
|
| + SkFloodImageFilter(const SkColor& color, const SkIRect* cropRect)
|
| + : INHERITED(0, 0, cropRect), fColor(color) {}
|
| +
|
| + SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkFloodImageFilter)
|
| +
|
| + SkFloodImageFilter(SkFlattenableReadBuffer& buffer);
|
| +
|
| + virtual void flatten(SkFlattenableWriteBuffer& buffer) const SK_OVERRIDE;
|
| +
|
| + virtual bool onFilterImage(Proxy* proxy, const SkBitmap& src, const SkMatrix& ctm,
|
| + SkBitmap* result, SkIPoint* offset) SK_OVERRIDE;
|
| +private:
|
| + SkColor fColor;
|
| +};
|
| +
|
| +#endif
|
|
|