* commit '4e9cf45cbda52fb04e77f7917eb1abb31ff1b851': emulator: opengl: Make render_api.h C-compatible
This commit is contained in:
committed by
Android Git Automerger
commit
44d6a0fa6f
@@ -16,7 +16,10 @@
|
||||
#ifndef _OPENGL_RENDERER_RENDER_API_H
|
||||
#define _OPENGL_RENDERER_RENDER_API_H
|
||||
|
||||
#include "IOStream.h"
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "render_api_platform_types.h"
|
||||
|
||||
//
|
||||
@@ -41,14 +44,8 @@ bool initOpenGLRenderer(FBNativeWindowType window,
|
||||
//
|
||||
bool stopOpenGLRenderer();
|
||||
|
||||
//
|
||||
// createRenderThread - opens a new communication channel to the renderer
|
||||
// process and creates new rendering thread.
|
||||
// returns a pointer to IOStream through which command tokens are being sent
|
||||
// to the render thread for execution. 'p_stream_buffer_size' is the internal
|
||||
// stream buffer size.
|
||||
// The thread is destroyed when deleting the IOStream object.
|
||||
//
|
||||
IOStream *createRenderThread(int p_stream_buffer_size);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "libOpenglRender/render_api.h"
|
||||
#include "IOStream.h"
|
||||
#include "FrameBuffer.h"
|
||||
#include "RenderServer.h"
|
||||
#include "osProcess.h"
|
||||
@@ -23,6 +24,8 @@ static osUtils::childProcess *s_renderProc = NULL;
|
||||
static RenderServer *s_renderThread = NULL;
|
||||
static int s_renderPort = 0;
|
||||
|
||||
static IOStream *createRenderThread(int p_stream_buffer_size);
|
||||
|
||||
#ifdef __APPLE__
|
||||
#define RENDER_API_USE_THREAD
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user