diff options
author | 2017-06-15 16:06:47 -0400 | |
---|---|---|
committer | 2017-06-15 21:07:21 +0000 | |
commit | 2bd381bffd36cdcffacf606d952547ce66fed7e9 (patch) | |
tree | 4615668e4e6ea616d13419eb4fec0907f75864a4 /src/gpu/gl/GrGLSemaphore.cpp | |
parent | 10978a6eade1031881bc1793d01ec6d841519778 (diff) |
Remove Gr*Gpu includes from header files.
Some general cleanup to try to keep use of the backend gpu class in cpps.
Bug: skia:
Change-Id: I1a28e0e5c2e55562b3fff56c284c3405b5b6d8bc
Reviewed-on: https://skia-review.googlesource.com/20057
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/gl/GrGLSemaphore.cpp')
-rw-r--r-- | src/gpu/gl/GrGLSemaphore.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLSemaphore.cpp b/src/gpu/gl/GrGLSemaphore.cpp new file mode 100644 index 0000000000..c26b74e9c1 --- /dev/null +++ b/src/gpu/gl/GrGLSemaphore.cpp @@ -0,0 +1,20 @@ +/* + * Copyright 2017 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#include "GrGLSemaphore.h" + +#include "GrGLGpu.h" + +GrGLSemaphore::GrGLSemaphore(const GrGLGpu* gpu, bool isOwned) + : INHERITED(gpu), fSync(0), fIsOwned(isOwned) { +} + +GrGLSemaphore::~GrGLSemaphore() { + if (fIsOwned && fGpu) { + static_cast<const GrGLGpu*>(fGpu)->deleteSync(fSync); + } +} |