diff options
author | David 'Digit' Turner <digit@google.com> | 2014-10-31 11:39:38 +0100 |
---|---|---|
committer | David 'Digit' Turner <digit@google.com> | 2014-10-31 16:04:37 +0100 |
commit | b7837c3c3378f45c500a1ce036fe3a3a2b83ed53 (patch) | |
tree | cb37ea76401d6eeafa2c4fceb065554050d78028 /opengl/system/renderControl_enc/renderControl_entry.cpp | |
parent | 223a765dbc9b6bf6a20fff842c1fdf2cbf7fe529 (diff) | |
download | android_device_generic_goldfish-b7837c3c3378f45c500a1ce036fe3a3a2b83ed53.tar.gz android_device_generic_goldfish-b7837c3c3378f45c500a1ce036fe3a3a2b83ed53.tar.bz2 android_device_generic_goldfish-b7837c3c3378f45c500a1ce036fe3a3a2b83ed53.zip |
opengl: Regenerate GPU emulation encoder sources.
This patch updates the encoder sources to match the auto-generated
output of the latest 'emugen' tools from sdk/emulator/opengl/
Generated by using external/qemu/distrib/update-emugl-source.sh
This shall only results in minor changes:
- Minor indentation fixes.
- Using 'const' to define constant tables.
- Using anonymous namespaces in the encoders.
Change-Id: Ib282b31c4c05da897157ef90e5a9deb914a08bda
Diffstat (limited to 'opengl/system/renderControl_enc/renderControl_entry.cpp')
-rw-r--r-- | opengl/system/renderControl_enc/renderControl_entry.cpp | 106 |
1 files changed, 53 insertions, 53 deletions
diff --git a/opengl/system/renderControl_enc/renderControl_entry.cpp b/opengl/system/renderControl_enc/renderControl_entry.cpp index a15fd14..71edb83 100644 --- a/opengl/system/renderControl_enc/renderControl_entry.cpp +++ b/opengl/system/renderControl_enc/renderControl_entry.cpp @@ -38,162 +38,162 @@ extern "C" { #ifndef GET_CONTEXT static renderControl_client_context_t::CONTEXT_ACCESSOR_TYPE *getCurrentContext = NULL; void renderControl_client_context_t::setContextAccessor(CONTEXT_ACCESSOR_TYPE *f) { getCurrentContext = f; } -#define GET_CONTEXT renderControl_client_context_t * ctx = getCurrentContext() +#define GET_CONTEXT renderControl_client_context_t * ctx = getCurrentContext() #endif GLint rcGetRendererVersion() { - GET_CONTEXT; - return ctx->rcGetRendererVersion(ctx); + GET_CONTEXT; + return ctx->rcGetRendererVersion(ctx); } EGLint rcGetEGLVersion(EGLint* major, EGLint* minor) { - GET_CONTEXT; - return ctx->rcGetEGLVersion(ctx, major, minor); + GET_CONTEXT; + return ctx->rcGetEGLVersion(ctx, major, minor); } EGLint rcQueryEGLString(EGLenum name, void* buffer, EGLint bufferSize) { - GET_CONTEXT; - return ctx->rcQueryEGLString(ctx, name, buffer, bufferSize); + GET_CONTEXT; + return ctx->rcQueryEGLString(ctx, name, buffer, bufferSize); } EGLint rcGetGLString(EGLenum name, void* buffer, EGLint bufferSize) { - GET_CONTEXT; - return ctx->rcGetGLString(ctx, name, buffer, bufferSize); + GET_CONTEXT; + return ctx->rcGetGLString(ctx, name, buffer, bufferSize); } EGLint rcGetNumConfigs(uint32_t* numAttribs) { - GET_CONTEXT; - return ctx->rcGetNumConfigs(ctx, numAttribs); + GET_CONTEXT; + return ctx->rcGetNumConfigs(ctx, numAttribs); } EGLint rcGetConfigs(uint32_t bufSize, GLuint* buffer) { - GET_CONTEXT; - return ctx->rcGetConfigs(ctx, bufSize, buffer); + GET_CONTEXT; + return ctx->rcGetConfigs(ctx, bufSize, buffer); } EGLint rcChooseConfig(EGLint* attribs, uint32_t attribs_size, uint32_t* configs, uint32_t configs_size) { - GET_CONTEXT; - return ctx->rcChooseConfig(ctx, attribs, attribs_size, configs, configs_size); + GET_CONTEXT; + return ctx->rcChooseConfig(ctx, attribs, attribs_size, configs, configs_size); } EGLint rcGetFBParam(EGLint param) { - GET_CONTEXT; - return ctx->rcGetFBParam(ctx, param); + GET_CONTEXT; + return ctx->rcGetFBParam(ctx, param); } uint32_t rcCreateContext(uint32_t config, uint32_t share, uint32_t glVersion) { - GET_CONTEXT; - return ctx->rcCreateContext(ctx, config, share, glVersion); + GET_CONTEXT; + return ctx->rcCreateContext(ctx, config, share, glVersion); } void rcDestroyContext(uint32_t context) { - GET_CONTEXT; - ctx->rcDestroyContext(ctx, context); + GET_CONTEXT; + ctx->rcDestroyContext(ctx, context); } uint32_t rcCreateWindowSurface(uint32_t config, uint32_t width, uint32_t height) { - GET_CONTEXT; - return ctx->rcCreateWindowSurface(ctx, config, width, height); + GET_CONTEXT; + return ctx->rcCreateWindowSurface(ctx, config, width, height); } void rcDestroyWindowSurface(uint32_t windowSurface) { - GET_CONTEXT; - ctx->rcDestroyWindowSurface(ctx, windowSurface); + GET_CONTEXT; + ctx->rcDestroyWindowSurface(ctx, windowSurface); } uint32_t rcCreateColorBuffer(uint32_t width, uint32_t height, GLenum internalFormat) { - GET_CONTEXT; - return ctx->rcCreateColorBuffer(ctx, width, height, internalFormat); + GET_CONTEXT; + return ctx->rcCreateColorBuffer(ctx, width, height, internalFormat); } void rcOpenColorBuffer(uint32_t colorbuffer) { - GET_CONTEXT; - ctx->rcOpenColorBuffer(ctx, colorbuffer); + GET_CONTEXT; + ctx->rcOpenColorBuffer(ctx, colorbuffer); } void rcCloseColorBuffer(uint32_t colorbuffer) { - GET_CONTEXT; - ctx->rcCloseColorBuffer(ctx, colorbuffer); + GET_CONTEXT; + ctx->rcCloseColorBuffer(ctx, colorbuffer); } void rcSetWindowColorBuffer(uint32_t windowSurface, uint32_t colorBuffer) { - GET_CONTEXT; - ctx->rcSetWindowColorBuffer(ctx, windowSurface, colorBuffer); + GET_CONTEXT; + ctx->rcSetWindowColorBuffer(ctx, windowSurface, colorBuffer); } int rcFlushWindowColorBuffer(uint32_t windowSurface) { - GET_CONTEXT; - return ctx->rcFlushWindowColorBuffer(ctx, windowSurface); + GET_CONTEXT; + return ctx->rcFlushWindowColorBuffer(ctx, windowSurface); } EGLint rcMakeCurrent(uint32_t context, uint32_t drawSurf, uint32_t readSurf) { - GET_CONTEXT; - return ctx->rcMakeCurrent(ctx, context, drawSurf, readSurf); + GET_CONTEXT; + return ctx->rcMakeCurrent(ctx, context, drawSurf, readSurf); } void rcFBPost(uint32_t colorBuffer) { - GET_CONTEXT; - ctx->rcFBPost(ctx, colorBuffer); + GET_CONTEXT; + ctx->rcFBPost(ctx, colorBuffer); } void rcFBSetSwapInterval(EGLint interval) { - GET_CONTEXT; - ctx->rcFBSetSwapInterval(ctx, interval); + GET_CONTEXT; + ctx->rcFBSetSwapInterval(ctx, interval); } void rcBindTexture(uint32_t colorBuffer) { - GET_CONTEXT; - ctx->rcBindTexture(ctx, colorBuffer); + GET_CONTEXT; + ctx->rcBindTexture(ctx, colorBuffer); } void rcBindRenderbuffer(uint32_t colorBuffer) { - GET_CONTEXT; - ctx->rcBindRenderbuffer(ctx, colorBuffer); + GET_CONTEXT; + ctx->rcBindRenderbuffer(ctx, colorBuffer); } EGLint rcColorBufferCacheFlush(uint32_t colorbuffer, EGLint postCount, int forRead) { - GET_CONTEXT; - return ctx->rcColorBufferCacheFlush(ctx, colorbuffer, postCount, forRead); + GET_CONTEXT; + return ctx->rcColorBufferCacheFlush(ctx, colorbuffer, postCount, forRead); } void rcReadColorBuffer(uint32_t colorbuffer, GLint x, GLint y, GLint width, GLint height, GLenum format, GLenum type, void* pixels) { - GET_CONTEXT; - ctx->rcReadColorBuffer(ctx, colorbuffer, x, y, width, height, format, type, pixels); + GET_CONTEXT; + ctx->rcReadColorBuffer(ctx, colorbuffer, x, y, width, height, format, type, pixels); } int rcUpdateColorBuffer(uint32_t colorbuffer, GLint x, GLint y, GLint width, GLint height, GLenum format, GLenum type, void* pixels) { - GET_CONTEXT; - return ctx->rcUpdateColorBuffer(ctx, colorbuffer, x, y, width, height, format, type, pixels); + GET_CONTEXT; + return ctx->rcUpdateColorBuffer(ctx, colorbuffer, x, y, width, height, format, type, pixels); } int rcOpenColorBuffer2(uint32_t colorbuffer) { - GET_CONTEXT; - return ctx->rcOpenColorBuffer2(ctx, colorbuffer); + GET_CONTEXT; + return ctx->rcOpenColorBuffer2(ctx, colorbuffer); } |