EmuGL: misc small cleanups

* Disable verbose debug spam.
* Add missing GL enum to utility function. The default case was
  returning the correct size, so this doesn't fix any bugs, just
  removes some logcat spam.
* Comment and whitespace corrections.

Change-Id: I83fb8644331ae1072d6a8dae9c041da92073089f
This commit is contained in:
Jesse Hall
2011-12-01 10:51:17 -08:00
parent 93d610d59a
commit a592d9c043
6 changed files with 8 additions and 20 deletions

View File

@@ -1,17 +1,5 @@
This directory contains the modules related to hardware OpenGL ES emulation. This directory contains the modules related to hardware OpenGL ES emulation.
For now, this feature is experimental, and *nothing* will be built unless
you define BUILD_EMULATOR_OPENGL in your environment, for example with:
export BUILD_EMULATOR_OPENGL=true
You can also define the following to enable the "gralloc" module, which
corresponds to system-wide GLES emulation (by default, only a specific set
of applications are enabled, see below):
export BUILD_EMULATOR_OPENGL_DRIVER=true
I. Overview of components: I. Overview of components:
========================== ==========================

View File

@@ -77,7 +77,7 @@ bool createOpenGLSubwindow(FBNativeWindowType window,
bool destroyOpenGLSubwindow(); bool destroyOpenGLSubwindow();
// //
// setOpenGLDisplatRotation - // setOpenGLDisplayRotation -
// set the framebuffer display image rotation in units // set the framebuffer display image rotation in units
// of degrees around the z axis // of degrees around the z axis
// //

View File

@@ -1,8 +1,8 @@
#include<GLcommon/GLESvalidate.h> #include <GLcommon/GLESvalidate.h>
#include<GLES/gl.h> #include <GLES/gl.h>
#include<GLES/glext.h> #include <GLES/glext.h>
#include<GLES2/gl2.h> #include <GLES2/gl2.h>
#include<GLES2/gl2ext.h> #include <GLES2/gl2ext.h>
#include <OpenglCodecCommon/ErrorLog.h> #include <OpenglCodecCommon/ErrorLog.h>

View File

@@ -78,7 +78,6 @@ int RenderThread::Main()
int stat = readBuf.getData(); int stat = readBuf.getData();
if (stat <= 0) { if (stat <= 0) {
fprintf(stderr, "client shutdown\n");
break; break;
} }

View File

@@ -46,7 +46,7 @@ will be encoded into :
101, // foo opcode 101, // foo opcode
14, // sizeof(opcode) + sizeof(packet_len) + sizeof(int) + sizeof(short) 14, // sizeof(opcode) + sizeof(packet_len) + sizeof(int) + sizeof(short)
p1, // 4 bytes p1, // 4 bytes
s1 // 4 bytes s1 // 2 bytes
} }
Since foo returns value, the caller is expected to read back the return packet from the server->client stream. The return value in this example is in thus the return packet is: Since foo returns value, the caller is expected to read back the return packet from the server->client stream. The return value in this example is in thus the return packet is:

View File

@@ -81,6 +81,7 @@ size_t glUtilsParamSize(GLenum param)
switch(param) switch(param)
{ {
case GL_DEPTH_TEST:
case GL_DEPTH_FUNC: case GL_DEPTH_FUNC:
case GL_DEPTH_BITS: case GL_DEPTH_BITS:
case GL_MAX_CLIP_PLANES: case GL_MAX_CLIP_PLANES: