Remove unused SkAnimatedImage factory
This version was used before we added the version with an SkImageInfo parameter to handle the SkColorSpace. That version supports all use cases supported by this old one. Change-Id: I966cfc83ac34d4951283eaf9e81febb032f461cf Reviewed-on: https://skia-review.googlesource.com/c/skia/+/333221 Commit-Queue: Leon Scroggins <scroggo@google.com> Auto-Submit: Leon Scroggins <scroggo@google.com> Reviewed-by: Derek Sollenberger <djsollen@google.com>
This commit is contained in:
parent
b776a105e5
commit
398fbed736
@ -36,19 +36,6 @@ public:
|
||||
static sk_sp<SkAnimatedImage> Make(std::unique_ptr<SkAndroidCodec>,
|
||||
const SkImageInfo& info, SkIRect cropRect, sk_sp<SkPicture> postProcess);
|
||||
|
||||
/**
|
||||
* Create an SkAnimatedImage from the SkAndroidCodec.
|
||||
*
|
||||
* Returns null on failure to allocate pixels. On success, this will
|
||||
* decode the first frame.
|
||||
*
|
||||
* @param scaledSize Size to draw the image, possibly requiring scaling.
|
||||
* @param cropRect Rectangle to crop to after scaling.
|
||||
* @param postProcess Picture to apply after scaling and cropping.
|
||||
*/
|
||||
static sk_sp<SkAnimatedImage> Make(std::unique_ptr<SkAndroidCodec>,
|
||||
SkISize scaledSize, SkIRect cropRect, sk_sp<SkPicture> postProcess);
|
||||
|
||||
/**
|
||||
* Simpler version that uses the default size, no cropping, and no postProcess.
|
||||
*/
|
||||
|
@ -18,15 +18,6 @@
|
||||
#include <limits.h>
|
||||
#include <utility>
|
||||
|
||||
sk_sp<SkAnimatedImage> SkAnimatedImage::Make(std::unique_ptr<SkAndroidCodec> codec,
|
||||
SkISize scaledSize, SkIRect cropRect, sk_sp<SkPicture> postProcess) {
|
||||
if (!codec) {
|
||||
return nullptr;
|
||||
}
|
||||
auto info = codec->getInfo().makeDimensions(scaledSize);
|
||||
return Make(std::move(codec), info, cropRect, std::move(postProcess));
|
||||
}
|
||||
|
||||
sk_sp<SkAnimatedImage> SkAnimatedImage::Make(std::unique_ptr<SkAndroidCodec> codec,
|
||||
const SkImageInfo& requestedInfo, SkIRect cropRect, sk_sp<SkPicture> postProcess) {
|
||||
if (!codec) {
|
||||
|
Loading…
Reference in New Issue
Block a user