diff options
author | reed <reed@google.com> | 2015-09-28 09:58:41 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-28 09:58:41 -0700 |
commit | c9e190ddac3d193e89e580ea3819a55c28f15e61 (patch) | |
tree | 0ed534fa007d732ad9d90f33f604e0e845ee2ce4 /tools/sk_tool_utils.h | |
parent | 25a5b0dd0c9e94d508b8a9f4de1f977e63775bd1 (diff) |
Revert of change pixel-serializer to support reencoding existing data (patchset #5 id:80001 of https://codereview.chromium.org/1373683003/ )
Reason for revert:
Need to somehow get access to encoders in chrome -- link error on the roll since SkImageEncoder is not built as part of chrome.
Original issue's description:
> change pixel-serializer to support reencoding existing data
>
> Trying to evolve this interface so it can
> - support rich set of backend-encoders (including ones like ETC1 that can cheaply convert to KXT
> - allow for encoding images as well as bitmaps (e.g. for picture serialization)
> - perhaps replace SkImageEncoder as an API (assuming we create a factory that returns a serializer given a format)
>
> BUG=skia:
>
> Committed: https://skia.googlesource.com/skia/+/13f48dc85aa68a60da66aaf39c93d527d11d1278
TBR=scroggo@google.com,msarett@google.com
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:
Review URL: https://codereview.chromium.org/1371983003
Diffstat (limited to 'tools/sk_tool_utils.h')
-rw-r--r-- | tools/sk_tool_utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/sk_tool_utils.h b/tools/sk_tool_utils.h index d8709cc71e..b20c60ba76 100644 --- a/tools/sk_tool_utils.h +++ b/tools/sk_tool_utils.h @@ -115,6 +115,7 @@ namespace sk_tool_utils { // used. class PngPixelSerializer : public SkPixelSerializer { public: + bool onUseEncodedData(const void*, size_t) override { return true; } SkData* onEncodePixels(const SkImageInfo& info, const void* pixels, size_t rowBytes) override { return SkImageEncoder::EncodeData(info, pixels, rowBytes, |