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

Side by Side Diff: include/effects/SkTileImageFilter.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, 2 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 SkTileImageFilter_DEFINED
9 #define SkTileImageFilter_DEFINED
10
11 #include "SkImageFilter.h"
12
13 class SkTileImageFilter : public SkImageFilter {
14 typedef SkImageFilter INHERITED;
Stephen White 2013/09/24 01:13:19 Nit: you could also de-inline the constructor, in
sugoi1 2013/09/24 11:39:50 I'll probably need this for other reasons later on
15
16 public:
17 SkTileImageFilter(const SkRect& srcRect, const SkRect& dstRect, SkImageFilte r* input)
18 : INHERITED(input), fSrcRect(srcRect), fDstRect(dstRect) {}
19
20 virtual bool onFilterImage(Proxy* proxy, const SkBitmap& src, const SkMatrix & ctm,
21 SkBitmap* dst, SkIPoint* offset) SK_OVERRIDE;
22
23 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkTileImageFilter)
24
25 protected:
26 explicit SkTileImageFilter(SkFlattenableReadBuffer& buffer);
27
28 virtual void flatten(SkFlattenableWriteBuffer& buffer) const SK_OVERRIDE;
29
30 private:
31 SkRect fSrcRect;
32 SkRect fDstRect;
33 };
34
35 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698