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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/filters/FEConvolveMatrix.h

Issue 2341923002: Harmonize FilterEffect::mapRect and mapPaintRect (Closed)
Patch Set: Rebase Created 4 years, 2 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 unified diff | Download patch
OLDNEW
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 public: 43 public:
44 static 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;
54
55 TextStream& externalRepresentation(TextStream&, int indention) const overrid e; 53 TextStream& externalRepresentation(TextStream&, int indention) const overrid e;
56 54
57 private: 55 private:
58 FEConvolveMatrix(Filter*, const IntSize&, float, float, 56 FEConvolveMatrix(Filter*, const IntSize&, float, float,
59 const IntPoint&, EdgeModeType, bool, const Vector<float>&); 57 const IntPoint&, EdgeModeType, bool, const Vector<float>&);
60 58
59 FloatRect mapEffect(const FloatRect&) const final;
60
61 sk_sp<SkImageFilter> createImageFilter() override; 61 sk_sp<SkImageFilter> createImageFilter() override;
62 62
63 bool parametersValid() const; 63 bool parametersValid() const;
64 64
65 IntSize m_kernelSize; 65 IntSize m_kernelSize;
66 float m_divisor; 66 float m_divisor;
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698