Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Unified Diff: third_party/WebKit/Source/platform/graphics/filters/PaintFilterEffect.h

Issue 1543593002: Forward fill and stroke styles from 2d canvas to canvas filters (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove PaintFilterEffect::affectsTransparentPixels Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..ddfaaa416d77b50dbdf4426233418c7fb330845b
--- /dev/null
+++ b/third_party/WebKit/Source/platform/graphics/filters/PaintFilterEffect.h
@@ -0,0 +1,31 @@
+// Copyright 2016 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;
+
+private:
+ PaintFilterEffect(Filter*, const SkPaint&);
+
+ SkPaint m_paint;
+};
+
+} // namespace blink
+
+#endif // PaintFilterEffect_h

Powered by Google App Engine
This is Rietveld 408576698