diff options
author | David Li <davidxli@google.com> | 2011-04-08 18:45:45 -0700 |
---|---|---|
committer | David Li <davidxli@google.com> | 2011-04-12 15:56:10 -0700 |
commit | e7180e8644caf96a166ed71dd8da877fc8b72047 (patch) | |
tree | e9650a79f7fcebfb7904802614ef6e8ee15153c7 /opengl/libs/GLES2_dbg/generate_debugger_message_proto.py | |
parent | 27f130a292683278b721399341d7c4e36009ec8b (diff) | |
download | frameworks_base-e7180e8644caf96a166ed71dd8da877fc8b72047.zip frameworks_base-e7180e8644caf96a166ed71dd8da877fc8b72047.tar.gz frameworks_base-e7180e8644caf96a166ed71dd8da877fc8b72047.tar.bz2 |
GLES2Dbg: added CaptureDraw and CaptureSwap options
CaptureDraw specifies how many glDrawArrays/Elements to glReadPixel
CaptureSwap similarly applies to eglSwapBuffers
Change-Id: Ie7a7e3392b4ecdc0659dcee04f4bab97c35267dc
Signed-off-by: David Li <davidxli@google.com>
Diffstat (limited to 'opengl/libs/GLES2_dbg/generate_debugger_message_proto.py')
-rwxr-xr-x | opengl/libs/GLES2_dbg/generate_debugger_message_proto.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/opengl/libs/GLES2_dbg/generate_debugger_message_proto.py b/opengl/libs/GLES2_dbg/generate_debugger_message_proto.py index 62ccb1a..914ea24 100755 --- a/opengl/libs/GLES2_dbg/generate_debugger_message_proto.py +++ b/opengl/libs/GLES2_dbg/generate_debugger_message_proto.py @@ -127,16 +127,21 @@ message Message ReferencedImage = 0; // for image sourced from ReadPixels NonreferencedImage = 1; // for image sourced from ReadPixels }; - optional DataType data_type = 23; // most data types can be inferred from function - optional int32 pixel_format = 24; // used for image data if format and type - optional int32 pixel_type = 25; // cannot be determined from arg + // most data types can be inferred from function + optional DataType data_type = 23; + // these are used for image data when they cannot be determined from args + optional int32 pixel_format = 24; + optional int32 pixel_type = 25; + optional int32 image_width = 26; + optional int32 image_height = 27; optional float time = 11; // duration of previous GL call (ms) enum Prop { - Capture = 0; // arg0 = true | false + CaptureDraw = 0; // arg0 = number of glDrawArrays/Elements to glReadPixels TimeMode = 1; // arg0 = SYSTEM_TIME_* in utils/Timers.h ExpectResponse = 2; // arg0 = enum Function, arg1 = true/false + CaptureSwap = 3; // arg0 = number of eglSwapBuffers to glReadPixels }; optional Prop prop = 21; // used with SETPROP, value in arg0 optional float clock = 22; // wall clock in seconds |