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

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

Issue 395603002: Simplify flattening to just write enough to call the factory (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 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 12 matching lines...) Expand all
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 SkDropShadowImageFilter(SkScalar dx, SkScalar dy, SkScalar sigma, SkColor, 29 SkDropShadowImageFilter(SkScalar dx, SkScalar dy, SkScalar sigma, SkColor,
30 SkImageFilter* input); 30 SkImageFilter* input);
31 SkDropShadowImageFilter(SkScalar dx, SkScalar dy, SkScalar sigmaX, SkScalar sigmaY, SkColor, 31 SkDropShadowImageFilter(SkScalar dx, SkScalar dy, SkScalar sigmaX, SkScalar sigmaY, SkColor,
32 SkImageFilter* input, const CropRect* cropRect); 32 SkImageFilter* input, const CropRect* cropRect);
33 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING
33 explicit SkDropShadowImageFilter(SkReadBuffer&); 34 explicit SkDropShadowImageFilter(SkReadBuffer&);
35 #endif
34 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; 36 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
35 virtual bool onFilterImage(Proxy*, const SkBitmap& source, const Context&, S kBitmap* result, SkIPoint* loc) const SK_OVERRIDE; 37 virtual bool onFilterImage(Proxy*, const SkBitmap& source, const Context&, S kBitmap* result, SkIPoint* loc) const SK_OVERRIDE;
36 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, 38 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&,
37 SkIRect* dst) const SK_OVERRIDE; 39 SkIRect* dst) const SK_OVERRIDE;
38 40
39 private: 41 private:
40 SkScalar fDx, fDy, fSigmaX, fSigmaY; 42 SkScalar fDx, fDy, fSigmaX, fSigmaY;
41 SkColor fColor; 43 SkColor fColor;
42 typedef SkImageFilter INHERITED; 44 typedef SkImageFilter INHERITED;
43 }; 45 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698