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 13 matching lines...) Expand all Loading... |
24 | 24 |
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 class SkPicture; | 28 class SkPicture; |
29 | 29 |
30 namespace blink { | 30 namespace blink { |
31 | 31 |
32 class PLATFORM_EXPORT SourceGraphic final : public FilterEffect { | 32 class PLATFORM_EXPORT SourceGraphic final : public FilterEffect { |
33 public: | 33 public: |
34 static RawPtr<SourceGraphic> create(Filter*); | 34 static SourceGraphic* create(Filter*); |
35 ~SourceGraphic() override; | 35 ~SourceGraphic() override; |
36 | 36 |
37 FloatRect determineAbsolutePaintRect(const FloatRect& requestedRect) overrid
e; | 37 FloatRect determineAbsolutePaintRect(const FloatRect& requestedRect) overrid
e; |
38 | 38 |
39 FilterEffectType getFilterEffectType() const override { return FilterEffectT
ypeSourceInput; } | 39 FilterEffectType getFilterEffectType() const override { return FilterEffectT
ypeSourceInput; } |
40 | 40 |
41 TextStream& externalRepresentation(TextStream&, int indention) const overrid
e; | 41 TextStream& externalRepresentation(TextStream&, int indention) const overrid
e; |
42 PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder&) overrid
e; | 42 PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder&) overrid
e; |
43 | 43 |
44 void setPicture(PassRefPtr<const SkPicture>); | 44 void setPicture(PassRefPtr<const SkPicture>); |
45 void setSourceRect(const IntRect&); | 45 void setSourceRect(const IntRect&); |
46 | 46 |
47 private: | 47 private: |
48 explicit SourceGraphic(Filter*); | 48 explicit SourceGraphic(Filter*); |
49 | 49 |
50 RefPtr<const SkPicture> m_picture; | 50 RefPtr<const SkPicture> m_picture; |
51 IntRect m_sourceRect; | 51 IntRect m_sourceRect; |
52 }; | 52 }; |
53 | 53 |
54 } //namespace blink | 54 } //namespace blink |
55 | 55 |
56 #endif // SourceGraphic_h | 56 #endif // SourceGraphic_h |
OLD | NEW |