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

Side by Side Diff: src/core/SkRecorder.h

Issue 2224163005: Made shadows blurry (thru implementing variance mapping) (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Trying different include path Created 4 years, 3 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 | « src/core/SkRecordDraw.cpp ('k') | src/core/SkRecorder.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 2014 Google Inc. 2 * Copyright 2014 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 SkRecorder_DEFINED 8 #ifndef SkRecorder_DEFINED
9 #define SkRecorder_DEFINED 9 #define SkRecorder_DEFINED
10 10
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle edgeStyle ) override; 134 void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle edgeStyle ) override;
135 void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeSt yle) override; 135 void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeSt yle) override;
136 void onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle edgeStyle ) override; 136 void onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle edgeStyle ) override;
137 void onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) override; 137 void onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) override;
138 138
139 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de; 139 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de;
140 140
141 #ifdef SK_EXPERIMENTAL_SHADOWING 141 #ifdef SK_EXPERIMENTAL_SHADOWING
142 void onDrawShadowedPicture(const SkPicture*, 142 void onDrawShadowedPicture(const SkPicture*,
143 const SkMatrix*, 143 const SkMatrix*,
144 const SkPaint*) override; 144 const SkPaint*,
145 const SkShadowParams& params) override;
145 #else 146 #else
146 void onDrawShadowedPicture(const SkPicture*, 147 void onDrawShadowedPicture(const SkPicture*,
147 const SkMatrix*, 148 const SkMatrix*,
148 const SkPaint*); 149 const SkPaint*,
150 const SkShadowParams& params);
149 #endif 151 #endif
150 152
151 void onDrawAnnotation(const SkRect&, const char[], SkData*) override; 153 void onDrawAnnotation(const SkRect&, const char[], SkData*) override;
152 154
153 sk_sp<SkSurface> onNewSurface(const SkImageInfo&, const SkSurfaceProps&) ove rride; 155 sk_sp<SkSurface> onNewSurface(const SkImageInfo&, const SkSurfaceProps&) ove rride;
154 156
155 void flushMiniRecorder(); 157 void flushMiniRecorder();
156 158
157 private: 159 private:
158 template <typename T> 160 template <typename T>
(...skipping 10 matching lines...) Expand all
169 171
170 DrawPictureMode fDrawPictureMode; 172 DrawPictureMode fDrawPictureMode;
171 size_t fApproxBytesUsedBySubPictures; 173 size_t fApproxBytesUsedBySubPictures;
172 SkRecord* fRecord; 174 SkRecord* fRecord;
173 SkAutoTDelete<SkDrawableList> fDrawableList; 175 SkAutoTDelete<SkDrawableList> fDrawableList;
174 176
175 SkMiniRecorder* fMiniRecorder; 177 SkMiniRecorder* fMiniRecorder;
176 }; 178 };
177 179
178 #endif//SkRecorder_DEFINED 180 #endif//SkRecorder_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkRecordDraw.cpp ('k') | src/core/SkRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698