From aac93f1585bc9bdf8a57b6ed3c47c24f56a3990a Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Mon, 10 Mar 2014 15:16:30 +0100 Subject: emulator/opengl: Remove android::Mutex. This patch removes the dependency on android::Mutex from by providing a custom implementation, which is a simple wrapper around pthread_mutex_t / CriticalSection, under shared/emugl/common/mutex.h + Provide unit tests. Change-Id: I379ef0c480c478ab9ba5f2faaf8274267eff37ba --- emulator/opengl/host/libs/libOpenglRender/FrameBuffer.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'emulator/opengl/host/libs/libOpenglRender/FrameBuffer.h') diff --git a/emulator/opengl/host/libs/libOpenglRender/FrameBuffer.h b/emulator/opengl/host/libs/libOpenglRender/FrameBuffer.h index de0b71c..5b03624 100644 --- a/emulator/opengl/host/libs/libOpenglRender/FrameBuffer.h +++ b/emulator/opengl/host/libs/libOpenglRender/FrameBuffer.h @@ -20,7 +20,8 @@ #include "ColorBuffer.h" #include "RenderContext.h" #include "WindowSurface.h" -#include +#include "emugl/common/mutex.h" + #include #include #include @@ -111,7 +112,7 @@ private: int m_y; int m_width; int m_height; - android::Mutex m_lock; + emugl::Mutex m_lock; FBNativeWindowType m_nativeWindow; FrameBufferCaps m_caps; EGLDisplay m_eglDisplay; -- cgit v1.1