Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
GrGLSemaphore.cpp
Go to the documentation of this file.
1/*
2 * Copyright 2017 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
9
11
12GrGLSemaphore::GrGLSemaphore(GrGLGpu* gpu, bool isOwned)
13 : fGpu(gpu), fSync(nullptr), fIsOwned(isOwned) {
14}
15
17 if (fSync && fIsOwned) {
18 fGpu->deleteSync(fSync);
19 }
20}
void deleteSync(GrGLsync)
Definition GrGLGpu.cpp:4394
~GrGLSemaphore() override