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:
@@ -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:
|
||||||
==========================
|
==========================
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user