diff options
author | Mike Klein <mtklein@google.com> | 2014-06-24 11:29:06 -0400 |
---|---|---|
committer | Mike Klein <mtklein@google.com> | 2014-06-24 11:29:06 -0400 |
commit | c11530ea73b2a2fcb431df0f5c1887d08ac9113c (patch) | |
tree | fc125f31ed63254b9146dd84d66cd092b7d575b8 /src/core/SkRecordDraw.h | |
parent | 5a940b5cbb1320bffe7da37c07dcac84fb77fceb (diff) |
Tick off some TODOs:
- support fRecord in copy constructor
- support SkDrawPictureCallback
Moved SkDrawPictureCallback to its own header so
SkRecordDraw can include it without pulling in all of
SkPicture.
Adding an SkAutoSaveRestore to SkRecordDraw was the easiest
way to match the balance guarantees of the callback, and
probably not a bad idea in general. Updated its tests.
BUG=skia:
R=robertphillips@google.com
Review URL: https://codereview.chromium.org/349973008
Diffstat (limited to 'src/core/SkRecordDraw.h')
-rw-r--r-- | src/core/SkRecordDraw.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/SkRecordDraw.h b/src/core/SkRecordDraw.h index 359679a6d7..92b94c4423 100644 --- a/src/core/SkRecordDraw.h +++ b/src/core/SkRecordDraw.h @@ -10,9 +10,10 @@ #include "SkRecord.h" #include "SkCanvas.h" +#include "SkDrawPictureCallback.h" // Draw an SkRecord into an SkCanvas. A convenience wrapper around SkRecords::Draw. -void SkRecordDraw(const SkRecord&, SkCanvas*); +void SkRecordDraw(const SkRecord&, SkCanvas*, SkDrawPictureCallback* = NULL); namespace SkRecords { |