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

Side by Side Diff: include/effects/SkBlurDrawLooper.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/SkBitmapSource.h ('k') | include/effects/SkBlurImageFilter.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 2008 The Android Open Source Project 2 * Copyright 2008 The Android Open Source Project
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 8
9 #ifndef SkBlurDrawLooper_DEFINED 9 #ifndef SkBlurDrawLooper_DEFINED
10 #define SkBlurDrawLooper_DEFINED 10 #define SkBlurDrawLooper_DEFINED
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 virtual size_t contextSize() const SK_OVERRIDE { return sizeof(BlurDrawLoope rContext); } 47 virtual size_t contextSize() const SK_OVERRIDE { return sizeof(BlurDrawLoope rContext); }
48 48
49 SK_TO_STRING_OVERRIDE() 49 SK_TO_STRING_OVERRIDE()
50 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBlurDrawLooper) 50 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBlurDrawLooper)
51 51
52 protected: 52 protected:
53 SkBlurDrawLooper(SkColor color, SkScalar sigma, SkScalar dx, SkScalar dy, 53 SkBlurDrawLooper(SkColor color, SkScalar sigma, SkScalar dx, SkScalar dy,
54 uint32_t flags); 54 uint32_t flags);
55 55
56 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING
57 SkBlurDrawLooper(SkReadBuffer&);
58 #endif
56 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; 59 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
57 60
58 virtual bool asABlurShadow(BlurShadowRec*) const SK_OVERRIDE; 61 virtual bool asABlurShadow(BlurShadowRec*) const SK_OVERRIDE;
59 62
60 private: 63 private:
61 SkMaskFilter* fBlur; 64 SkMaskFilter* fBlur;
62 SkColorFilter* fColorFilter; 65 SkColorFilter* fColorFilter;
63 SkScalar fDx, fDy, fSigma; 66 SkScalar fDx, fDy, fSigma;
64 SkColor fBlurColor; 67 SkColor fBlurColor;
65 uint32_t fBlurFlags; 68 uint32_t fBlurFlags;
(...skipping 15 matching lines...) Expand all
81 State fState; 84 State fState;
82 }; 85 };
83 86
84 void init(SkScalar sigma, SkScalar dx, SkScalar dy, SkColor color, uint32_t flags); 87 void init(SkScalar sigma, SkScalar dx, SkScalar dy, SkColor color, uint32_t flags);
85 void initEffects(); 88 void initEffects();
86 89
87 typedef SkDrawLooper INHERITED; 90 typedef SkDrawLooper INHERITED;
88 }; 91 };
89 92
90 #endif 93 #endif
OLDNEW
« no previous file with comments | « include/effects/SkBitmapSource.h ('k') | include/effects/SkBlurImageFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698