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

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

Issue 500233002: First pass at ripping out non-deferred SVG filter path. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Nuke more code Created 6 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
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,
(...skipping 16 matching lines...) Expand all
27 #include "platform/graphics/filters/FilterEffect.h" 27 #include "platform/graphics/filters/FilterEffect.h"
28 #include "platform/transforms/AffineTransform.h" 28 #include "platform/transforms/AffineTransform.h"
29 #include "wtf/PassRefPtr.h" 29 #include "wtf/PassRefPtr.h"
30 #include "wtf/RefCounted.h" 30 #include "wtf/RefCounted.h"
31 #include "wtf/RefPtr.h" 31 #include "wtf/RefPtr.h"
32 32
33 namespace blink { 33 namespace blink {
34 34
35 class SVGFilter FINAL : public Filter { 35 class SVGFilter FINAL : public Filter {
36 public: 36 public:
37 static PassRefPtr<SVGFilter> create(const AffineTransform&, const IntRect&, const FloatRect&, const FloatRect&, bool); 37 static PassRefPtr<SVGFilter> create(const IntRect&, const FloatRect&, const FloatRect&, bool);
38 38
39 virtual float applyHorizontalScale(float value) const OVERRIDE; 39 virtual float applyHorizontalScale(float value) const OVERRIDE;
40 virtual float applyVerticalScale(float value) const OVERRIDE; 40 virtual float applyVerticalScale(float value) const OVERRIDE;
41 virtual FloatPoint3D resolve3dPoint(const FloatPoint3D&) const OVERRIDE; 41 virtual FloatPoint3D resolve3dPoint(const FloatPoint3D&) const OVERRIDE;
42 42
43 virtual IntRect sourceImageRect() const OVERRIDE { return m_absoluteSourceDr awingRegion; } 43 virtual IntRect sourceImageRect() const OVERRIDE { return m_absoluteSourceDr awingRegion; }
44 FloatRect targetBoundingBox() const { return m_targetBoundingBox; } 44 FloatRect targetBoundingBox() const { return m_targetBoundingBox; }
45 45
46 private: 46 private:
47 SVGFilter(const AffineTransform& absoluteTransform, const IntRect& absoluteS ourceDrawingRegion, const FloatRect& targetBoundingBox, const FloatRect& filterR egion, bool effectBBoxMode); 47 SVGFilter(const IntRect& absoluteSourceDrawingRegion, const FloatRect& targe tBoundingBox, const FloatRect& filterRegion, bool effectBBoxMode);
48 48
49 IntRect m_absoluteSourceDrawingRegion; 49 IntRect m_absoluteSourceDrawingRegion;
50 FloatRect m_targetBoundingBox; 50 FloatRect m_targetBoundingBox;
51 bool m_effectBBoxMode; 51 bool m_effectBBoxMode;
52 }; 52 };
53 53
54 } // namespace blink 54 } // namespace blink
55 55
56 #endif // SVGFilter_h 56 #endif // SVGFilter_h
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/SVGRenderTreeAsText.cpp ('k') | Source/core/svg/graphics/filters/SVGFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698