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) 2013 Google Inc. All rights reserved. | 6 * Copyright (C) 2013 Google Inc. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 #include "config.h" | 24 #include "config.h" |
25 | 25 |
26 #include "core/platform/graphics/filters/FEFlood.h" | 26 #include "core/platform/graphics/filters/FEFlood.h" |
27 | 27 |
28 #include "SkFlattenableBuffers.h" | 28 #include "SkFlattenableBuffers.h" |
29 #include "SkImageFilter.h" | 29 #include "SkImageFilter.h" |
30 #include "core/platform/graphics/GraphicsContext.h" | 30 #include "core/platform/graphics/GraphicsContext.h" |
31 #include "core/platform/graphics/filters/Filter.h" | 31 #include "core/platform/graphics/filters/Filter.h" |
32 #include "core/platform/graphics/filters/SkiaImageFilterBuilder.h" | 32 #include "core/platform/graphics/filters/SkiaImageFilterBuilder.h" |
33 #include "core/rendering/RenderTreeAsText.h" | |
34 #include "platform/text/TextStream.h" | 33 #include "platform/text/TextStream.h" |
35 #include "third_party/skia/include/core/SkDevice.h" | 34 #include "third_party/skia/include/core/SkDevice.h" |
36 | 35 |
37 namespace { | 36 namespace { |
38 | 37 |
39 class FloodImageFilter : public SkImageFilter { | 38 class FloodImageFilter : public SkImageFilter { |
40 public: | 39 public: |
41 FloodImageFilter(const SkColor& color, const CropRect* cropRect) | 40 FloodImageFilter(const SkColor& color, const CropRect* cropRect) |
42 : SkImageFilter(0, 0, cropRect) | 41 : SkImageFilter(0, 0, cropRect) |
43 , m_color(color) | 42 , m_color(color) |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 { | 146 { |
148 writeIndent(ts, indent); | 147 writeIndent(ts, indent); |
149 ts << "[feFlood"; | 148 ts << "[feFlood"; |
150 FilterEffect::externalRepresentation(ts); | 149 FilterEffect::externalRepresentation(ts); |
151 ts << " flood-color=\"" << floodColor().nameForRenderTreeAsText() << "\" " | 150 ts << " flood-color=\"" << floodColor().nameForRenderTreeAsText() << "\" " |
152 << "flood-opacity=\"" << floodOpacity() << "\"]\n"; | 151 << "flood-opacity=\"" << floodOpacity() << "\"]\n"; |
153 return ts; | 152 return ts; |
154 } | 153 } |
155 | 154 |
156 } // namespace WebCore | 155 } // namespace WebCore |
OLD | NEW |