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

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

Issue 189913021: Implement support for a Context parameter in image filters (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Revert all but the Context changes. Created 6 years, 9 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
« no previous file with comments | « include/effects/SkRectShaderImageFilter.h ('k') | include/effects/SkTestImageFilters.h » ('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 2013 The Android Open Source Project 2 * Copyright 2013 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 SkResizeImageFilter_DEFINED 8 #ifndef SkResizeImageFilter_DEFINED
9 #define SkResizeImageFilter_DEFINED 9 #define SkResizeImageFilter_DEFINED
10 10
(...skipping 25 matching lines...) Expand all
36 } 36 }
37 37
38 virtual void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE; 38 virtual void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE;
39 39
40 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkResizeImageFilter) 40 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkResizeImageFilter)
41 41
42 protected: 42 protected:
43 SkResizeImageFilter(SkReadBuffer& buffer); 43 SkResizeImageFilter(SkReadBuffer& buffer);
44 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; 44 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
45 45
46 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&, 46 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&,
47 SkBitmap* result, SkIPoint* loc) const SK_OVERRID E; 47 SkBitmap* result, SkIPoint* loc) const SK_OVERRID E;
48 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, 48 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&,
49 SkIRect* dst) const SK_OVERRIDE; 49 SkIRect* dst) const SK_OVERRIDE;
50 50
51 #ifdef SK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS 51 #ifdef SK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS
52 public: 52 public:
53 #endif 53 #endif
54 SkResizeImageFilter(SkScalar sx, SkScalar sy, SkPaint::FilterLevel filterLev el, 54 SkResizeImageFilter(SkScalar sx, SkScalar sy, SkPaint::FilterLevel filterLev el,
55 SkImageFilter* input = NULL); 55 SkImageFilter* input = NULL);
56 56
57 private: 57 private:
58 SkScalar fSx, fSy; 58 SkScalar fSx, fSy;
59 SkPaint::FilterLevel fFilterLevel; 59 SkPaint::FilterLevel fFilterLevel;
60 typedef SkImageFilter INHERITED; 60 typedef SkImageFilter INHERITED;
61 }; 61 };
62 62
63 #endif 63 #endif
OLDNEW
« no previous file with comments | « include/effects/SkRectShaderImageFilter.h ('k') | include/effects/SkTestImageFilters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698