summaryrefslogtreecommitdiffstats
path: root/opengl/libs/GLES2_dbg/src/header.h
diff options
context:
space:
mode:
authorDavid Li <davidxli@google.com>2011-04-08 18:41:00 -0700
committerDavid Li <davidxli@google.com>2011-04-12 15:56:10 -0700
commite2ad4d0e3748c2f0180d24d1b3468aac79adac3a (patch)
treebfa8647edf051ce768ee9c855d7d488924fc1377 /opengl/libs/GLES2_dbg/src/header.h
parentce30eb8a90a1ac458e15e773057a8a73b0918ae6 (diff)
downloadframeworks_base-e2ad4d0e3748c2f0180d24d1b3468aac79adac3a.zip
frameworks_base-e2ad4d0e3748c2f0180d24d1b3468aac79adac3a.tar.gz
frameworks_base-e2ad4d0e3748c2f0180d24d1b3468aac79adac3a.tar.bz2
GLES2Dbg: add EXTEND_AFTER_CALL_Debug_* macro and improve protocol
To allow auto generate of Debug_glReadPixels function. Also added AfterGeneratedCall messag type, and client override of expectResponse for improving protocol. Also implemented callers for client to get shader/program iv & infolog Change-Id: I8426de0be4b7ffcb8b2b4f063ad85d19a9d2d72e Signed-off-by: David Li <davidxli@google.com>
Diffstat (limited to 'opengl/libs/GLES2_dbg/src/header.h')
-rw-r--r--opengl/libs/GLES2_dbg/src/header.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/opengl/libs/GLES2_dbg/src/header.h b/opengl/libs/GLES2_dbg/src/header.h
index 9d51e8e..83ddf70 100644
--- a/opengl/libs/GLES2_dbg/src/header.h
+++ b/opengl/libs/GLES2_dbg/src/header.h
@@ -75,7 +75,7 @@ struct GLFunctionBitfield {
struct DbgContext {
private:
static const unsigned int LZF_CHUNK_SIZE = 256 * 1024;
- char * lzf_buf; // malloc / free; for lzf chunk compression
+ char * lzf_buf; // malloc / free; for lzf chunk compression and other uses
// used as buffer and reference frame for ReadPixels; malloc/free
unsigned * lzf_ref [2];
@@ -128,6 +128,8 @@ public:
return ptr == lzf_ref[lzf_readIndex];
}
void CompressReadPixelBuffer(std::string * const outStr);
+ char * GetBuffer(); // allocates lzf_buf if NULL
+ unsigned int GetBufferSize(); // allocates lzf_buf if NULL
void glUseProgram(GLuint program);
void glEnableVertexAttribArray(GLuint index);