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

Side by Side Diff: include/effects/SkFloodImageFilter.h

Issue 24157005: Moving 4 SkImageFilter derived classes from blink to skia (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Merged offset filters together Created 7 years, 3 months 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
(Empty)
1 /*
2 * Copyright 2013 The Android Open Source Project
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef SkFloodImageFilter_DEFINED
9 #define SkFloodImageFilter_DEFINED
10
11 #include "SkImageFilter.h"
12 #include "SkColor.h"
13
14 class SkFloodImageFilter : public SkImageFilter {
15 typedef SkImageFilter INHERITED;
16
17 public:
18 SkFloodImageFilter(const SkColor& color, const SkIRect* cropRect)
19 : INHERITED(0, 0, cropRect), fColor(color) {}
20
21 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkFloodImageFilter)
22
23 SkFloodImageFilter(SkFlattenableReadBuffer& buffer);
24
25 virtual void flatten(SkFlattenableWriteBuffer& buffer) const SK_OVERRIDE;
26
27 virtual bool onFilterImage(Proxy* proxy, const SkBitmap& src, const SkMatrix & ctm,
28 SkBitmap* result, SkIPoint* offset) SK_OVERRIDE;
29 private:
30 SkColor fColor;
31 };
32
33 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698