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

Side by Side Diff: third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.h

Issue 1387573003: Pass SkiaImageFilterBuilder& to FilterEffect::createImageFilter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.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) 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 Dirk Schulze <krit@webkit.org> 5 * Copyright (C) 2010 Dirk Schulze <krit@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 29 matching lines...) Expand all
40 40
41 FloatRect determineAbsolutePaintRect(const FloatRect& requestedRect) overrid e; 41 FloatRect determineAbsolutePaintRect(const FloatRect& requestedRect) overrid e;
42 42
43 FilterEffectType filterEffectType() const override { return FilterEffectType Image; } 43 FilterEffectType filterEffectType() const override { return FilterEffectType Image; }
44 44
45 // feImage does not perform color interpolation of any kind, so doesn't 45 // feImage does not perform color interpolation of any kind, so doesn't
46 // depend on the value of color-interpolation-filters. 46 // depend on the value of color-interpolation-filters.
47 void setOperatingColorSpace(ColorSpace) override { } 47 void setOperatingColorSpace(ColorSpace) override { }
48 48
49 TextStream& externalRepresentation(TextStream&, int indention) const overrid e; 49 TextStream& externalRepresentation(TextStream&, int indention) const overrid e;
50 PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder*) overrid e; 50 PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder&) overrid e;
51 51
52 DECLARE_VIRTUAL_TRACE(); 52 DECLARE_VIRTUAL_TRACE();
53 53
54 private: 54 private:
55 ~FEImage() override {} 55 ~FEImage() override {}
56 FEImage(Filter*, PassRefPtr<Image>, PassRefPtrWillBeRawPtr<SVGPreserveAspect Ratio>); 56 FEImage(Filter*, PassRefPtr<Image>, PassRefPtrWillBeRawPtr<SVGPreserveAspect Ratio>);
57 FEImage(Filter*, TreeScope&, const String&, PassRefPtrWillBeRawPtr<SVGPreser veAspectRatio>); 57 FEImage(Filter*, TreeScope&, const String&, PassRefPtrWillBeRawPtr<SVGPreser veAspectRatio>);
58 LayoutObject* referencedLayoutObject() const; 58 LayoutObject* referencedLayoutObject() const;
59 59
60 PassRefPtr<SkImageFilter> createImageFilterForLayoutObject(LayoutObject&, Sk iaImageFilterBuilder*); 60 PassRefPtr<SkImageFilter> createImageFilterForLayoutObject(const LayoutObjec t&);
61 61
62 RefPtr<Image> m_image; 62 RefPtr<Image> m_image;
63 63
64 // m_treeScope will never be a dangling reference. See https://bugs.webkit.o rg/show_bug.cgi?id=99243 64 // m_treeScope will never be a dangling reference. See https://bugs.webkit.o rg/show_bug.cgi?id=99243
65 RawPtrWillBeMember<TreeScope> m_treeScope; 65 RawPtrWillBeMember<TreeScope> m_treeScope;
66 String m_href; 66 String m_href;
67 RefPtrWillBeMember<SVGPreserveAspectRatio> m_preserveAspectRatio; 67 RefPtrWillBeMember<SVGPreserveAspectRatio> m_preserveAspectRatio;
68 }; 68 };
69 69
70 } // namespace blink 70 } // namespace blink
71 71
72 #endif // SVGFEImage_h 72 #endif // SVGFEImage_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698