1 //
2 // Copyright 2016 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 // SyncNULL.cpp:
7 // Implements the class methods for SyncNULL.
8 //
9
10 #include "libANGLE/renderer/null/SyncNULL.h"
11
12 #include "common/debug.h"
13
14 namespace rx
15 {
16
SyncNULL()17 SyncNULL::SyncNULL() : SyncImpl() {}
18
~SyncNULL()19 SyncNULL::~SyncNULL() {}
20
set(const gl::Context * context,GLenum condition,GLbitfield flags)21 angle::Result SyncNULL::set(const gl::Context *context, GLenum condition, GLbitfield flags)
22 {
23 return angle::Result::Continue;
24 }
25
clientWait(const gl::Context * context,GLbitfield flags,GLuint64 timeout,GLenum * outResult)26 angle::Result SyncNULL::clientWait(const gl::Context *context,
27 GLbitfield flags,
28 GLuint64 timeout,
29 GLenum *outResult)
30 {
31 *outResult = GL_ALREADY_SIGNALED;
32 return angle::Result::Continue;
33 }
34
serverWait(const gl::Context * context,GLbitfield flags,GLuint64 timeout)35 angle::Result SyncNULL::serverWait(const gl::Context *context, GLbitfield flags, GLuint64 timeout)
36 {
37 return angle::Result::Continue;
38 }
39
getStatus(const gl::Context * context,GLint * outResult)40 angle::Result SyncNULL::getStatus(const gl::Context *context, GLint *outResult)
41 {
42 *outResult = GL_SIGNALED;
43 return angle::Result::Continue;
44 }
45
46 } // namespace rx
47