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

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

Issue 920513003: Make filters use SkImage instead of SkBitmap Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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
« 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 14 matching lines...) Expand all
25 SK_TO_STRING_OVERRIDE() 25 SK_TO_STRING_OVERRIDE()
26 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBlurImageFilter) 26 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBlurImageFilter)
27 27
28 protected: 28 protected:
29 SkBlurImageFilter(SkScalar sigmaX, 29 SkBlurImageFilter(SkScalar sigmaX,
30 SkScalar sigmaY, 30 SkScalar sigmaY,
31 SkImageFilter* input, 31 SkImageFilter* input,
32 const CropRect* cropRect); 32 const CropRect* cropRect);
33 void flatten(SkWriteBuffer&) const SK_OVERRIDE; 33 void flatten(SkWriteBuffer&) const SK_OVERRIDE;
34 34
35 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, 35 virtual bool onFilterImage(Proxy*, const SkImage* src, const Context&,
36 SkBitmap* result, SkIPoint* offset) const SK_OVER RIDE; 36 SkAutoTUnref<const SkImage>& result,
37 SkIPoint* offset) const SK_OVERRIDE;
37 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, 38 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&,
38 SkIRect* dst) const SK_OVERRIDE; 39 SkIRect* dst) const SK_OVERRIDE;
39 40
40 bool canFilterImageGPU() const SK_OVERRIDE { return true; } 41 bool canFilterImageGPU() const SK_OVERRIDE { return true; }
41 virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, const Context & ctx, 42 virtual bool filterImageGPU(Proxy* proxy, const SkImage* src, const Context& ctx,
42 SkBitmap* result, SkIPoint* offset) const SK_OVE RRIDE; 43 SkAutoTUnref<const SkImage>& result,
44 SkIPoint* offset) const SK_OVERRIDE;
43 45
44 private: 46 private:
45 SkSize fSigma; 47 SkSize fSigma;
46 typedef SkImageFilter INHERITED; 48 typedef SkImageFilter INHERITED;
47 }; 49 };
48 50
49 #endif 51 #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