From 2889e69680c06c675ec72e8561456fbd53ba7702 Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Wed, 30 Sep 2020 10:34:49 -0400 Subject: [PATCH] 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 Commit-Queue: Brian Salomon --- include/core/SkPromiseImageTexture.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/core/SkPromiseImageTexture.h b/include/core/SkPromiseImageTexture.h index 467e501bee..521b4be43d 100644 --- a/include/core/SkPromiseImageTexture.h +++ b/include/core/SkPromiseImageTexture.h @@ -37,7 +37,7 @@ public: return sk_sp(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; }