| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 MapRectForward = 1, | 60 MapRectForward = 1, |
| 61 ClipToFilterRegion = 1 << 1 | 61 ClipToFilterRegion = 1 << 1 |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 typedef int DetermineSubregionFlags; | 64 typedef int DetermineSubregionFlags; |
| 65 | 65 |
| 66 class PLATFORM_EXPORT FilterEffect : public RefCounted<FilterEffect> { | 66 class PLATFORM_EXPORT FilterEffect : public RefCounted<FilterEffect> { |
| 67 public: | 67 public: |
| 68 virtual ~FilterEffect(); | 68 virtual ~FilterEffect(); |
| 69 | 69 |
| 70 static bool isFilterSizeValid(const IntRect&); | |
| 71 static bool isFilterSizeValid(const FloatRect&); | 70 static bool isFilterSizeValid(const FloatRect&); |
| 72 static float maxFilterArea(); | 71 static float maxFilterArea(); |
| 73 | 72 |
| 74 void clearResult(); | 73 void clearResult(); |
| 75 void clearResultsRecursive(); | 74 void clearResultsRecursive(); |
| 76 | 75 |
| 77 ImageBuffer* asImageBuffer(); | 76 ImageBuffer* asImageBuffer(); |
| 78 PassRefPtr<Uint8ClampedArray> asUnmultipliedImage(const IntRect&); | 77 PassRefPtr<Uint8ClampedArray> asUnmultipliedImage(const IntRect&); |
| 79 PassRefPtr<Uint8ClampedArray> asPremultipliedImage(const IntRect&); | 78 PassRefPtr<Uint8ClampedArray> asPremultipliedImage(const IntRect&); |
| 80 void copyUnmultipliedImage(Uint8ClampedArray* destination, const IntRect&); | 79 void copyUnmultipliedImage(Uint8ClampedArray* destination, const IntRect&); |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 // Should the effect clip to its primitive region, or expand to use the comb
ined region of its inputs. | 235 // Should the effect clip to its primitive region, or expand to use the comb
ined region of its inputs. |
| 237 bool m_clipsToBounds; | 236 bool m_clipsToBounds; |
| 238 | 237 |
| 239 ColorSpace m_operatingColorSpace; | 238 ColorSpace m_operatingColorSpace; |
| 240 ColorSpace m_resultColorSpace; | 239 ColorSpace m_resultColorSpace; |
| 241 }; | 240 }; |
| 242 | 241 |
| 243 } // namespace WebCore | 242 } // namespace WebCore |
| 244 | 243 |
| 245 #endif // FilterEffect_h | 244 #endif // FilterEffect_h |
| OLD | NEW |