diff options
author | 2017-04-10 10:07:46 -0400 | |
---|---|---|
committer | 2017-04-11 01:24:06 +0000 | |
commit | 5bd984892db1b5a2c3f76d51d8d77499afd853c5 (patch) | |
tree | 86ead758c52182bbd5c806d7932ad8983d19f329 /include | |
parent | 6d72ed918d8763e65899183c2d12b06958c791f4 (diff) |
remove kReturnNullForEmpty_FinishFlag feature
It's unused, and doesn't appear to be correct, returning nullptr too
early when we should return a non-empty SkMiniPicture.
The mini-recorder path will return a zero-allocation SkEmptyPicture anyway.
Change-Id: I1be538049e731acfc2b0f8b4f30cafee434a91dc
Reviewed-on: https://skia-review.googlesource.com/12626
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkPictureRecorder.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/core/SkPictureRecorder.h b/include/core/SkPictureRecorder.h index 9e29e0d66e..d898b91cca 100644 --- a/include/core/SkPictureRecorder.h +++ b/include/core/SkPictureRecorder.h @@ -38,7 +38,6 @@ public: }; enum FinishFlags { - kReturnNullForEmpty_FinishFlag = 1 << 0, // no draw-ops will return nullptr }; /** Returns the canvas that records the drawing commands. |