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

Side by Side Diff: third_party/WebKit/Source/core/paint/FilterEffectBuilder.h

Issue 2343173002: Let clients of FilterEffectBuilder compute/provide the reference-box (Closed)
Patch Set: Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 class CORE_EXPORT FilterEffectBuilder final : public GarbageCollectedFinalized<F ilterEffectBuilder> { 43 class CORE_EXPORT FilterEffectBuilder final : public GarbageCollectedFinalized<F ilterEffectBuilder> {
44 public: 44 public:
45 static FilterEffectBuilder* create() 45 static FilterEffectBuilder* create()
46 { 46 {
47 return new FilterEffectBuilder(); 47 return new FilterEffectBuilder();
48 } 48 }
49 49
50 virtual ~FilterEffectBuilder(); 50 virtual ~FilterEffectBuilder();
51 DECLARE_TRACE(); 51 DECLARE_TRACE();
52 52
53 static Filter* buildReferenceFilter(const ReferenceFilterOperation&, const F loatSize* zoomedReferenceBoxSize, const SkPaint* fillPaint, const SkPaint* strok ePaint, Element&, FilterEffect* previousEffect, float zoom); 53 static Filter* buildReferenceFilter(const ReferenceFilterOperation&, const F loatRect& zoomedReferenceBox, const SkPaint* fillPaint, const SkPaint* strokePai nt, Element&, FilterEffect* previousEffect, float zoom);
54 static Filter* buildReferenceFilter(SVGFilterElement&, const FloatRect& refe renceBox, const SkPaint* fillPaint, const SkPaint* strokePaint, FilterEffect* pr eviousEffect, float zoom, SVGFilterGraphNodeMap* = nullptr); 54 static Filter* buildReferenceFilter(SVGFilterElement&, const FloatRect& refe renceBox, const SkPaint* fillPaint, const SkPaint* strokePaint, FilterEffect* pr eviousEffect, float zoom, SVGFilterGraphNodeMap* = nullptr);
55 55
56 bool build(Element*, const FilterOperations&, float zoom, const FloatSize* z oomedReferenceBoxSize = nullptr, const SkPaint* fillPaint = nullptr, const SkPai nt* strokePaint = nullptr); 56 bool build(Element*, const FilterOperations&, float zoom, const FloatRect& z oomedReferenceBox, const SkPaint* fillPaint = nullptr, const SkPaint* strokePain t = nullptr);
57 57
58 FilterEffect* lastEffect() const 58 FilterEffect* lastEffect() const
59 { 59 {
60 return m_lastEffect; 60 return m_lastEffect;
61 } 61 }
62 62
63 private: 63 private:
64 FilterEffectBuilder(); 64 FilterEffectBuilder();
65 65
66 Member<FilterEffect> m_lastEffect; 66 Member<FilterEffect> m_lastEffect;
67 }; 67 };
68 68
69 } // namespace blink 69 } // namespace blink
70 70
71 #endif // FilterEffectBuilder_h 71 #endif // FilterEffectBuilder_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698