diff options
author | Mike Reed <reed@google.com> | 2017-10-16 11:42:53 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-10-16 17:33:22 +0000 |
commit | fa15877f487333bec876e7315cf584c0d598d098 (patch) | |
tree | 7ee6ce5183e8cf12505f69d0f1b5bcb7abfccd85 /include | |
parent | d28a79d49549568c3ebac36288ea3965496333f8 (diff) |
apply codec origin in generator
Bug: skia:
Change-Id: I383dacb49b1e3c88467ccdbf3288764bb1bbf01a
Reviewed-on: https://skia-review.googlesource.com/58600
Reviewed-by: Leon Scroggins <scroggo@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/codec/SkCodec.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/codec/SkCodec.h b/include/codec/SkCodec.h index e2596890f3..6e9c8280b9 100644 --- a/include/codec/SkCodec.h +++ b/include/codec/SkCodec.h @@ -15,6 +15,7 @@ #include "SkEncodedImageFormat.h" #include "SkEncodedInfo.h" #include "SkImageInfo.h" +#include "SkPixmap.h" #include "SkSize.h" #include "SkStream.h" #include "SkTypes.h" @@ -355,6 +356,10 @@ public: return this->getPixels(info, pixels, rowBytes, nullptr); } + Result getPixels(const SkPixmap& pm, const Options* opts = nullptr) { + return this->getPixels(pm.info(), pm.writable_addr(), pm.rowBytes(), opts); + } + /** * If decoding to YUV is supported, this returns true. Otherwise, this * returns false and does not modify any of the parameters. |