| 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) 2013 Google Inc. All rights reserved. | 4 * Copyright (C) 2013 Google Inc. 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 14 matching lines...) Expand all Loading... |
| 25 #include "platform/geometry/IntRect.h" | 25 #include "platform/geometry/IntRect.h" |
| 26 #include "platform/graphics/filters/FilterEffect.h" | 26 #include "platform/graphics/filters/FilterEffect.h" |
| 27 | 27 |
| 28 namespace blink { | 28 namespace blink { |
| 29 | 29 |
| 30 class PLATFORM_EXPORT SourceGraphic final : public FilterEffect { | 30 class PLATFORM_EXPORT SourceGraphic final : public FilterEffect { |
| 31 public: | 31 public: |
| 32 static SourceGraphic* create(Filter*); | 32 static SourceGraphic* create(Filter*); |
| 33 ~SourceGraphic() override; | 33 ~SourceGraphic() override; |
| 34 | 34 |
| 35 FloatRect determineAbsolutePaintRect(const FloatRect& requestedRect) const o
verride; | |
| 36 | |
| 37 FilterEffectType getFilterEffectType() const override { return FilterEffectT
ypeSourceInput; } | |
| 38 | |
| 39 TextStream& externalRepresentation(TextStream&, int indention) const overrid
e; | 35 TextStream& externalRepresentation(TextStream&, int indention) const overrid
e; |
| 40 | 36 |
| 41 void setSourceRect(const IntRect&); | 37 void setSourceRect(const IntRect&); |
| 42 | 38 |
| 43 private: | 39 private: |
| 44 explicit SourceGraphic(Filter*); | 40 explicit SourceGraphic(Filter*); |
| 45 | 41 |
| 42 FilterEffectType getFilterEffectType() const override { return FilterEffectT
ypeSourceInput; } |
| 43 |
| 44 FloatRect mapInputs(const FloatRect&) const override; |
| 45 |
| 46 IntRect m_sourceRect; | 46 IntRect m_sourceRect; |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } //namespace blink | 49 } //namespace blink |
| 50 | 50 |
| 51 #endif // SourceGraphic_h | 51 #endif // SourceGraphic_h |
| OLD | NEW |