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

Unified Diff: third_party/WebKit/Source/core/paint/FilterEffectBuilder.h

Issue 2357633003: Move buildFilterOperations to FilterEffectBuilder (Closed)
Patch Set: Fold toCompositorFilterOperations 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/paint/FilterEffectBuilder.h
diff --git a/third_party/WebKit/Source/core/paint/FilterEffectBuilder.h b/third_party/WebKit/Source/core/paint/FilterEffectBuilder.h
index 7e7aa2bf88b6add682c70eadfb7e3dd3e9a06232..b949afd03ca05506edc5c58701126cbc446e8dd6 100644
--- a/third_party/WebKit/Source/core/paint/FilterEffectBuilder.h
+++ b/third_party/WebKit/Source/core/paint/FilterEffectBuilder.h
@@ -35,11 +35,12 @@ class SkPaint;
namespace blink {
-class Element;
+class CompositorFilterOperations;
class Filter;
class FilterEffect;
class FilterOperations;
class FloatRect;
+class Node;
class ReferenceFilterOperation;
class SVGFilterElement;
class SVGFilterGraphNodeMap;
@@ -48,19 +49,21 @@ class CORE_EXPORT FilterEffectBuilder final {
STACK_ALLOCATED();
public:
FilterEffectBuilder(
- Element*,
+ Node*,
const FloatRect& zoomedReferenceBox,
float zoom,
const SkPaint* fillPaint = nullptr,
const SkPaint* strokePaint = nullptr);
Filter* buildReferenceFilter(SVGFilterElement&, FilterEffect* previousEffect, SVGFilterGraphNodeMap* = nullptr) const;
- Filter* buildReferenceFilter(const ReferenceFilterOperation&, FilterEffect* previousEffect = nullptr) const;
FilterEffect* buildFilterEffect(const FilterOperations&) const;
+ CompositorFilterOperations buildFilterOperations(const FilterOperations&) const;
private:
- Member<Element> m_targetContext;
+ Filter* buildReferenceFilter(const ReferenceFilterOperation&, FilterEffect* previousEffect) const;
+
+ Member<Node> m_targetContext;
FloatRect m_referenceBox;
float m_zoom;
const SkPaint* m_fillPaint;

Powered by Google App Engine
This is Rietveld 408576698