Closed Bug 981185 Opened 6 years ago Closed 2 years ago

Add ability to inspect the context state on each method call


(DevTools Graveyard :: Canvas Debugger, defect)

Not set


(Not tracked)



(Reporter: vporof, Unassigned)



No description provided.
Depends on: 917226
Blocks: gametool
Add option to hide default context state as well, to minimize noise.
We can store these context states in a hash table and display them while users trigger draw-call functions on CanvasDebugger. These are the states that we can process, WebGL:, Canvas2D:

Victor, I don't understand what 'hide default context state' means? Does it mean if the state is not changed and is default state. We needn't to show them?
Flags: needinfo?(vporof)
Yes, it'd be nice to only show relevant context info, meaning context state that doesn't have its default values, unless otherwise requested by the user.
Flags: needinfo?(vporof)
I have some ideas to implement this bug. 

The first one is we could leverage webgl.getParameter() to get the current context state while inspecting it on a method call. We can filter it with default values if we don't want to display them.

The second one is storing these context states in a hash table like call-watcher.js and recording every states while they are changed.
Mass-closing inactive (2 years+) bugs on unmaintained devtools components.
Closed: 2 years ago
Resolution: --- → WONTFIX
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.