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

Side by Side Diff: include/effects/SkBlurImageFilter.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/SkBitmapSource.h ('k') | include/effects/SkColorFilterImageFilter.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 2011 The Android Open Source Project 2 * Copyright 2011 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 SkBlurImageFilter_DEFINED 8 #ifndef SkBlurImageFilter_DEFINED
9 #define SkBlurImageFilter_DEFINED 9 #define SkBlurImageFilter_DEFINED
10 10
(...skipping 10 matching lines...) Expand all
21 } 21 }
22 22
23 virtual void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE; 23 virtual void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE;
24 24
25 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBlurImageFilter) 25 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBlurImageFilter)
26 26
27 protected: 27 protected:
28 explicit SkBlurImageFilter(SkReadBuffer& buffer); 28 explicit SkBlurImageFilter(SkReadBuffer& buffer);
29 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; 29 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
30 30
31 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&, 31 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&,
32 SkBitmap* result, SkIPoint* offset) const SK_OVER RIDE; 32 SkBitmap* result, SkIPoint* offset) const SK_OVER RIDE;
33 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, 33 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&,
34 SkIRect* dst) const SK_OVERRIDE; 34 SkIRect* dst) const SK_OVERRIDE;
35 35
36 bool canFilterImageGPU() const SK_OVERRIDE { return true; } 36 bool canFilterImageGPU() const SK_OVERRIDE { return true; }
37 virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, const SkMatri x& ctm, 37 virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, const Context & ctx,
38 SkBitmap* result, SkIPoint* offset) const SK_OVE RRIDE; 38 SkBitmap* result, SkIPoint* offset) const SK_OVE RRIDE;
39 39
40 #ifdef SK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS 40 #ifdef SK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS
41 public: 41 public:
42 #endif 42 #endif
43 SkBlurImageFilter(SkScalar sigmaX, 43 SkBlurImageFilter(SkScalar sigmaX,
44 SkScalar sigmaY, 44 SkScalar sigmaY,
45 SkImageFilter* input = NULL, 45 SkImageFilter* input = NULL,
46 const CropRect* cropRect = NULL); 46 const CropRect* cropRect = NULL);
47 47
48 private: 48 private:
49 SkSize fSigma; 49 SkSize fSigma;
50 typedef SkImageFilter INHERITED; 50 typedef SkImageFilter INHERITED;
51 }; 51 };
52 52
53 #endif 53 #endif
OLDNEW
« no previous file with comments | « include/effects/SkBitmapSource.h ('k') | include/effects/SkColorFilterImageFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698