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

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

Issue 134163010: Refactor read and write buffers. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: original write flags were fine Created 6 years, 10 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 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 virtual ~SkBlurDrawLooper(); 44 virtual ~SkBlurDrawLooper();
45 45
46 // overrides from SkDrawLooper 46 // overrides from SkDrawLooper
47 virtual void init(SkCanvas*); 47 virtual void init(SkCanvas*);
48 virtual bool next(SkCanvas*, SkPaint* paint); 48 virtual bool next(SkCanvas*, SkPaint* paint);
49 49
50 SK_DEVELOPER_TO_STRING() 50 SK_DEVELOPER_TO_STRING()
51 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBlurDrawLooper) 51 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBlurDrawLooper)
52 52
53 protected: 53 protected:
54 SkBlurDrawLooper(SkFlattenableReadBuffer&); 54 SkBlurDrawLooper(SkReadBuffer&);
55 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE; 55 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
56 56
57 private: 57 private:
58 SkMaskFilter* fBlur; 58 SkMaskFilter* fBlur;
59 SkColorFilter* fColorFilter; 59 SkColorFilter* fColorFilter;
60 SkScalar fDx, fDy; 60 SkScalar fDx, fDy;
61 SkColor fBlurColor; 61 SkColor fBlurColor;
62 uint32_t fBlurFlags; 62 uint32_t fBlurFlags;
63 63
64 enum State { 64 enum State {
65 kBeforeEdge, 65 kBeforeEdge,
66 kAfterEdge, 66 kAfterEdge,
67 kDone 67 kDone
68 }; 68 };
69 State fState; 69 State fState;
70 70
71 void init(SkScalar sigma, SkScalar dx, SkScalar dy, SkColor color, uint32_t flags); 71 void init(SkScalar sigma, SkScalar dx, SkScalar dy, SkColor color, uint32_t flags);
72 72
73 typedef SkDrawLooper INHERITED; 73 typedef SkDrawLooper INHERITED;
74 }; 74 };
75 75
76 #endif 76 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698