From 83b1b3db36e8622f4bbc8c391d5c714e258d1e03 Mon Sep 17 00:00:00 2001 From: Brian Osman Date: Mon, 8 May 2017 15:16:45 -0400 Subject: Added SkImage::MakeCrossContextFromEncoded Designed for Flutter's threading architecture, with an eye to being useful to other clients. Under the hood, uses a new image generator class to lazily wrap a texture for multiple GrContexts. Bug: skia: Change-Id: I6c37b12c8ab5bce94b91190e5f0beb91d31ae81b Reviewed-on: https://skia-review.googlesource.com/14180 Commit-Queue: Brian Osman Reviewed-by: Brian Salomon --- tools/gpu/GrTest.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'tools/gpu') diff --git a/tools/gpu/GrTest.cpp b/tools/gpu/GrTest.cpp index 6dc21bb836..cd21e83ab1 100644 --- a/tools/gpu/GrTest.cpp +++ b/tools/gpu/GrTest.cpp @@ -337,6 +337,7 @@ public: sk_sp SK_WARN_UNUSED_RESULT makeSemaphore() override { return nullptr; } void insertSemaphore(sk_sp semaphore, bool flush) override {} void waitSemaphore(sk_sp semaphore) override {} + sk_sp prepareTextureForCrossContextUsage(GrTexture*) override { return nullptr; } private: void onResetContext(uint32_t resetBits) override {} -- cgit v1.2.3