blob: d994d9207c8a303a2b7330042c8e4e037d06f481 [file] [log] [blame]
// Copyright 2019 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// SyncEGL.h: Defines the rx::SyncEGL class, the EGL implementation of EGL sync objects.
#include "libANGLE/renderer/EGLSyncImpl.h"
namespace egl
class AttributeMap;
namespace rx
class FunctionsEGL;
class SyncEGL final : public EGLSyncImpl
SyncEGL(const egl::AttributeMap &attribs, const FunctionsEGL *egl);
~SyncEGL() override;
void onDestroy(const egl::Display *display) override;
egl::Error initialize(const egl::Display *display,
const gl::Context *context,
EGLenum type) override;
egl::Error clientWait(const egl::Display *display,
const gl::Context *context,
EGLint flags,
EGLTime timeout,
EGLint *outResult) override;
egl::Error serverWait(const egl::Display *display,
const gl::Context *context,
EGLint flags) override;
egl::Error getStatus(const egl::Display *display, EGLint *outStatus) override;
egl::Error dupNativeFenceFD(const egl::Display *display, EGLint *result) const override;
const FunctionsEGL *mEGL;
EGLint mNativeFenceFD;
EGLSync mSync;
} // namespace rx