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 14 matching lines...) Expand all Loading... |
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 "SkImageFilter.h" | 30 #include "SkImageFilter.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" | 33 #include "core/platform/graphics/filters/Filter.h" |
34 #include "core/platform/graphics/filters/SkiaImageFilterBuilder.h" | 34 #include "core/platform/graphics/filters/SkiaImageFilterBuilder.h" |
35 #include "core/rendering/RenderTreeAsText.h" | |
36 #include "platform/text/TextStream.h" | 35 #include "platform/text/TextStream.h" |
37 #include "third_party/skia/include/core/SkDevice.h" | 36 #include "third_party/skia/include/core/SkDevice.h" |
38 | 37 |
39 namespace WebCore { | 38 namespace WebCore { |
40 | 39 |
41 class OffsetImageFilter : public SkImageFilter { | 40 class OffsetImageFilter : public SkImageFilter { |
42 public: | 41 public: |
43 OffsetImageFilter(SkScalar dx, SkScalar dy, SkImageFilter* input, const Crop
Rect* cropRect = 0) : SkImageFilter(input, cropRect), m_dx(dx), m_dy(dy) | 42 OffsetImageFilter(SkScalar dx, SkScalar dy, SkImageFilter* input, const Crop
Rect* cropRect = 0) : SkImageFilter(input, cropRect), m_dx(dx), m_dy(dy) |
44 { | 43 { |
45 } | 44 } |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 { | 172 { |
174 writeIndent(ts, indent); | 173 writeIndent(ts, indent); |
175 ts << "[feOffset"; | 174 ts << "[feOffset"; |
176 FilterEffect::externalRepresentation(ts); | 175 FilterEffect::externalRepresentation(ts); |
177 ts << " dx=\"" << dx() << "\" dy=\"" << dy() << "\"]\n"; | 176 ts << " dx=\"" << dx() << "\" dy=\"" << dy() << "\"]\n"; |
178 inputEffect(0)->externalRepresentation(ts, indent + 1); | 177 inputEffect(0)->externalRepresentation(ts, indent + 1); |
179 return ts; | 178 return ts; |
180 } | 179 } |
181 | 180 |
182 } // namespace WebCore | 181 } // namespace WebCore |
OLD | NEW |