Revert "Remove old version of MakeCrossContextFromPixmap"

This reverts commit 237a95fe7b.

Reason for revert: Flutter in Google 3.

Original change's description:
> Remove old version of MakeCrossContextFromPixmap
> 
> Client code has been updated
> 
> Change-Id: Ic6102effc63c0f4f00a47b8876107aa0b2306e32
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/235296
> Reviewed-by: Mike Reed <reed@google.com>
> Commit-Queue: Brian Osman <brianosman@google.com>

TBR=brianosman@google.com,reed@google.com

Change-Id: I0a290030e55987c690b51470a381aca2b6faab2f
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/235397
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
This commit is contained in:
Brian Osman 2019-08-16 20:51:56 +00:00 committed by Skia Commit-Bot
parent 5a5f3e8f31
commit a0c9d43c20

View File

@ -344,6 +344,12 @@ public:
bool buildMips, bool buildMips,
bool limitToMaxTextureSize = false); bool limitToMaxTextureSize = false);
static sk_sp<SkImage> MakeCrossContextFromPixmap(GrContext* context, const SkPixmap& pixmap,
bool buildMips, SkColorSpace*,
bool limitToMaxTextureSize = false) {
return MakeCrossContextFromPixmap(context, pixmap, buildMips, limitToMaxTextureSize);
}
/** Creates SkImage from backendTexture associated with context. backendTexture and /** Creates SkImage from backendTexture associated with context. backendTexture and
returned SkImage are managed internally, and are released when no longer needed. returned SkImage are managed internally, and are released when no longer needed.