Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: Source/core/platform/graphics/filters/FEFlood.cpp

Issue 99103006: Moving GraphicsContext and dependencies from core to platform. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final patch - fixes Android Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 10 matching lines...) Expand all
21 * Boston, MA 02110-1301, USA. 21 * Boston, MA 02110-1301, USA.
22 */ 22 */
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 "SkColorFilter.h" 28 #include "SkColorFilter.h"
29 #include "SkColorFilterImageFilter.h" 29 #include "SkColorFilterImageFilter.h"
30 #include "SkFlattenableBuffers.h" 30 #include "SkFlattenableBuffers.h"
31 #include "core/platform/graphics/GraphicsContext.h" 31 #include "platform/graphics/GraphicsContext.h"
32 #include "core/platform/graphics/filters/SkiaImageFilterBuilder.h" 32 #include "platform/graphics/filters/SkiaImageFilterBuilder.h"
33 #include "platform/text/TextStream.h" 33 #include "platform/text/TextStream.h"
34 #include "third_party/skia/include/core/SkDevice.h" 34 #include "third_party/skia/include/core/SkDevice.h"
35 35
36 namespace WebCore { 36 namespace WebCore {
37 37
38 FEFlood::FEFlood(Filter* filter, const Color& floodColor, float floodOpacity) 38 FEFlood::FEFlood(Filter* filter, const Color& floodColor, float floodOpacity)
39 : FilterEffect(filter) 39 : FilterEffect(filter)
40 , m_floodColor(floodColor) 40 , m_floodColor(floodColor)
41 , m_floodOpacity(floodOpacity) 41 , m_floodOpacity(floodOpacity)
42 { 42 {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 { 98 {
99 writeIndent(ts, indent); 99 writeIndent(ts, indent);
100 ts << "[feFlood"; 100 ts << "[feFlood";
101 FilterEffect::externalRepresentation(ts); 101 FilterEffect::externalRepresentation(ts);
102 ts << " flood-color=\"" << floodColor().nameForRenderTreeAsText() << "\" " 102 ts << " flood-color=\"" << floodColor().nameForRenderTreeAsText() << "\" "
103 << "flood-opacity=\"" << floodOpacity() << "\"]\n"; 103 << "flood-opacity=\"" << floodOpacity() << "\"]\n";
104 return ts; 104 return ts;
105 } 105 }
106 106
107 } // namespace WebCore 107 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/platform/graphics/filters/FEFlood.h ('k') | Source/core/platform/graphics/filters/FEGaussianBlur.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698