| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 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 SkLiteRecorder_DEFINED | 8 #ifndef SkLiteRecorder_DEFINED |
| 9 #define SkLiteRecorder_DEFINED | 9 #define SkLiteRecorder_DEFINED |
| 10 | 10 |
| 11 #include "SkCanvas.h" | 11 #include "SkCanvas.h" |
| 12 | 12 |
| 13 class SkLiteDL; | 13 class SkLiteDL; |
| 14 | 14 |
| 15 class SkLiteRecorder final : public SkCanvas { | 15 class SkLiteRecorder final : public SkCanvas { |
| 16 public: | 16 public: |
| 17 SkLiteRecorder(); | 17 SkLiteRecorder(); |
| 18 void reset(SkLiteDL*); | 18 void reset(SkLiteDL*); |
| 19 | 19 |
| 20 sk_sp<SkSurface> onNewSurface(const SkImageInfo&, const SkSurfaceProps&) ove
rride; | 20 sk_sp<SkSurface> onNewSurface(const SkImageInfo&, const SkSurfaceProps&) ove
rride; |
| 21 | 21 |
| 22 #ifdef SK_SUPPORT_LEGACY_DRAWFILTER |
| 23 SkDrawFilter* setDrawFilter(SkDrawFilter*) override; |
| 24 #endif |
| 25 |
| 22 void willSave() override; | 26 void willSave() override; |
| 23 SaveLayerStrategy getSaveLayerStrategy(const SaveLayerRec&) override; | 27 SaveLayerStrategy getSaveLayerStrategy(const SaveLayerRec&) override; |
| 24 void willRestore() override; | 28 void willRestore() override; |
| 25 | 29 |
| 26 void didConcat(const SkMatrix&) override; | 30 void didConcat(const SkMatrix&) override; |
| 27 void didSetMatrix(const SkMatrix&) override; | 31 void didSetMatrix(const SkMatrix&) override; |
| 28 void didTranslate(SkScalar, SkScalar) override; | 32 void didTranslate(SkScalar, SkScalar) override; |
| 29 | 33 |
| 30 void onClipRect (const SkRect&, SkRegion::Op, ClipEdgeStyle) override; | 34 void onClipRect (const SkRect&, SkRegion::Op, ClipEdgeStyle) override; |
| 31 void onClipRRect (const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; | 35 void onClipRRect (const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 void didTranslateZ(SkScalar); | 87 void didTranslateZ(SkScalar); |
| 84 void onDrawShadowedPicture(const SkPicture*, const SkMatrix*, | 88 void onDrawShadowedPicture(const SkPicture*, const SkMatrix*, |
| 85 const SkPaint*, const SkShadowParams& params); | 89 const SkPaint*, const SkShadowParams& params); |
| 86 #endif | 90 #endif |
| 87 | 91 |
| 88 private: | 92 private: |
| 89 SkLiteDL* fDL; | 93 SkLiteDL* fDL; |
| 90 }; | 94 }; |
| 91 | 95 |
| 92 #endif//SkLiteRecorder_DEFINED | 96 #endif//SkLiteRecorder_DEFINED |
| OLD | NEW |