default SkPixelSerializer
authorhalcanary <halcanary@google.com>
Thu, 10 Dec 2015 20:40:23 +0000 (12:40 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 10 Dec 2015 20:40:23 +0000 (12:40 -0800)
commitf2848b60358deb23eca38a4587247c1d2e335d30
tree0e2d57d7e4c4b2bdf728da293de3a5844f487509
parent1812fa225dc7d0d8bc6166d903ea13df88d3eeab
default SkPixelSerializer

Add SkImageEncoder::EncodeData(const SkPixmap&, ...) function.

Add SkImageEncoder::CreatePixelSerializer() to return a
PixelSerializer that calls into SkImageEncoder::EncodeData.

SkImage::encode() make use of SkImageEncoder::CreatePixelSerializer.

Committed: https://skia.googlesource.com/skia/+/b0bd1516bff3f5afcbfd615e805867531657811b

Committed: https://skia.googlesource.com/skia/+/808ce2886d732b1055f89c8fb0f1b11b47fcb0ce

Review URL: https://codereview.chromium.org/1507123002
debugger/QT/SkDebuggerGUI.cpp
include/core/SkImageEncoder.h
src/image/SkImage.cpp
src/images/SkImageEncoder.cpp
src/ports/SkImageDecoder_empty.cpp
tests/PictureTest.cpp
tools/sk_tool_utils.cpp
tools/sk_tool_utils.h