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

Side by Side Diff: include/effects/SkBlurDrawLooper.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: rebase Created 6 years, 4 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/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
56 SkBlurDrawLooper(SkReadBuffer&); 57 SkBlurDrawLooper(SkReadBuffer&);
58 #endif
57 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; 59 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
58 60
59 virtual bool asABlurShadow(BlurShadowRec*) const SK_OVERRIDE; 61 virtual bool asABlurShadow(BlurShadowRec*) const SK_OVERRIDE;
60 62
61 private: 63 private:
62 SkMaskFilter* fBlur; 64 SkMaskFilter* fBlur;
63 SkColorFilter* fColorFilter; 65 SkColorFilter* fColorFilter;
64 SkScalar fDx, fDy, fSigma; 66 SkScalar fDx, fDy, fSigma;
65 SkColor fBlurColor; 67 SkColor fBlurColor;
66 uint32_t fBlurFlags; 68 uint32_t fBlurFlags;
(...skipping 15 matching lines...) Expand all
82 State fState; 84 State fState;
83 }; 85 };
84 86
85 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);
86 void initEffects(); 88 void initEffects();
87 89
88 typedef SkDrawLooper INHERITED; 90 typedef SkDrawLooper INHERITED;
89 }; 91 };
90 92
91 #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