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

Side by Side Diff: include/effects/SkDropShadowImageFilter.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/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 19 matching lines...) Expand all
30 } 30 }
31 31
32 void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE; 32 void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE;
33 SK_TO_STRING_OVERRIDE() 33 SK_TO_STRING_OVERRIDE()
34 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDropShadowImageFilter) 34 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDropShadowImageFilter)
35 35
36 protected: 36 protected:
37 SkDropShadowImageFilter(SkScalar dx, SkScalar dy, SkScalar sigmaX, SkScalar sigmaY, SkColor, 37 SkDropShadowImageFilter(SkScalar dx, SkScalar dy, SkScalar sigmaX, SkScalar sigmaY, SkColor,
38 ShadowMode shadowMode, SkImageFilter* input, const C ropRect* cropRect); 38 ShadowMode shadowMode, SkImageFilter* input, const C ropRect* cropRect);
39 void flatten(SkWriteBuffer&) const SK_OVERRIDE; 39 void flatten(SkWriteBuffer&) const SK_OVERRIDE;
40 bool onFilterImage(Proxy*, const SkBitmap& source, const Context&, SkBitmap* result, SkIPoint* loc) const SK_OVERRIDE; 40 bool onFilterImage(Proxy*, const SkImage* source, const Context&,
41 SkAutoTUnref<const SkImage>& result,
42 SkIPoint* loc) const SK_OVERRIDE;
41 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, 43 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&,
42 SkIRect* dst) const SK_OVERRIDE; 44 SkIRect* dst) const SK_OVERRIDE;
43 45
44 private: 46 private:
45 SkScalar fDx, fDy, fSigmaX, fSigmaY; 47 SkScalar fDx, fDy, fSigmaX, fSigmaY;
46 SkColor fColor; 48 SkColor fColor;
47 ShadowMode fShadowMode; 49 ShadowMode fShadowMode;
48 typedef SkImageFilter INHERITED; 50 typedef SkImageFilter INHERITED;
49 }; 51 };
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