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 * Copyright (C) 2013 Google Inc. All rights reserved. | 5 * Copyright (C) 2013 Google Inc. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 // Return false if the filter will only operate correctly on valid RGBA valu
es, with | 142 // Return false if the filter will only operate correctly on valid RGBA valu
es, with |
143 // alpha in [0,255] and each color component in [0, alpha]. | 143 // alpha in [0,255] and each color component in [0, alpha]. |
144 virtual bool mayProduceInvalidPreMultipliedPixels() { return false; } | 144 virtual bool mayProduceInvalidPreMultipliedPixels() { return false; } |
145 | 145 |
146 SkImageFilter* getImageFilter(ColorSpace, bool requiresPMColorValidation) co
nst; | 146 SkImageFilter* getImageFilter(ColorSpace, bool requiresPMColorValidation) co
nst; |
147 void setImageFilter(ColorSpace, bool requiresPMColorValidation, PassRefPtr<S
kImageFilter>); | 147 void setImageFilter(ColorSpace, bool requiresPMColorValidation, PassRefPtr<S
kImageFilter>); |
148 | 148 |
149 protected: | 149 protected: |
150 FilterEffect(Filter*); | 150 FilterEffect(Filter*); |
151 | 151 |
| 152 PassRefPtr<SkImageFilter> createTransparentBlack() const; |
| 153 |
152 Color adaptColorToOperatingColorSpace(const Color& deviceColor); | 154 Color adaptColorToOperatingColorSpace(const Color& deviceColor); |
153 | 155 |
154 SkImageFilter::CropRect getCropRect(const FloatSize& cropOffset) const; | 156 SkImageFilter::CropRect getCropRect(const FloatSize& cropOffset) const; |
155 | 157 |
156 void addAbsolutePaintRect(const FloatRect& absolutePaintRect); | 158 void addAbsolutePaintRect(const FloatRect& absolutePaintRect); |
157 | 159 |
158 private: | 160 private: |
159 bool hasConnectedInput() const; | 161 bool hasConnectedInput() const; |
160 | 162 |
161 FilterEffectVector m_inputEffects; | 163 FilterEffectVector m_inputEffects; |
(...skipping 24 matching lines...) Expand all Loading... |
186 bool m_clipsToBounds; | 188 bool m_clipsToBounds; |
187 | 189 |
188 ColorSpace m_operatingColorSpace; | 190 ColorSpace m_operatingColorSpace; |
189 | 191 |
190 RefPtr<SkImageFilter> m_imageFilters[4]; | 192 RefPtr<SkImageFilter> m_imageFilters[4]; |
191 }; | 193 }; |
192 | 194 |
193 } // namespace blink | 195 } // namespace blink |
194 | 196 |
195 #endif // FilterEffect_h | 197 #endif // FilterEffect_h |
OLD | NEW |