Chromium Code Reviews| Index: third_party/WebKit/Source/platform/graphics/filters/PaintFilterEffect.h |
| diff --git a/third_party/WebKit/Source/platform/graphics/filters/PaintFilterEffect.h b/third_party/WebKit/Source/platform/graphics/filters/PaintFilterEffect.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..0184c779d3535244f95f800aa1b86e44ef61a120 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/platform/graphics/filters/PaintFilterEffect.h |
| @@ -0,0 +1,33 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef PaintFilterEffect_h |
| +#define PaintFilterEffect_h |
| + |
| +#include "platform/graphics/filters/FilterEffect.h" |
| +#include "third_party/skia/include/core/SkPaint.h" |
| + |
| +namespace blink { |
| + |
| +class PLATFORM_EXPORT PaintFilterEffect : public FilterEffect { |
| +public: |
| + static PassRefPtrWillBeRawPtr<PaintFilterEffect> create(Filter*, const SkPaint&); |
| + ~PaintFilterEffect() override; |
| + |
| + FilterEffectType filterEffectType() const override { return FilterEffectTypeSourceInput; } |
| + |
| + TextStream& externalRepresentation(TextStream&, int indention) const override; |
| + PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder&) override; |
| + |
| + bool affectsTransparentPixels() override { return true; } |
|
fs
2016/01/11 20:19:24
Since this is an input I'm sure if this feels a bi
ajuma
2016/01/11 21:33:08
I interpreted "affectsTransparentPixes" as "produc
ajuma
2016/01/11 21:34:18
Sorry, I meant "produces non-transparent *output*
|
| + |
| +private: |
| + PaintFilterEffect(Filter*, const SkPaint&); |
| + |
| + SkPaint m_paint; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // PaintFilterEffect_h |