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

Side by Side Diff: Source/core/svg/graphics/filters/SVGFilter.h

Issue 1326183002: Merge ReferenceFilter into Filter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Touchups; Rebase. Created 5 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/paint/SVGFilterPainter.cpp ('k') | Source/core/svg/graphics/filters/SVGFilter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 2 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
21 #ifndef SVGFilter_h 21 #ifndef SVGFilter_h
22 #define SVGFilter_h 22 #define SVGFilter_h
23 23
24 #include "platform/geometry/FloatRect.h" 24 #include "platform/geometry/FloatRect.h"
25 #include "platform/geometry/FloatSize.h"
26 #include "platform/graphics/filters/Filter.h" 25 #include "platform/graphics/filters/Filter.h"
27 #include "platform/graphics/filters/FilterEffect.h" 26 #include "platform/graphics/filters/FilterEffect.h"
28 #include "platform/transforms/AffineTransform.h"
29 #include "wtf/PassRefPtr.h" 27 #include "wtf/PassRefPtr.h"
30 #include "wtf/RefCounted.h" 28 #include "wtf/RefCounted.h"
31 #include "wtf/RefPtr.h" 29 #include "wtf/RefPtr.h"
32 30
33 namespace blink { 31 namespace blink {
34 32
35 class SVGFilter final : public Filter { 33 class SVGFilter final : public Filter {
36 public: 34 public:
37 static PassRefPtrWillBeRawPtr<SVGFilter> create(const IntRect&, const FloatR ect&, const FloatRect&, bool); 35 static PassRefPtrWillBeRawPtr<SVGFilter> create(const IntRect&, const FloatR ect&, const FloatRect&, bool);
38 36
39 float applyHorizontalScale(float value) const override; 37 float applyHorizontalScale(float value) const override;
40 float applyVerticalScale(float value) const override; 38 float applyVerticalScale(float value) const override;
41 FloatPoint3D resolve3dPoint(const FloatPoint3D&) const override; 39 FloatPoint3D resolve3dPoint(const FloatPoint3D&) const override;
42 40
43 IntRect sourceImageRect() const override { return m_absoluteSourceDrawingReg ion; } 41 IntRect sourceImageRect() const override { return m_absoluteSourceDrawingReg ion; }
44 42
45 private: 43 private:
46 SVGFilter(const IntRect& absoluteSourceDrawingRegion, const FloatRect& targe tBoundingBox, const FloatRect& filterRegion, bool effectBBoxMode); 44 SVGFilter(const IntRect& absoluteSourceDrawingRegion, const FloatRect& refer enceBox, const FloatRect& filterRegion, bool effectBBoxMode);
47 45
48 IntRect m_absoluteSourceDrawingRegion; 46 IntRect m_absoluteSourceDrawingRegion;
49 bool m_effectBBoxMode; 47 bool m_effectBBoxMode;
50 }; 48 };
51 49
52 } // namespace blink 50 } // namespace blink
53 51
54 #endif // SVGFilter_h 52 #endif // SVGFilter_h
OLDNEW
« no previous file with comments | « Source/core/paint/SVGFilterPainter.cpp ('k') | Source/core/svg/graphics/filters/SVGFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698