45 public ::alicorn::extension::testing::Proxy<Proxy>
48 MOCK_METHOD3(Constructor, Id_t(Id_t, Id_t, ANativeWindow *));
49 MOCK_METHOD1(Destructor,
void(Id_t));
50 MOCK_METHOD1(SwapBuffers,
void(Id_t));
51 MOCK_METHOD1(GetWidth, int32_t(Id_t));
52 MOCK_METHOD1(GetHeight, int32_t(Id_t));
57 Surface & operator= (
const Surface &) =
delete;
58 bool operator== (
const Surface & _Value)
const {
return (m_Id == _Value.m_Id); }
61 ::covellite::egl::EGLSurface m_Surface =
nullptr;
64 void SwapBuffers(
void)
const
66 Proxy::GetInstance()->SwapBuffers(m_Id);
69 int32_t GetWidth(
void)
const
71 return Proxy::GetInstance()->GetWidth(m_Id);
74 int32_t GetHeight(
void)
const
76 return Proxy::GetInstance()->GetHeight(m_Id);
79 Surface(
const Display & _Display,
const Config & _Config,
80 ANativeWindow * _pActivity) :
81 m_Id(Proxy::GetInstance()->Constructor(_Display.m_Id, _Config.m_Id, _pActivity))
87 Proxy::GetInstance()->Destructor(m_Id);