OLD | NEW |
---|---|
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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
130 void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle edgeStyle ) override; | 130 void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle edgeStyle ) override; |
131 void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeSt yle) override; | 131 void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeSt yle) override; |
132 void onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle edgeStyle ) override; | 132 void onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle edgeStyle ) override; |
133 void onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) override; | 133 void onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) override; |
134 | 134 |
135 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de; | 135 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de; |
136 | 136 |
137 #ifdef SK_EXPERIMENTAL_SHADOWING | 137 #ifdef SK_EXPERIMENTAL_SHADOWING |
138 void onDrawShadowedPicture(const SkPicture*, | 138 void onDrawShadowedPicture(const SkPicture*, |
139 const SkMatrix*, | 139 const SkMatrix*, |
140 const SkPaint*) override; | 140 const SkPaint*, |
141 SkShadowType sType) override; | |
jvanverth1
2016/08/15 16:37:17
const &
vjiaoblack
2016/08/15 17:43:31
Done.
vjiaoblack
2016/08/15 17:43:31
Done.
| |
141 #else | 142 #else |
142 void onDrawShadowedPicture(const SkPicture*, | 143 void onDrawShadowedPicture(const SkPicture*, |
143 const SkMatrix*, | 144 const SkMatrix*, |
144 const SkPaint*); | 145 const SkPaint*, |
146 SkShadowType sType); | |
jvanverth1
2016/08/15 16:37:17
const &
vjiaoblack
2016/08/15 17:43:31
Done.
| |
145 #endif | 147 #endif |
146 | 148 |
147 void onDrawAnnotation(const SkRect&, const char[], SkData*) override; | 149 void onDrawAnnotation(const SkRect&, const char[], SkData*) override; |
148 | 150 |
149 sk_sp<SkSurface> onNewSurface(const SkImageInfo&, const SkSurfaceProps&) ove rride; | 151 sk_sp<SkSurface> onNewSurface(const SkImageInfo&, const SkSurfaceProps&) ove rride; |
150 | 152 |
151 void flushMiniRecorder(); | 153 void flushMiniRecorder(); |
152 | 154 |
153 private: | 155 private: |
154 template <typename T> | 156 template <typename T> |
(...skipping 10 matching lines...) Expand all Loading... | |
165 | 167 |
166 DrawPictureMode fDrawPictureMode; | 168 DrawPictureMode fDrawPictureMode; |
167 size_t fApproxBytesUsedBySubPictures; | 169 size_t fApproxBytesUsedBySubPictures; |
168 SkRecord* fRecord; | 170 SkRecord* fRecord; |
169 SkAutoTDelete<SkDrawableList> fDrawableList; | 171 SkAutoTDelete<SkDrawableList> fDrawableList; |
170 | 172 |
171 SkMiniRecorder* fMiniRecorder; | 173 SkMiniRecorder* fMiniRecorder; |
172 }; | 174 }; |
173 | 175 |
174 #endif//SkRecorder_DEFINED | 176 #endif//SkRecorder_DEFINED |
OLD | NEW |