| 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 16 matching lines...) Expand all Loading... |
| 27 #include "platform/graphics/filters/FilterEffect.h" | 27 #include "platform/graphics/filters/FilterEffect.h" |
| 28 | 28 |
| 29 namespace blink { | 29 namespace blink { |
| 30 | 30 |
| 31 class PLATFORM_EXPORT SourceGraphic : public FilterEffect { | 31 class PLATFORM_EXPORT SourceGraphic : public FilterEffect { |
| 32 public: | 32 public: |
| 33 static PassRefPtr<SourceGraphic> create(Filter*); | 33 static PassRefPtr<SourceGraphic> create(Filter*); |
| 34 | 34 |
| 35 static const AtomicString& effectName(); | 35 static const AtomicString& effectName(); |
| 36 | 36 |
| 37 virtual FloatRect determineAbsolutePaintRect(const FloatRect& requestedRect)
OVERRIDE; | 37 virtual FloatRect determineAbsolutePaintRect(const FloatRect& requestedRect)
override; |
| 38 | 38 |
| 39 virtual FilterEffectType filterEffectType() const OVERRIDE { return FilterEf
fectTypeSourceInput; } | 39 virtual FilterEffectType filterEffectType() const override { return FilterEf
fectTypeSourceInput; } |
| 40 | 40 |
| 41 virtual TextStream& externalRepresentation(TextStream&, int indention) const
OVERRIDE; | 41 virtual TextStream& externalRepresentation(TextStream&, int indention) const
override; |
| 42 PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder*) OVERRID
E; | 42 PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder*) overrid
e; |
| 43 | 43 |
| 44 void setDisplayList(PassRefPtr<DisplayList>); | 44 void setDisplayList(PassRefPtr<DisplayList>); |
| 45 | 45 |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 SourceGraphic(Filter* filter) | 48 SourceGraphic(Filter* filter) |
| 49 : FilterEffect(filter) | 49 : FilterEffect(filter) |
| 50 { | 50 { |
| 51 setOperatingColorSpace(ColorSpaceDeviceRGB); | 51 setOperatingColorSpace(ColorSpaceDeviceRGB); |
| 52 } | 52 } |
| 53 | 53 |
| 54 virtual void applySoftware() OVERRIDE; | 54 virtual void applySoftware() override; |
| 55 RefPtr<DisplayList> m_displayList; | 55 RefPtr<DisplayList> m_displayList; |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 } //namespace blink | 58 } //namespace blink |
| 59 | 59 |
| 60 #endif // SourceGraphic_h | 60 #endif // SourceGraphic_h |
| OLD | NEW |