commit | 1bf0ed8584777a8dba4d0eeb421bfc35a0f9bbf2 | [log] [tgz] |
---|---|---|
author | Brian Salomon <bsalomon@google.com> | Wed Jan 16 13:51:35 2019 -0500 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Wed Jan 16 22:06:53 2019 +0000 |
tree | 0f5203c2f2750fa3c17f20d31eb2e95c80b702de | |
parent | 0886ac875c5263701ace73d5ff2b4e0970667759 [diff] [blame] |
Make GrTexture caching for SkPromiseImageTexture work when same texture fulfills a different SkImage. Bug: skia:8613 Change-Id: I7ee14112c69f8aaef223a37dda455259b501a2bf Reviewed-on: https://skia-review.googlesource.com/c/184440 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
diff --git a/src/gpu/mock/GrMockTexture.h b/src/gpu/mock/GrMockTexture.h index ac5eab0..3674de6 100644 --- a/src/gpu/mock/GrMockTexture.h +++ b/src/gpu/mock/GrMockTexture.h
@@ -52,6 +52,7 @@ fIdleProc = proc; fIdleProcContext = context; } + void* idleContext() const override { return fIdleProcContext; } protected: // constructor for subclasses