diff options
Diffstat (limited to 'src/gpu/GrResourceProvider.h')
-rw-r--r-- | src/gpu/GrResourceProvider.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gpu/GrResourceProvider.h b/src/gpu/GrResourceProvider.h index 50264ef908..a6ddbc55b0 100644 --- a/src/gpu/GrResourceProvider.h +++ b/src/gpu/GrResourceProvider.h @@ -8,13 +8,14 @@ #ifndef GrResourceProvider_DEFINED #define GrResourceProvider_DEFINED -#include "GrBackendSurface.h" #include "GrBuffer.h" #include "GrPathRange.h" #include "SkImageInfo.h" #include "SkScalerContext.h" class GrBackendRenderTarget; +class GrBackendSemaphore; +class GrBackendTexture; class GrGpu; class GrPath; class GrRenderTarget; @@ -227,7 +228,10 @@ public: */ GrGpuResource* findAndRefResourceByUniqueKey(const GrUniqueKey&); - sk_sp<GrSemaphore> SK_WARN_UNUSED_RESULT makeSemaphore(); + sk_sp<GrSemaphore> SK_WARN_UNUSED_RESULT makeSemaphore(bool isOwned = true); + + sk_sp<GrSemaphore> wrapBackendSemaphore(const GrBackendSemaphore&, + GrWrapOwnership = kBorrow_GrWrapOwnership); // Takes the GrSemaphore and sets the ownership of the semaphore to the GrGpu object used by // this class. This call is only used when passing a GrSemaphore from one context to another. |