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

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

Issue 768183002: Revert of Remove SK_SUPPORT_LEGACY_DEEPFLATTENING. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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/SkEmbossMaskFilter.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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 shadowMode, NULL, NULL, 0)); 44 shadowMode, NULL, NULL, 0));
45 } 45 }
46 46
47 virtual void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE; 47 virtual void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE;
48 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDropShadowImageFilter) 48 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDropShadowImageFilter)
49 49
50 protected: 50 protected:
51 SkDropShadowImageFilter(SkScalar dx, SkScalar dy, SkScalar sigmaX, SkScalar sigmaY, SkColor, 51 SkDropShadowImageFilter(SkScalar dx, SkScalar dy, SkScalar sigmaX, SkScalar sigmaY, SkColor,
52 ShadowMode shadowMode, SkImageFilter* input, const C ropRect* cropRect, 52 ShadowMode shadowMode, SkImageFilter* input, const C ropRect* cropRect,
53 uint32_t uniqueID); 53 uint32_t uniqueID);
54 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING
55 explicit SkDropShadowImageFilter(SkReadBuffer&);
56 #endif
54 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; 57 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
55 virtual bool onFilterImage(Proxy*, const SkBitmap& source, const Context&, S kBitmap* result, SkIPoint* loc) const SK_OVERRIDE; 58 virtual bool onFilterImage(Proxy*, const SkBitmap& source, const Context&, S kBitmap* result, SkIPoint* loc) const SK_OVERRIDE;
56 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, 59 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&,
57 SkIRect* dst) const SK_OVERRIDE; 60 SkIRect* dst) const SK_OVERRIDE;
58 61
59 private: 62 private:
60 SkScalar fDx, fDy, fSigmaX, fSigmaY; 63 SkScalar fDx, fDy, fSigmaX, fSigmaY;
61 SkColor fColor; 64 SkColor fColor;
62 ShadowMode fShadowMode; 65 ShadowMode fShadowMode;
63 typedef SkImageFilter INHERITED; 66 typedef SkImageFilter INHERITED;
64 }; 67 };
OLDNEW
« no previous file with comments | « include/effects/SkDisplacementMapEffect.h ('k') | include/effects/SkEmbossMaskFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698