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

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
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE; 51 void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE;
52 SK_TO_STRING_OVERRIDE() 52 SK_TO_STRING_OVERRIDE()
53 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDropShadowImageFilter) 53 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDropShadowImageFilter)
54 54
55 protected: 55 protected:
56 SkDropShadowImageFilter(SkScalar dx, SkScalar dy, SkScalar sigmaX, SkScalar sigmaY, SkColor, 56 SkDropShadowImageFilter(SkScalar dx, SkScalar dy, SkScalar sigmaX, SkScalar sigmaY, SkColor,
57 ShadowMode shadowMode, SkImageFilter* input, const C ropRect* cropRect, 57 ShadowMode shadowMode, SkImageFilter* input, const C ropRect* cropRect,
58 uint32_t uniqueID); 58 uint32_t uniqueID);
59 void flatten(SkWriteBuffer&) const SK_OVERRIDE; 59 void flatten(SkWriteBuffer&) const SK_OVERRIDE;
60 bool onFilterImage(Proxy*, const SkBitmap& source, const Context&, SkBitmap* result, SkIPoint* loc) const SK_OVERRIDE; 60 bool onFilterImage(Proxy*, const SkImage* source, const Context&,
61 SkAutoTUnref<const SkImage>& result,
62 SkIPoint* loc) const SK_OVERRIDE;
61 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, 63 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&,
62 SkIRect* dst) const SK_OVERRIDE; 64 SkIRect* dst) const SK_OVERRIDE;
63 65
64 private: 66 private:
65 SkScalar fDx, fDy, fSigmaX, fSigmaY; 67 SkScalar fDx, fDy, fSigmaX, fSigmaY;
66 SkColor fColor; 68 SkColor fColor;
67 ShadowMode fShadowMode; 69 ShadowMode fShadowMode;
68 typedef SkImageFilter INHERITED; 70 typedef SkImageFilter INHERITED;
69 }; 71 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698