1 // 2 // Copyright (c) 2013 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 7 // FenceImpl.h: Defines the rx::FenceImpl class. 8 9 #ifndef LIBGLESV2_RENDERER_FENCEIMPL_H_ 10 #define LIBGLESV2_RENDERER_FENCEIMPL_H_ 11 12 #include "common/angleutils.h" 13 14 namespace rx 15 { 16 17 class FenceImpl 18 { 19 public: FenceImpl()20 FenceImpl() { }; ~FenceImpl()21 virtual ~FenceImpl() { }; 22 23 virtual bool isSet() const = 0; 24 virtual void set() = 0; 25 virtual bool test(bool flushCommandBuffer) = 0; 26 virtual bool hasError() const = 0; 27 28 private: 29 DISALLOW_COPY_AND_ASSIGN(FenceImpl); 30 }; 31 32 } 33 34 #endif // LIBGLESV2_RENDERER_FENCEIMPL_H_ 35