OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> |
5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
7 * Copyright (C) 2013 Google Inc. All rights reserved. | 7 * Copyright (C) 2013 Google Inc. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 12 matching lines...) Expand all Loading... |
23 */ | 23 */ |
24 | 24 |
25 #include "config.h" | 25 #include "config.h" |
26 | 26 |
27 #include "core/platform/graphics/filters/FEOffset.h" | 27 #include "core/platform/graphics/filters/FEOffset.h" |
28 | 28 |
29 #include "SkFlattenableBuffers.h" | 29 #include "SkFlattenableBuffers.h" |
30 #include "SkOffsetImageFilter.h" | 30 #include "SkOffsetImageFilter.h" |
31 | 31 |
32 #include "core/platform/graphics/GraphicsContext.h" | 32 #include "core/platform/graphics/GraphicsContext.h" |
33 #include "core/platform/graphics/filters/Filter.h" | |
34 #include "core/platform/graphics/filters/SkiaImageFilterBuilder.h" | 33 #include "core/platform/graphics/filters/SkiaImageFilterBuilder.h" |
35 #include "platform/text/TextStream.h" | 34 #include "platform/text/TextStream.h" |
36 #include "third_party/skia/include/core/SkDevice.h" | 35 #include "third_party/skia/include/core/SkDevice.h" |
37 | 36 |
38 namespace WebCore { | 37 namespace WebCore { |
39 | 38 |
40 FEOffset::FEOffset(Filter* filter, float dx, float dy) | 39 FEOffset::FEOffset(Filter* filter, float dx, float dy) |
41 : FilterEffect(filter) | 40 : FilterEffect(filter) |
42 , m_dx(dx) | 41 , m_dx(dx) |
43 , m_dy(dy) | 42 , m_dy(dy) |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 { | 118 { |
120 writeIndent(ts, indent); | 119 writeIndent(ts, indent); |
121 ts << "[feOffset"; | 120 ts << "[feOffset"; |
122 FilterEffect::externalRepresentation(ts); | 121 FilterEffect::externalRepresentation(ts); |
123 ts << " dx=\"" << dx() << "\" dy=\"" << dy() << "\"]\n"; | 122 ts << " dx=\"" << dx() << "\" dy=\"" << dy() << "\"]\n"; |
124 inputEffect(0)->externalRepresentation(ts, indent + 1); | 123 inputEffect(0)->externalRepresentation(ts, indent + 1); |
125 return ts; | 124 return ts; |
126 } | 125 } |
127 | 126 |
128 } // namespace WebCore | 127 } // namespace WebCore |
OLD | NEW |