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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/filters/FilterOperations.h

Issue 1860903002: Update Source/platform/ to assume Oilpan only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: back out ScrollAnimatorMac() accidental change Created 4 years, 8 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 19 matching lines...) Expand all
30 #include "platform/geometry/IntRectOutsets.h" 30 #include "platform/geometry/IntRectOutsets.h"
31 #include "platform/graphics/filters/FilterOperation.h" 31 #include "platform/graphics/filters/FilterOperation.h"
32 #include "wtf/RefPtr.h" 32 #include "wtf/RefPtr.h"
33 #include "wtf/Vector.h" 33 #include "wtf/Vector.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 typedef IntRectOutsets FilterOutsets; 37 typedef IntRectOutsets FilterOutsets;
38 38
39 class PLATFORM_EXPORT FilterOperations { 39 class PLATFORM_EXPORT FilterOperations {
40 #if ENABLE(OILPAN)
41 DISALLOW_NEW(); 40 DISALLOW_NEW();
42 #else
43 USING_FAST_MALLOC(FilterOperations);
44 #endif
45 public: 41 public:
46 FilterOperations(); 42 FilterOperations();
47 FilterOperations(const FilterOperations& other) { *this = other; } 43 FilterOperations(const FilterOperations& other) { *this = other; }
48 44
49 FilterOperations& operator=(const FilterOperations&); 45 FilterOperations& operator=(const FilterOperations&);
50 46
51 bool operator==(const FilterOperations&) const; 47 bool operator==(const FilterOperations&) const;
52 bool operator!=(const FilterOperations& o) const 48 bool operator!=(const FilterOperations& o) const
53 { 49 {
54 return !(*this == o); 50 return !(*this == o);
(...skipping 22 matching lines...) Expand all
77 bool hasFilterThatMovesPixels() const; 73 bool hasFilterThatMovesPixels() const;
78 74
79 bool hasReferenceFilter() const; 75 bool hasReferenceFilter() const;
80 76
81 DECLARE_TRACE(); 77 DECLARE_TRACE();
82 78
83 private: 79 private:
84 FilterOperationVector m_operations; 80 FilterOperationVector m_operations;
85 }; 81 };
86 82
87 #if ENABLE(OILPAN)
88 // Wrapper object for the FilterOperations part object. 83 // Wrapper object for the FilterOperations part object.
89 class FilterOperationsWrapper : public GarbageCollected<FilterOperationsWrapper> { 84 class FilterOperationsWrapper : public GarbageCollected<FilterOperationsWrapper> {
90 public: 85 public:
91 static FilterOperationsWrapper* create() 86 static FilterOperationsWrapper* create()
92 { 87 {
93 return new FilterOperationsWrapper(); 88 return new FilterOperationsWrapper();
94 } 89 }
95 90
96 static FilterOperationsWrapper* create(const FilterOperations& operations) 91 static FilterOperationsWrapper* create(const FilterOperations& operations)
97 { 92 {
98 return new FilterOperationsWrapper(operations); 93 return new FilterOperationsWrapper(operations);
99 } 94 }
100 95
101 const FilterOperations& operations() const { return m_operations; } 96 const FilterOperations& operations() const { return m_operations; }
102 97
103 DEFINE_INLINE_TRACE() { visitor->trace(m_operations); } 98 DEFINE_INLINE_TRACE() { visitor->trace(m_operations); }
104 99
105 private: 100 private:
106 FilterOperationsWrapper() 101 FilterOperationsWrapper()
107 { 102 {
108 } 103 }
109 104
110 explicit FilterOperationsWrapper(const FilterOperations& operations) 105 explicit FilterOperationsWrapper(const FilterOperations& operations)
111 : m_operations(operations) 106 : m_operations(operations)
112 { 107 {
113 } 108 }
114 109
115 FilterOperations m_operations; 110 FilterOperations m_operations;
116 }; 111 };
117 #endif
118 112
119 } // namespace blink 113 } // namespace blink
120 114
121 115
122 #endif // FilterOperations_h 116 #endif // FilterOperations_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698