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:
parent
52e9a7a0ba
commit
2889e69680
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user