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

Side by Side Diff: src/core/SkLocalMatrixImageFilter.h

Issue 1826893002: Switch new SkImageFilter internal methods over to sk_sp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Change method name to drawSpriteWithFilter Created 4 years, 8 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
« no previous file with comments | « src/core/SkImageFilter.cpp ('k') | src/core/SkLocalMatrixImageFilter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 The Android Open Source Project 2 * Copyright 2015 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkLocalMatrixImageFilter_DEFINED 8 #ifndef SkLocalMatrixImageFilter_DEFINED
9 #define SkLocalMatrixImageFilter_DEFINED 9 #define SkLocalMatrixImageFilter_DEFINED
10 10
11 #include "SkImageFilter.h" 11 #include "SkImageFilter.h"
12 12
13 /** 13 /**
14 * Wraps another imagefilter + matrix, such that using this filter will give th e same result 14 * Wraps another imagefilter + matrix, such that using this filter will give th e same result
15 * as using the wrapped filter with the matrix applied to its context. 15 * as using the wrapped filter with the matrix applied to its context.
16 */ 16 */
17 class SkLocalMatrixImageFilter : public SkImageFilter { 17 class SkLocalMatrixImageFilter : public SkImageFilter {
18 public: 18 public:
19 static SkImageFilter* Create(const SkMatrix& localM, SkImageFilter* input); 19 static SkImageFilter* Create(const SkMatrix& localM, SkImageFilter* input);
20 20
21 SK_TO_STRING_OVERRIDE() 21 SK_TO_STRING_OVERRIDE()
22 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkLocalMatrixImageFilter ) 22 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkLocalMatrixImageFilter )
23 23
24 protected: 24 protected:
25 void flatten(SkWriteBuffer&) const override; 25 void flatten(SkWriteBuffer&) const override;
26 SkSpecialImage* onFilterImage(SkSpecialImage* source, const Context&, 26 sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&,
27 SkIPoint* offset) const override; 27 SkIPoint* offset) const override;
28 SkIRect onFilterBounds(const SkIRect& src, const SkMatrix&, MapDirection) co nst override; 28 SkIRect onFilterBounds(const SkIRect& src, const SkMatrix&, MapDirection) co nst override;
29 29
30 private: 30 private:
31 SkLocalMatrixImageFilter(const SkMatrix& localM, SkImageFilter* input); 31 SkLocalMatrixImageFilter(const SkMatrix& localM, SkImageFilter* input);
32 32
33 SkMatrix fLocalM; 33 SkMatrix fLocalM;
34 34
35 typedef SkImageFilter INHERITED; 35 typedef SkImageFilter INHERITED;
36 }; 36 };
37 37
38 #endif 38 #endif
OLDNEW
« no previous file with comments | « src/core/SkImageFilter.cpp ('k') | src/core/SkLocalMatrixImageFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698