| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |