OLD | NEW |
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 30 matching lines...) Expand all Loading... |
41 outset.setWidth(3 * kernelSize.width() * 0.5f); | 41 outset.setWidth(3 * kernelSize.width() * 0.5f); |
42 outset.setHeight(3 * kernelSize.height() * 0.5f); | 42 outset.setHeight(3 * kernelSize.height() * 0.5f); |
43 | 43 |
44 return outset; | 44 return outset; |
45 } | 45 } |
46 | 46 |
47 FilterOperations::FilterOperations() | 47 FilterOperations::FilterOperations() |
48 { | 48 { |
49 } | 49 } |
50 | 50 |
| 51 void FilterOperations::trace(Visitor* visitor) |
| 52 { |
| 53 visitor->trace(m_operations); |
| 54 } |
| 55 |
51 FilterOperations& FilterOperations::operator=(const FilterOperations& other) | 56 FilterOperations& FilterOperations::operator=(const FilterOperations& other) |
52 { | 57 { |
53 m_operations = other.m_operations; | 58 m_operations = other.m_operations; |
54 return *this; | 59 return *this; |
55 } | 60 } |
56 | 61 |
57 bool FilterOperations::operator==(const FilterOperations& o) const | 62 bool FilterOperations::operator==(const FilterOperations& o) const |
58 { | 63 { |
59 if (m_operations.size() != o.m_operations.size()) | 64 if (m_operations.size() != o.m_operations.size()) |
60 return false; | 65 return false; |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 bool FilterOperations::hasFilterThatMovesPixels() const | 171 bool FilterOperations::hasFilterThatMovesPixels() const |
167 { | 172 { |
168 for (size_t i = 0; i < m_operations.size(); ++i) | 173 for (size_t i = 0; i < m_operations.size(); ++i) |
169 if (m_operations[i]->movesPixels()) | 174 if (m_operations[i]->movesPixels()) |
170 return true; | 175 return true; |
171 return false; | 176 return false; |
172 } | 177 } |
173 | 178 |
174 } // namespace blink | 179 } // namespace blink |
175 | 180 |
OLD | NEW |