| 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 |
| 11 * License as published by the Free Software Foundation; either | 11 * License as published by the Free Software Foundation; either |
| 12 * version 2 of the License, or (at your option) any later version. | 12 * version 2 of the License, or (at your option) any later version. |
| 13 * | 13 * |
| 14 * This library is distributed in the hope that it will be useful, | 14 * This library is distributed in the hope that it will be useful, |
| 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 * Library General Public License for more details. | 17 * Library General Public License for more details. |
| 18 * | 18 * |
| 19 * You should have received a copy of the GNU Library General Public License | 19 * You should have received a copy of the GNU Library General Public License |
| 20 * along with this library; see the file COPYING.LIB. If not, write to | 20 * along with this library; see the file COPYING.LIB. If not, write to |
| 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 22 * Boston, MA 02110-1301, USA. | 22 * Boston, MA 02110-1301, USA. |
| 23 */ | 23 */ |
| 24 | 24 |
| 25 #include "platform/graphics/filters/FEConvolveMatrix.h" | 25 #include "platform/graphics/filters/FEConvolveMatrix.h" |
| 26 | 26 |
| 27 #include <memory> |
| 27 #include "SkMatrixConvolutionImageFilter.h" | 28 #include "SkMatrixConvolutionImageFilter.h" |
| 28 #include "platform/graphics/filters/SkiaImageFilterBuilder.h" | 29 #include "platform/graphics/filters/SkiaImageFilterBuilder.h" |
| 29 #include "platform/text/TextStream.h" | 30 #include "platform/text/TextStream.h" |
| 30 #include "wtf/CheckedNumeric.h" | 31 #include "wtf/CheckedNumeric.h" |
| 31 #include "wtf/PtrUtil.h" | 32 #include "wtf/PtrUtil.h" |
| 32 #include <memory> | |
| 33 | 33 |
| 34 namespace blink { | 34 namespace blink { |
| 35 | 35 |
| 36 FEConvolveMatrix::FEConvolveMatrix(Filter* filter, | 36 FEConvolveMatrix::FEConvolveMatrix(Filter* filter, |
| 37 const IntSize& kernelSize, | 37 const IntSize& kernelSize, |
| 38 float divisor, | 38 float divisor, |
| 39 float bias, | 39 float bias, |
| 40 const IntPoint& targetOffset, | 40 const IntPoint& targetOffset, |
| 41 EdgeModeType edgeMode, | 41 EdgeModeType edgeMode, |
| 42 bool preserveAlpha, | 42 bool preserveAlpha, |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 << "divisor=\"" << m_divisor << "\" " | 190 << "divisor=\"" << m_divisor << "\" " |
| 191 << "bias=\"" << m_bias << "\" " | 191 << "bias=\"" << m_bias << "\" " |
| 192 << "target=\"" << m_targetOffset << "\" " | 192 << "target=\"" << m_targetOffset << "\" " |
| 193 << "edgeMode=\"" << m_edgeMode << "\" " | 193 << "edgeMode=\"" << m_edgeMode << "\" " |
| 194 << "preserveAlpha=\"" << m_preserveAlpha << "\"]\n"; | 194 << "preserveAlpha=\"" << m_preserveAlpha << "\"]\n"; |
| 195 inputEffect(0)->externalRepresentation(ts, indent + 1); | 195 inputEffect(0)->externalRepresentation(ts, indent + 1); |
| 196 return ts; | 196 return ts; |
| 197 } | 197 } |
| 198 | 198 |
| 199 } // namespace blink | 199 } // namespace blink |
| OLD | NEW |