OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> |
5 * Copyright (C) 2010 Zoltan Herczeg <zherczeg@webkit.org> | 5 * Copyright (C) 2010 Zoltan Herczeg <zherczeg@webkit.org> |
6 * Copyright (C) 2013 Google Inc. All rights reserved. | 6 * Copyright (C) 2013 Google Inc. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 enum EdgeModeType { | 35 enum EdgeModeType { |
36 EDGEMODE_UNKNOWN = 0, | 36 EDGEMODE_UNKNOWN = 0, |
37 EDGEMODE_DUPLICATE = 1, | 37 EDGEMODE_DUPLICATE = 1, |
38 EDGEMODE_WRAP = 2, | 38 EDGEMODE_WRAP = 2, |
39 EDGEMODE_NONE = 3 | 39 EDGEMODE_NONE = 3 |
40 }; | 40 }; |
41 | 41 |
42 class PLATFORM_EXPORT FEConvolveMatrix final : public FilterEffect { | 42 class PLATFORM_EXPORT FEConvolveMatrix final : public FilterEffect { |
43 public: | 43 public: |
44 static RawPtr<FEConvolveMatrix> create(Filter*, const IntSize&, | 44 static FEConvolveMatrix* create(Filter*, const IntSize&, |
45 float, float, const IntPoint&, EdgeModeType, bool, const Vector<float>&)
; | 45 float, float, const IntPoint&, EdgeModeType, bool, const Vector<float>&)
; |
46 | 46 |
47 bool setDivisor(float); | 47 bool setDivisor(float); |
48 bool setBias(float); | 48 bool setBias(float); |
49 bool setTargetOffset(const IntPoint&); | 49 bool setTargetOffset(const IntPoint&); |
50 bool setEdgeMode(EdgeModeType); | 50 bool setEdgeMode(EdgeModeType); |
51 bool setPreserveAlpha(bool); | 51 bool setPreserveAlpha(bool); |
52 | 52 |
53 FloatRect mapPaintRect(const FloatRect&, bool forward = true) const final; | 53 FloatRect mapPaintRect(const FloatRect&, bool forward = true) const final; |
54 | 54 |
(...skipping 12 matching lines...) Expand all Loading... |
67 float m_bias; | 67 float m_bias; |
68 IntPoint m_targetOffset; | 68 IntPoint m_targetOffset; |
69 EdgeModeType m_edgeMode; | 69 EdgeModeType m_edgeMode; |
70 bool m_preserveAlpha; | 70 bool m_preserveAlpha; |
71 Vector<float> m_kernelMatrix; | 71 Vector<float> m_kernelMatrix; |
72 }; | 72 }; |
73 | 73 |
74 } // namespace blink | 74 } // namespace blink |
75 | 75 |
76 #endif // FEConvolveMatrix_h | 76 #endif // FEConvolveMatrix_h |
OLD | NEW |