aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android
Commit message (Collapse)AuthorAgeFilesLines
* Update Guava 15.0 -> 17.0Siva Velusamy2014-10-271-9/+7
| | | | Change-Id: If666053e03e67b49c3337129be869ebe996ec58d
* gltrace: Increase launch timeoutSiva Velusamy2014-08-181-1/+1
| | | | | | b/17106700 Change-Id: I584d546502535d5390ca7b24029205895ce97550
* gltrace: Increase TEXTURE_UNIT_COUNT and MAX_VERTEX_ATTRIBSSiva Velusamy2014-08-141-2/+2
| | | | | | | This is a short term workaround until the state information can be updated properly with actual values from the device. Change-Id: I4387613f320deb9a88d3810a81910f348c9839f6
* gltrace: Read pointer arguments in a 64 bit safe waySiva Velusamy2014-01-317-10/+109
| | | | | | | | | | | One of the arguments for glVertexAttribPointer is a pointer. Rather than assuming that this is always encoded as a 32 bit integer, the code now checks whether it is 32 or 64 bit before attempting to access it. This CL also changes the state to keep the pointer as 64 bit. Change-Id: I3cfcc746b76c15409b91fb2f7079940f7cded32f
* Merge "Change import path to sparse array"Siva Velusamy2013-07-292-3/+3
|\
| * Change import path to sparse arraySiva Velusamy2013-07-252-3/+3
| | | | | | | | Change-Id: I9862a6ebc25b4c13488b9fe0451bdfd8f5a6ef26
* | Add clarifying comment.Siva Velusamy2013-07-251-0/+9
| | | | | | | | | | | | | | If data is of float type, then we assume that it is meant for the alpha channel even if it is marked as R/G or B channels. Change-Id: I8a95c3533def4a5bdb2b49e9489674bffb2a0cef
* | Add support for additional ES3 state, primarily for texturesSiva Velusamy2013-07-255-16/+371
|/ | | | | | | | | This CL adds the following to support ES3: - all new constant definitions (GLEnum) - new methods in entries.in - additional state for texture properties Change-Id: Ia43fac49790cc7b07e7c9d295b9915e416a3b2a8
* gltrace: Update protobuf for OpenGL ES3Siva Velusamy2013-06-101-244/+535
| | | | Change-Id: Ifae3f44ec25a57586c7ece08f6281ef048f33290
* ddmlib: Add controls for OpenGL tracing via jdwpSiva Velusamy2012-12-203-6/+153
| | | | | | | | | | | | | | | | Currently, applications have to be launched with gltrace enabled for OpenGL tracing to work. This patch provides the host side support for dynamically enabling/disabling tracing on running apps. At a high level, the functionality is similar to traceview: - ClientData#FEATURE_OPENGL_TRACING indicates whether the VM on the device supports this feature. - If the feature is supported, then JDWP is used to send the enable or disable messages. - Users can trigger OpenGL tracing via a toolbar item in the DDMS device view. Change-Id: Icf5e5eade74f94cf6a74ff793533f75f1853731f
* gltrace: Refresh tree view in a separate task.Siva Velusamy2012-12-072-32/+106
| | | | | | | | | | | | | | When the currently displayed frame is changed, we immediately refresh the tree displaying the list of calls, and the frame summary view displaying the frame buffer as part of the frame change event handler. This CL moves these two operations to a separate task that is scheduled after a short delay (250 ms). This allows us to combine multiple frame change events and respond just once for all of them together. Change-Id: I4edade1e55cbd7394cba03d97b2ee61ca3a258b6
* Support non RGBA texturesSiva Velusamy2012-10-124-8/+70
| | | | | | | | | | Textures that are not of type unsigned byte need to be unpacked into unsigned byte (1 byte per channel) first. This CL also increases the protobuf message size and fixes an NPE that happens when the trace is empty. Change-Id: I01f20d6292425dbd553f006947dfd1024c6503c6
* gltrace: ES1 also supports array buffersSiva Velusamy2012-10-111-0/+1
| | | | Change-Id: I448d7962e9b709658095240160f16abc8b040ecc
* gltrace: Show scroll bars.Siva Velusamy2012-10-011-1/+2
| | | | Change-Id: I2ae46d99d65e527840ef4536665a15453b1fef7b
* gltrace: Preserve alpha informationSiva Velusamy2012-09-212-36/+41
| | | | | | | | | While reading in framebuffer data into an SWT ImageData, the alpha values have to be set explicitly. This CL also moves toolbars to the right of filter bar. Change-Id: I628752382c82ff9df729590459fba09bf4f340b0
* Allow users to save current GL state to a text file.Siva Velusamy2012-09-218-0/+174
| | | | Change-Id: I7140f8e71167dc4a8fd8481782f29822844e28c7
* gltrace: Do not save thumbnail images in memorySiva Velusamy2012-09-215-67/+5
| | | | | | | | | | | | These were originally saved with the idea that if the trace file itself was overwritten after it was parsed, we could display the thumbnail image atleast since we don't have access to the full image anymore. However, this hasn't turned out to be a common case, but it just uses up memory for large traces. Change-Id: I1152e23f29563f47b6818b89c5a50bf5ce2a5084
* gltrace: Allow exporting current frame to a text file.Siva Velusamy2012-09-191-9/+126
| | | | | | Also adds toolbar actions for expanding/collapsing all tree nodes. Change-Id: I410b23fb4c5ab90351b969296f2620fe36726785
* gltrace: Allow ability to save imagesSiva Velusamy2012-09-195-7/+110
| | | | | | | | Add a toolbar item that allows saving images displayed in the view. This allows saving of frame buffer image at the point of eglSwap, glDraw, and the texture image. Change-Id: Ie1df75e41fc12981c2b7f5919caeb39b68812cff
* gltrace: Better progress indicatorSiva Velusamy2012-09-181-1/+16
| | | | | | | Use the percent of file parsed as an indicator rather than having an indeterminate progress bar. Change-Id: I7a904e007c6ec195cb0e0bb2de7483e3b585489b
* Fix build: InstanceScope.INSTANCE is not available in 3.6Siva Velusamy2012-09-171-2/+2
| | | | Change-Id: If96389ad844e19eeed86008edc40bc81778dd0d7
* gltrace: Allow fully qualified activity namesSiva Velusamy2012-09-174-10/+43
| | | | | | | | | | Add a separate checkbox to allow the user to indicate whether the input activity name is fully qualified. In such a case, don't prefix the activity name with a period. Also fixes a formatting issue with the trace file size. Change-Id: Ib4bf2b716e218e86a273200748fbd06c86918ce3
* Merge "gltrace: Support OES_EGL_image_external GL extension"Siva Velusamy2012-08-174-4/+10
|\
| * gltrace: Support OES_EGL_image_external GL extensionSiva Velusamy2012-08-164-4/+10
| | | | | | | | | | | | | | The OES_EGL_image_external extension adds an additional state, TEXTURE_EXTERNAL, to each texture unit. Change-Id: I78c4cc1b1344a393183fd9004b5d85e1837da5bc
* | Merge "gltrace: Improve font width detection."Siva Velusamy2012-08-172-3/+7
|\ \
| * | gltrace: Improve font width detection.Siva Velusamy2012-08-162-3/+7
| | | | | | | | | | | | | | | | | | | | | Set a floor value for font width when used to determine how wide widgets should be. Change-Id: I3b7f1e75051032e9e234c92360903c161d233832
* | | Merge "gltrace: Draw a border around image displayed in canvas."Siva Velusamy2012-08-171-1/+13
|\ \ \ | |/ /
| * | gltrace: Draw a border around image displayed in canvas.Siva Velusamy2012-08-151-1/+13
| | | | | | | | | | | | | | | | | | Helps frame the image when the image is mostly transparent. Change-Id: I933247e6ee4b634ecfe26c3dea2408d57f930047
* | | Merge "gltrace: Default to displaying texture mipmap level 0."Siva Velusamy2012-08-171-10/+48
|\ \ \ | |/ /
| * | gltrace: Default to displaying texture mipmap level 0.Siva Velusamy2012-08-151-10/+48
| |/ | | | | | | | | | | | | | | | | | | | | | | Textures can have multiple mipmap levels. To view the uploaded texture requires that you explicitly select a particular mipmap level. However, in many cases, there is only 1 level (level 0). In such cases, rather than having to drill down the hierarchy and then select mipmap 0 to view the texture, this CL allows just selecting the texture to trigger a display of the zeroth mipmap if it is available. Change-Id: I9f7f8f10f99945377c6cb7dfab19db75cea383e0
* | gltrace: open trace file immediately after captureSiva Velusamy2012-08-157-46/+197
|/ | | | | | | | | | | - Automatically open the trace file after trace has been captured rather than user having to manually open it. - If the file is already open, then the editor needs to be able to just update its internal model. Likewise for all the associated views (Details, State and Summary views). - Fix a few NPE's that may occur if the trace file is invalid. Change-Id: I2c311bdd93fe4214fa2ebfbc49ff40f7cb5c2170
* Remove older gldebugger implementation.Siva Velusamy2012-08-1433-9350/+13
| | | | Change-Id: I3eff6c3710a7bb642619876a8f3f728e08fead6f
* gltrace: restore checkbox settings between invocationsSiva Velusamy2012-08-141-10/+10
| | | | Change-Id: Ic910902519eed907a184f5f808aa2aabaa558fa9
* gltrace: Skip framebuffers that cannot be retrieved.Siva Velusamy2012-08-141-2/+19
| | | | | | | | Rather than failing to parse the entire file, just ignore the fb image if it can't be parsed. This should allow viewing the rest of the data in the trace except for just the image. Change-Id: I0d875cf45e09a29022b5b9a18d33601bb92225a5
* Cleanup dos2unix in plugins *.java (ADT, GLd, NDK)Raphael Moll2012-08-071-130/+130
| | | | Change-Id: Ic54d7e5b77bf6912b54855c5b30d8fcf790ff311
* gltrace: cleanup collect trace flowSiva Velusamy2012-06-143-27/+132
| | | | | | | | | | | | | | | | This CL improves the initial flow to obtain the trace options from the user and launch the application in trace mode. - A separate text box is provided if a non-default activity should be launched for tracing. - If that application to trace is already running, it needs to be killed before starting it in trace mode. The tracer will now wait (upto a timeout value) until it detects that the application was killed before launching it in trace mode. - Similarly, the tracer waits until it knows that the app has launched before attempting to connect to it. - Checks if device is at API level 16. Change-Id: Iea5be6d76b6e78ea68a05b893aef993099363555
* Provide readable device name rather than just serial numberSiva Velusamy2012-06-132-12/+3
| | | | | | | | | | | | | | | | | There are a number of places where we need to display a device name. Currently, DDMS shows the serial number + manufacturer/model if available, but in other instances, we just show the serial number. This CL provides a getName() method in the IDevice interface so that all the locations which require a human readable name can use this. The name is typically of the form manufacturer-model-serial. If the manufacturer/model strings are not available, then those fields are omitted, so it will show just the serial number. Change-Id: I80ef7b48a4c7c8587042c1227c932251e18dba2e
* Merge "Minor UI cleanup to trace options dialog"Siva Velusamy2012-06-121-9/+39
|\
| * Minor UI cleanup to trace options dialogSiva Velusamy2012-06-121-9/+39
| | | | | | | | | | | | | | | | - Fix default message shown for activity - Make trace file path text editable - Save/Restore last used device Change-Id: I762a054e16c8ac5418375a5ac2086add7f631e45
* | Find Dialog: allow control over the default action.Siva Velusamy2012-06-081-1/+3
|/ | | | | | | | | | This CL allows the default action to be either of the "Find Next" or the "Find Previous" buttons in the find dialog. Typically, in logcat you want to find previous, while in gltrace view you want to find next. Change-Id: Ie11cbd8a7987b8011ec2ee3664034e9ecfc4e24b
* gltrace: Add support for mipmap texturesSiva Velusamy2012-06-066-20/+80
| | | | Change-Id: I39782b06d6ebbfdde55cc76ed3c09424fef3dcda
* gltrace: Add support for Copy, Select All and Find actions.Siva Velusamy2012-06-051-1/+110
| | | | Change-Id: Iccf4150b48eb2910a47d1c4bf31e3b3252e20628
* gltrace: Add a special keyword to not launch any activities.Siva Velusamy2012-06-011-2/+7
| | | | | | This is a hack to allow tracing of processes like surfaceflinger. Change-Id: I4b542ac95487ed2488796944c98d2d317c3ee428
* gltrace: Update trace control protocol.Siva Velusamy2012-05-161-0/+3
| | | | | | | The trace control protocol requires that the size of the command be sent before the command itself. Change-Id: I75aa26289fcdb8cd23e1ee3a8a088b85599e186c
* gltrace: Kill app manually instead of using am start -SSiva Velusamy2012-05-141-1/+11
| | | | Change-Id: I5a0ec359145e815a2437ef766843d2cb5267c795
* Fix incorrect transformations for glBufferSubDataSiva Velusamy2012-05-142-4/+9
| | | | Change-Id: I8b78a7df6cd2e40d19ff811ced3e0e7cbe3298c6
* gldebugger: Check for zero sized framebufferSiva Velusamy2012-05-101-1/+14
| | | | Change-Id: Ic6e98ddf98ec212eaff273177c0910456b9dba9e
* gltrace: Launch activity using am start --opengl-traceSiva Velusamy2012-03-121-41/+34
| | | | | | | | | This patch changes the way the app is launched for OpenGL Tracing to use the newly added --opengl-trace option to am start. It also makes sure that any errors that occur during launching are reported back to the user. Change-Id: I0fc308f7309b79ec33096678d4d33077a59724f0
* gltrace: Display state transformation errors in a console.Siva Velusamy2012-03-0616-33/+182
| | | | | | | | | This patch adds a Eclipse Message Console for GLTrace View. Errors that occur during creation of state transformations, and during application of these transformations are displayed in this console. Change-Id: If8686217f7809efeea39d088d70ab665af674930
* gltrace: Add support for glVertexAttribPointerData() calls.Siva Velusamy2012-02-297-94/+212
| | | | | | | | This patch adds initial support for glVertexAttribPointerData() calls. A detail provider for this call displays the vertex attributes that were actually sent at the time of glVertexAttribPointer() call. Change-Id: I79fe961ce1dcc15c4601ec213d09625986775ae5