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

Side by Side Diff: include/effects/SkDropShadowImageFilter.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/SkDisplacementMapEffect.h ('k') | include/effects/SkMagnifierImageFilter.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 Google Inc. 2 * Copyright 2013 Google Inc.
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 #include "SkColor.h" 8 #include "SkColor.h"
9 #include "SkImageFilter.h" 9 #include "SkImageFilter.h"
10 #include "SkScalar.h" 10 #include "SkScalar.h"
(...skipping 10 matching lines...) Expand all
21 const CropRect* cropRect = NULL) { 21 const CropRect* cropRect = NULL) {
22 return SkNEW_ARGS(SkDropShadowImageFilter, (dx, dy, sigmaX, sigmaY, 22 return SkNEW_ARGS(SkDropShadowImageFilter, (dx, dy, sigmaX, sigmaY,
23 color, input, cropRect)); 23 color, input, cropRect));
24 } 24 }
25 virtual void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE; 25 virtual void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE;
26 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDropShadowImageFilter) 26 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDropShadowImageFilter)
27 27
28 protected: 28 protected:
29 explicit SkDropShadowImageFilter(SkReadBuffer&); 29 explicit SkDropShadowImageFilter(SkReadBuffer&);
30 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; 30 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
31 virtual bool onFilterImage(Proxy*, const SkBitmap& source, const SkMatrix&, SkBitmap* result, SkIPoint* loc) const SK_OVERRIDE; 31 virtual bool onFilterImage(Proxy*, const SkBitmap& source, const Context&, S kBitmap* result, SkIPoint* loc) const SK_OVERRIDE;
32 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, 32 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&,
33 SkIRect* dst) const SK_OVERRIDE; 33 SkIRect* dst) const SK_OVERRIDE;
34 34
35 #ifdef SK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS 35 #ifdef SK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS
36 public: 36 public:
37 #endif 37 #endif
38 SkDropShadowImageFilter(SkScalar dx, SkScalar dy, SkScalar sigma, SkColor, 38 SkDropShadowImageFilter(SkScalar dx, SkScalar dy, SkScalar sigma, SkColor,
39 SkImageFilter* input = NULL); 39 SkImageFilter* input = NULL);
40 SkDropShadowImageFilter(SkScalar dx, SkScalar dy, SkScalar sigmaX, SkScalar sigmaY, SkColor, 40 SkDropShadowImageFilter(SkScalar dx, SkScalar dy, SkScalar sigmaX, SkScalar sigmaY, SkColor,
41 SkImageFilter* input = NULL, const CropRect* cropRec t = NULL); 41 SkImageFilter* input = NULL, const CropRect* cropRec t = NULL);
42 42
43 private: 43 private:
44 SkScalar fDx, fDy, fSigmaX, fSigmaY; 44 SkScalar fDx, fDy, fSigmaX, fSigmaY;
45 SkColor fColor; 45 SkColor fColor;
46 typedef SkImageFilter INHERITED; 46 typedef SkImageFilter INHERITED;
47 }; 47 };
OLDNEW
« no previous file with comments | « include/effects/SkDisplacementMapEffect.h ('k') | include/effects/SkMagnifierImageFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698