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

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

Issue 2357633003: Move buildFilterOperations to FilterEffectBuilder (Closed)
Patch Set: Fold toCompositorFilterOperations Created 4 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
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 17 matching lines...) Expand all
28 28
29 #include "core/CoreExport.h" 29 #include "core/CoreExport.h"
30 #include "platform/geometry/FloatRect.h" 30 #include "platform/geometry/FloatRect.h"
31 #include "platform/heap/Handle.h" 31 #include "platform/heap/Handle.h"
32 #include "wtf/Allocator.h" 32 #include "wtf/Allocator.h"
33 33
34 class SkPaint; 34 class SkPaint;
35 35
36 namespace blink { 36 namespace blink {
37 37
38 class Element; 38 class CompositorFilterOperations;
39 class Filter; 39 class Filter;
40 class FilterEffect; 40 class FilterEffect;
41 class FilterOperations; 41 class FilterOperations;
42 class FloatRect; 42 class FloatRect;
43 class Node;
43 class ReferenceFilterOperation; 44 class ReferenceFilterOperation;
44 class SVGFilterElement; 45 class SVGFilterElement;
45 class SVGFilterGraphNodeMap; 46 class SVGFilterGraphNodeMap;
46 47
47 class CORE_EXPORT FilterEffectBuilder final { 48 class CORE_EXPORT FilterEffectBuilder final {
48 STACK_ALLOCATED(); 49 STACK_ALLOCATED();
49 public: 50 public:
50 FilterEffectBuilder( 51 FilterEffectBuilder(
51 Element*, 52 Node*,
52 const FloatRect& zoomedReferenceBox, 53 const FloatRect& zoomedReferenceBox,
53 float zoom, 54 float zoom,
54 const SkPaint* fillPaint = nullptr, 55 const SkPaint* fillPaint = nullptr,
55 const SkPaint* strokePaint = nullptr); 56 const SkPaint* strokePaint = nullptr);
56 57
57 Filter* buildReferenceFilter(SVGFilterElement&, FilterEffect* previousEffect , SVGFilterGraphNodeMap* = nullptr) const; 58 Filter* buildReferenceFilter(SVGFilterElement&, FilterEffect* previousEffect , SVGFilterGraphNodeMap* = nullptr) const;
58 Filter* buildReferenceFilter(const ReferenceFilterOperation&, FilterEffect* previousEffect = nullptr) const;
59 59
60 FilterEffect* buildFilterEffect(const FilterOperations&) const; 60 FilterEffect* buildFilterEffect(const FilterOperations&) const;
61 CompositorFilterOperations buildFilterOperations(const FilterOperations&) co nst;
61 62
62 private: 63 private:
63 Member<Element> m_targetContext; 64 Filter* buildReferenceFilter(const ReferenceFilterOperation&, FilterEffect* previousEffect) const;
65
66 Member<Node> m_targetContext;
64 FloatRect m_referenceBox; 67 FloatRect m_referenceBox;
65 float m_zoom; 68 float m_zoom;
66 const SkPaint* m_fillPaint; 69 const SkPaint* m_fillPaint;
67 const SkPaint* m_strokePaint; 70 const SkPaint* m_strokePaint;
68 }; 71 };
69 72
70 } // namespace blink 73 } // namespace blink
71 74
72 #endif // FilterEffectBuilder_h 75 #endif // FilterEffectBuilder_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698