diff options
author | Brian Osman <brianosman@google.com> | 2017-03-02 15:09:20 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-02 20:47:36 +0000 |
commit | fe3b51636d4216c4ea6cb74ed0964c1d315ca487 (patch) | |
tree | e85907dad1a167ecceace5de1e6157a787fe0bac /src/gpu/GrSemaphore.h | |
parent | e836b7817e8b28f0bd69578b8dfd83b8ef00248c (diff) |
Use GrSemaphore rather than GrFence for external texture data
BUG=skia:
Change-Id: I0d23eb9dcf5c01c71d3571ef97690af68b900807
Reviewed-on: https://skia-review.googlesource.com/9141
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrSemaphore.h')
-rw-r--r-- | src/gpu/GrSemaphore.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpu/GrSemaphore.h b/src/gpu/GrSemaphore.h index bdeff09ec2..717b4bb506 100644 --- a/src/gpu/GrSemaphore.h +++ b/src/gpu/GrSemaphore.h @@ -13,7 +13,7 @@ class GrGpu; class GrSemaphore : public SkRefCnt { -public: +private: // This function should only be used in the case of exporting and importing a GrSemaphore object // from one GrContext to another. When exporting, the GrSemaphore should be set to a null GrGpu, // and when importing it should be set to the GrGpu of the current context. Once exported, a @@ -23,6 +23,8 @@ public: protected: explicit GrSemaphore(const GrGpu* gpu) : fGpu(gpu) {} + friend class GrGLExternalTextureData; // resetGpu + const GrGpu* fGpu; }; |