Chromium Code Reviews| Index: src/core/SkRecorder.h |
| diff --git a/src/core/SkRecorder.h b/src/core/SkRecorder.h |
| index 683d29b4119ee67e7c9a755c69e5105506fa5d4b..7b73df63dcdf4a8be9cb7bada3bff17acf225742 100644 |
| --- a/src/core/SkRecorder.h |
| +++ b/src/core/SkRecorder.h |
| @@ -11,6 +11,7 @@ |
| #include "SkCanvas.h" |
| #include "SkRecord.h" |
| #include "SkRecords.h" |
| +#include "SkTDArray.h" |
| // SkRecorder provides an SkCanvas interface for recording into an SkRecord. |
| @@ -64,6 +65,7 @@ public: |
| void willSave() SK_OVERRIDE; |
| SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SkCanvas::SaveFlags) SK_OVERRIDE; |
| + void willRestore() SK_OVERRIDE {} |
| void didRestore() SK_OVERRIDE; |
| void didConcat(const SkMatrix&) SK_OVERRIDE; |
| @@ -110,6 +112,10 @@ public: |
| void beginCommentGroup(const char*) SK_OVERRIDE; |
| void addComment(const char*, const char*) SK_OVERRIDE; |
| void endCommentGroup() SK_OVERRIDE; |
| + void drawData(const void*, size_t) SK_OVERRIDE; |
| + |
| + bool isDrawingToLayer() const SK_OVERRIDE; |
| + SkSurface* onNewSurface(const SkImageInfo&) SK_OVERRIDE { return NULL; } |
| private: |
| template <typename T> |
| @@ -125,6 +131,9 @@ private: |
| } |
| SkRecord* fRecord; |
| + |
| + int fSaveLayerCount; |
| + SkTDArray<bool> fSaveIsSaveLayer; |
|
reed1
2014/09/04 20:53:04
absurd nit: SkBool8 may be smaller than bool
mtklein
2014/09/04 20:57:15
Done.
|
| }; |
| #endif//SkRecorder_DEFINED |