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) 2009 Dirk Schulze <krit@webkit.org> | 5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
6 * Copyright (C) 2010 Zoltan Herczeg <zherczeg@webkit.org> | 6 * Copyright (C) 2010 Zoltan Herczeg <zherczeg@webkit.org> |
7 * Copyright (C) 2013 Google Inc. All rights reserved. | 7 * Copyright (C) 2013 Google Inc. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 28 matching lines...) Expand all Loading... |
39 , m_kernelSize(kernelSize) | 39 , m_kernelSize(kernelSize) |
40 , m_divisor(divisor) | 40 , m_divisor(divisor) |
41 , m_bias(bias) | 41 , m_bias(bias) |
42 , m_targetOffset(targetOffset) | 42 , m_targetOffset(targetOffset) |
43 , m_edgeMode(edgeMode) | 43 , m_edgeMode(edgeMode) |
44 , m_preserveAlpha(preserveAlpha) | 44 , m_preserveAlpha(preserveAlpha) |
45 , m_kernelMatrix(kernelMatrix) | 45 , m_kernelMatrix(kernelMatrix) |
46 { | 46 { |
47 } | 47 } |
48 | 48 |
49 RawPtr<FEConvolveMatrix> FEConvolveMatrix::create(Filter* filter, const IntSize&
kernelSize, | 49 FEConvolveMatrix* FEConvolveMatrix::create(Filter* filter, const IntSize& kernel
Size, |
50 float divisor, float bias, const IntPoint& targetOffset, EdgeModeType edgeMo
de, | 50 float divisor, float bias, const IntPoint& targetOffset, EdgeModeType edgeMo
de, |
51 bool preserveAlpha, const Vector<float>& kernelMatrix) | 51 bool preserveAlpha, const Vector<float>& kernelMatrix) |
52 { | 52 { |
53 return new FEConvolveMatrix(filter, kernelSize, divisor, bias, targetOffset,
edgeMode, | 53 return new FEConvolveMatrix(filter, kernelSize, divisor, bias, targetOffset,
edgeMode, |
54 preserveAlpha, kernelMatrix); | 54 preserveAlpha, kernelMatrix); |
55 } | 55 } |
56 | 56 |
57 FloatRect FEConvolveMatrix::mapPaintRect(const FloatRect& rect, bool forward) co
nst | 57 FloatRect FEConvolveMatrix::mapPaintRect(const FloatRect& rect, bool forward) co
nst |
58 { | 58 { |
59 FloatRect result = rect; | 59 FloatRect result = rect; |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 << "divisor=\"" << m_divisor << "\" " | 186 << "divisor=\"" << m_divisor << "\" " |
187 << "bias=\"" << m_bias << "\" " | 187 << "bias=\"" << m_bias << "\" " |
188 << "target=\"" << m_targetOffset << "\" " | 188 << "target=\"" << m_targetOffset << "\" " |
189 << "edgeMode=\"" << m_edgeMode << "\" " | 189 << "edgeMode=\"" << m_edgeMode << "\" " |
190 << "preserveAlpha=\"" << m_preserveAlpha << "\"]\n"; | 190 << "preserveAlpha=\"" << m_preserveAlpha << "\"]\n"; |
191 inputEffect(0)->externalRepresentation(ts, indent + 1); | 191 inputEffect(0)->externalRepresentation(ts, indent + 1); |
192 return ts; | 192 return ts; |
193 } | 193 } |
194 | 194 |
195 } // namespace blink | 195 } // namespace blink |
OLD | NEW |