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 : public FilterEffect { | 42 class PLATFORM_EXPORT FEConvolveMatrix : public FilterEffect { |
43 public: | 43 public: |
44 static PassRefPtr<FEConvolveMatrix> create(Filter*, const IntSize&, | 44 static PassRefPtrWillBeRawPtr<FEConvolveMatrix> create(Filter*, const IntSiz
e&, |
45 float, float, const IntPoint&, EdgeModeType, const FloatPoint&, | 45 float, float, const IntPoint&, EdgeModeType, const FloatPoint&, |
46 bool, const Vector<float>&); | 46 bool, const Vector<float>&); |
47 | 47 |
48 IntSize kernelSize() const; | 48 IntSize kernelSize() const; |
49 void setKernelSize(const IntSize&); | 49 void setKernelSize(const IntSize&); |
50 | 50 |
51 const Vector<float>& kernel() const; | 51 const Vector<float>& kernel() const; |
52 void setKernel(const Vector<float>&); | 52 void setKernel(const Vector<float>&); |
53 | 53 |
54 float divisor() const; | 54 float divisor() const; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 IntPoint m_targetOffset; | 86 IntPoint m_targetOffset; |
87 EdgeModeType m_edgeMode; | 87 EdgeModeType m_edgeMode; |
88 FloatPoint m_kernelUnitLength; | 88 FloatPoint m_kernelUnitLength; |
89 bool m_preserveAlpha; | 89 bool m_preserveAlpha; |
90 Vector<float> m_kernelMatrix; | 90 Vector<float> m_kernelMatrix; |
91 }; | 91 }; |
92 | 92 |
93 } // namespace blink | 93 } // namespace blink |
94 | 94 |
95 #endif // FEConvolveMatrix_h | 95 #endif // FEConvolveMatrix_h |
OLD | NEW |