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

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

Issue 19775006: Implement crop rect for SkImageFilter (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Fix comments Created 7 years, 4 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/core/SkRect.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
11 #include "SkImageFilter.h" 11 #include "SkImageFilter.h"
12 #include "SkSize.h" 12 #include "SkSize.h"
13 13
14 class SK_API SkBlurImageFilter : public SkImageFilter { 14 class SK_API SkBlurImageFilter : public SkImageFilter {
15 public: 15 public:
16 SkBlurImageFilter(SkScalar sigmaX, SkScalar sigmaY, SkImageFilter* input = N ULL); 16 SkBlurImageFilter(SkScalar sigmaX,
17 SkScalar sigmaY,
18 SkImageFilter* input = NULL,
19 const SkIRect* cropRect = NULL);
17 20
18 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBlurImageFilter) 21 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBlurImageFilter)
19 22
20 protected: 23 protected:
21 explicit SkBlurImageFilter(SkFlattenableReadBuffer& buffer); 24 explicit SkBlurImageFilter(SkFlattenableReadBuffer& buffer);
22 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE; 25 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE;
23 26
24 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&, 27 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&,
25 SkBitmap* result, SkIPoint* offset) SK_OVERRIDE; 28 SkBitmap* result, SkIPoint* offset) SK_OVERRIDE;
26 29
27 bool canFilterImageGPU() const SK_OVERRIDE { return true; } 30 bool canFilterImageGPU() const SK_OVERRIDE { return true; }
28 virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, SkBitmap* res ult, 31 virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, SkBitmap* res ult,
29 SkIPoint* offset) SK_OVERRIDE; 32 SkIPoint* offset) SK_OVERRIDE;
30 33
31 private: 34 private:
32 SkSize fSigma; 35 SkSize fSigma;
33 typedef SkImageFilter INHERITED; 36 typedef SkImageFilter INHERITED;
34 }; 37 };
35 38
36 #endif 39 #endif
OLDNEW
« no previous file with comments | « include/core/SkRect.h ('k') | include/effects/SkColorFilterImageFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698