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

Side by Side Diff: Source/platform/graphics/filters/Filter.h

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) 2009 Dirk Schulze <krit@webkit.org> 2 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
21 #ifndef Filter_h 21 #ifndef Filter_h
22 #define Filter_h 22 #define Filter_h
23 23
24 #include "core/platform/graphics/ImageBuffer.h" 24 #include "platform/PlatformExport.h"
25 #include "platform/geometry/FloatRect.h" 25 #include "platform/geometry/FloatRect.h"
26 #include "platform/geometry/FloatSize.h" 26 #include "platform/geometry/FloatSize.h"
27 #include "platform/graphics/ImageBuffer.h"
27 #include "wtf/RefCounted.h" 28 #include "wtf/RefCounted.h"
28 29
29 namespace WebCore { 30 namespace WebCore {
30 31
31 class FilterEffect; 32 class FilterEffect;
32 33
33 class Filter : public RefCounted<Filter> { 34 class PLATFORM_EXPORT Filter : public RefCounted<Filter> {
34 public: 35 public:
35 Filter(const AffineTransform& absoluteTransform) : m_renderingMode(Unacceler ated), m_absoluteTransform(absoluteTransform) { } 36 Filter(const AffineTransform& absoluteTransform) : m_renderingMode(Unacceler ated), m_absoluteTransform(absoluteTransform) { }
36 virtual ~Filter() { } 37 virtual ~Filter() { }
37 38
38 void setSourceImage(PassOwnPtr<ImageBuffer> sourceImage) { m_sourceImage = s ourceImage; } 39 void setSourceImage(PassOwnPtr<ImageBuffer> sourceImage) { m_sourceImage = s ourceImage; }
39 ImageBuffer* sourceImage() { return m_sourceImage.get(); } 40 ImageBuffer* sourceImage() { return m_sourceImage.get(); }
40 41
41 FloatSize filterResolution() const { return m_filterResolution; } 42 FloatSize filterResolution() const { return m_filterResolution; }
42 void setFilterResolution(const FloatSize& filterResolution) { m_filterResolu tion = filterResolution; } 43 void setFilterResolution(const FloatSize& filterResolution) { m_filterResolu tion = filterResolution; }
43 44
(...skipping 30 matching lines...) Expand all
74 FloatSize m_filterResolution; 75 FloatSize m_filterResolution;
75 RenderingMode m_renderingMode; 76 RenderingMode m_renderingMode;
76 AffineTransform m_absoluteTransform; 77 AffineTransform m_absoluteTransform;
77 FloatRect m_absoluteFilterRegion; 78 FloatRect m_absoluteFilterRegion;
78 FloatRect m_filterRegion; 79 FloatRect m_filterRegion;
79 }; 80 };
80 81
81 } // namespace WebCore 82 } // namespace WebCore
82 83
83 #endif // Filter_h 84 #endif // Filter_h
OLDNEW
« no previous file with comments | « Source/platform/graphics/filters/FEGaussianBlur.cpp ('k') | Source/platform/graphics/filters/FilterEffect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698