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

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

Issue 253633003: add asAShadowBlur for android to drawlooper (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: add unittests (and fix bugs in layerdrawlooper) Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « include/effects/SkEmbossMaskFilter.h ('k') | src/core/SkDrawLooper.cpp » ('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 2011 Google Inc. 2 * Copyright 2011 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 #ifndef SkLayerDrawLooper_DEFINED 8 #ifndef SkLayerDrawLooper_DEFINED
9 #define SkLayerDrawLooper_DEFINED 9 #define SkLayerDrawLooper_DEFINED
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 * fColorMode == kDst_Mode 70 * fColorMode == kDst_Mode
71 * fOffset == (0, 0) 71 * fOffset == (0, 0)
72 */ 72 */
73 LayerInfo(); 73 LayerInfo();
74 }; 74 };
75 75
76 virtual SkDrawLooper::Context* createContext(SkCanvas*, void* storage) const SK_OVERRIDE; 76 virtual SkDrawLooper::Context* createContext(SkCanvas*, void* storage) const SK_OVERRIDE;
77 77
78 virtual size_t contextSize() const SK_OVERRIDE { return sizeof(LayerDrawLoop erContext); } 78 virtual size_t contextSize() const SK_OVERRIDE { return sizeof(LayerDrawLoop erContext); }
79 79
80 virtual bool asABlurShadow(BlurShadowRec* rec) const SK_OVERRIDE;
81
80 SK_TO_STRING_OVERRIDE() 82 SK_TO_STRING_OVERRIDE()
81 83
82 /// Implements Flattenable. 84 /// Implements Flattenable.
83 virtual Factory getFactory() const SK_OVERRIDE { return CreateProc; } 85 virtual Factory getFactory() const SK_OVERRIDE { return CreateProc; }
84 static SkFlattenable* CreateProc(SkReadBuffer& buffer); 86 static SkFlattenable* CreateProc(SkReadBuffer& buffer);
85 87
86 protected: 88 protected:
87 SkLayerDrawLooper(); 89 SkLayerDrawLooper();
88 90
89 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; 91 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 SkLayerDrawLooper* detachLooper(); 154 SkLayerDrawLooper* detachLooper();
153 155
154 private: 156 private:
155 Rec* fRecs; 157 Rec* fRecs;
156 Rec* fTopRec; 158 Rec* fTopRec;
157 int fCount; 159 int fCount;
158 }; 160 };
159 }; 161 };
160 162
161 #endif 163 #endif
OLDNEW
« no previous file with comments | « include/effects/SkEmbossMaskFilter.h ('k') | src/core/SkDrawLooper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698