OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Alex Mathews <possessedpenguinbob@gmail.com> | 2 * Copyright (C) 2008 Alex Mathews <possessedpenguinbob@gmail.com> |
3 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 3 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 unsigned size = m_inputEffects.size(); | 97 unsigned size = m_inputEffects.size(); |
98 for (unsigned i = 0; i < size; ++i) { | 98 for (unsigned i = 0; i < size; ++i) { |
99 FilterEffect* in = m_inputEffects.at(i).get(); | 99 FilterEffect* in = m_inputEffects.at(i).get(); |
100 in->apply(); | 100 in->apply(); |
101 if (!in->hasResult()) | 101 if (!in->hasResult()) |
102 return; | 102 return; |
103 } | 103 } |
104 determineAbsolutePaintRect(); | 104 determineAbsolutePaintRect(); |
105 | 105 |
106 // Add platform specific apply functions here and return earlier. | 106 // Add platform specific apply functions here and return earlier. |
107 #if USE(SKIA) | |
108 if (platformApplySkia()) | |
109 return; | |
110 #endif | |
111 platformApplySoftware(); | 107 platformApplySoftware(); |
112 } | 108 } |
113 | 109 |
114 void FilterEffect::clearResult() | 110 void FilterEffect::clearResult() |
115 { | 111 { |
116 if (m_imageBufferResult) | 112 if (m_imageBufferResult) |
117 m_imageBufferResult.clear(); | 113 m_imageBufferResult.clear(); |
118 if (m_unmultipliedImageResult) | 114 if (m_unmultipliedImageResult) |
119 m_unmultipliedImageResult.clear(); | 115 m_unmultipliedImageResult.clear(); |
120 if (m_premultipliedImageResult) | 116 if (m_premultipliedImageResult) |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 TextStream& FilterEffect::externalRepresentation(TextStream& ts, int) const | 294 TextStream& FilterEffect::externalRepresentation(TextStream& ts, int) const |
299 { | 295 { |
300 // FIXME: We should dump the subRegions of the filter primitives here later.
This isn't | 296 // FIXME: We should dump the subRegions of the filter primitives here later.
This isn't |
301 // possible at the moment, because we need more detailed informations from t
he target object. | 297 // possible at the moment, because we need more detailed informations from t
he target object. |
302 return ts; | 298 return ts; |
303 } | 299 } |
304 | 300 |
305 } // namespace WebCore | 301 } // namespace WebCore |
306 | 302 |
307 #endif // ENABLE(FILTERS) | 303 #endif // ENABLE(FILTERS) |
OLD | NEW |