| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 2 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
| 3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 class SourceGraphic; | 33 class SourceGraphic; |
| 34 class FilterEffect; | 34 class FilterEffect; |
| 35 | 35 |
| 36 class PLATFORM_EXPORT Filter final : public RefCountedWillBeGarbageCollectedFina
lized<Filter> { | 36 class PLATFORM_EXPORT Filter final : public RefCountedWillBeGarbageCollectedFina
lized<Filter> { |
| 37 public: | 37 public: |
| 38 enum UnitScaling { | 38 enum UnitScaling { |
| 39 UserSpace, | 39 UserSpace, |
| 40 BoundingBox | 40 BoundingBox |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 static PassRefPtrWillBeRawPtr<Filter> create(const FloatRect& referenceBox,
const FloatRect& filterRegion, float scale, UnitScaling = UserSpace); | 43 static PassRefPtrWillBeRawPtr<Filter> create(const FloatRect& referenceBox,
const FloatRect& filterRegion, float scale, UnitScaling); |
| 44 static PassRefPtrWillBeRawPtr<Filter> create(float scale); | 44 static PassRefPtrWillBeRawPtr<Filter> create(float scale); |
| 45 | 45 |
| 46 ~Filter(); | 46 ~Filter(); |
| 47 DECLARE_TRACE(); | 47 DECLARE_TRACE(); |
| 48 | 48 |
| 49 float scale() const { return m_scale; } | 49 float scale() const { return m_scale; } |
| 50 FloatRect mapLocalRectToAbsoluteRect(const FloatRect&) const; | 50 FloatRect mapLocalRectToAbsoluteRect(const FloatRect&) const; |
| 51 FloatRect mapAbsoluteRectToLocalRect(const FloatRect&) const; | 51 FloatRect mapAbsoluteRectToLocalRect(const FloatRect&) const; |
| 52 | 52 |
| 53 float applyHorizontalScale(float value) const; | 53 float applyHorizontalScale(float value) const; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 73 float m_scale; | 73 float m_scale; |
| 74 UnitScaling m_unitScaling; | 74 UnitScaling m_unitScaling; |
| 75 | 75 |
| 76 RefPtrWillBeMember<SourceGraphic> m_sourceGraphic; | 76 RefPtrWillBeMember<SourceGraphic> m_sourceGraphic; |
| 77 RefPtrWillBeMember<FilterEffect> m_lastEffect; | 77 RefPtrWillBeMember<FilterEffect> m_lastEffect; |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace blink | 80 } // namespace blink |
| 81 | 81 |
| 82 #endif // Filter_h | 82 #endif // Filter_h |
| OLD | NEW |