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

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

Issue 1326183002: Merge ReferenceFilter into Filter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Touchups; Rebase. Created 5 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
« no previous file with comments | « Source/core/paint/DeprecatedPaintLayer.cpp ('k') | Source/core/paint/FilterEffectBuilder.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) 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 18 matching lines...) Expand all
29 #include "core/CoreExport.h" 29 #include "core/CoreExport.h"
30 #include "platform/graphics/filters/FilterEffect.h" 30 #include "platform/graphics/filters/FilterEffect.h"
31 #include "platform/heap/Handle.h" 31 #include "platform/heap/Handle.h"
32 #include "wtf/PassRefPtr.h" 32 #include "wtf/PassRefPtr.h"
33 #include "wtf/RefCounted.h" 33 #include "wtf/RefCounted.h"
34 #include "wtf/RefPtr.h" 34 #include "wtf/RefPtr.h"
35 #include "wtf/Vector.h" 35 #include "wtf/Vector.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 class Filter;
39 class FilterOperations; 40 class FilterOperations;
40 class ReferenceFilter;
41 class Element; 41 class Element;
42 42
43 class CORE_EXPORT FilterEffectBuilder final : public RefCountedWillBeGarbageColl ectedFinalized<FilterEffectBuilder> { 43 class CORE_EXPORT FilterEffectBuilder final : public RefCountedWillBeGarbageColl ectedFinalized<FilterEffectBuilder> {
44 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(FilterEffectBuilder); 44 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(FilterEffectBuilder);
45 public: 45 public:
46 static PassRefPtrWillBeRawPtr<FilterEffectBuilder> create() 46 static PassRefPtrWillBeRawPtr<FilterEffectBuilder> create()
47 { 47 {
48 return adoptRefWillBeNoop(new FilterEffectBuilder()); 48 return adoptRefWillBeNoop(new FilterEffectBuilder());
49 } 49 }
50 50
51 virtual ~FilterEffectBuilder(); 51 virtual ~FilterEffectBuilder();
52 DECLARE_TRACE(); 52 DECLARE_TRACE();
53 53
54 bool build(Element*, const FilterOperations&, float zoom); 54 bool build(Element*, const FilterOperations&, float zoom);
55 55
56 PassRefPtrWillBeRawPtr<FilterEffect> lastEffect() const 56 PassRefPtrWillBeRawPtr<FilterEffect> lastEffect() const
57 { 57 {
58 return m_lastEffect; 58 return m_lastEffect;
59 } 59 }
60 60
61 private: 61 private:
62 FilterEffectBuilder(); 62 FilterEffectBuilder();
63 63
64 RefPtrWillBeMember<FilterEffect> m_lastEffect; 64 RefPtrWillBeMember<FilterEffect> m_lastEffect;
65 WillBeHeapVector<RefPtrWillBeMember<ReferenceFilter>> m_referenceFilters; 65 WillBeHeapVector<RefPtrWillBeMember<Filter>> m_referenceFilters;
66 }; 66 };
67 67
68 } // namespace blink 68 } // namespace blink
69 69
70 #endif // FilterEffectBuilder_h 70 #endif // FilterEffectBuilder_h
OLDNEW
« no previous file with comments | « Source/core/paint/DeprecatedPaintLayer.cpp ('k') | Source/core/paint/FilterEffectBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698