Return GrBackendTexture from SkPromiseImageTexture by value.

Makes it simpler to call methods that update the internal ref counted
state.

Change-Id: Iecefab2c14ff13eae2fa34eafdcc7e031b3c85b0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/320957
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
This commit is contained in:
Brian Salomon 2020-09-30 10:34:49 -04:00 committed by Skia Commit-Bot
parent 52e9a7a0ba
commit 2889e69680

View File

@ -37,7 +37,7 @@ public:
return sk_sp<SkPromiseImageTexture>(new SkPromiseImageTexture(backendTexture));
}
const GrBackendTexture& backendTexture() const { return fBackendTexture; }
GrBackendTexture backendTexture() const { return fBackendTexture; }
void addKeyToInvalidate(uint32_t contextID, const GrUniqueKey& key);
uint32_t uniqueID() const { return fUniqueID; }