53
edits
(Created page with "= Debugging SkiaGL = == Debugging the GLES2 Skia backend on desktop == SkiaGL has an object, GrGLInterface, that contains all the function pointers to glFoo functions for it...") |
|||
| Line 1: | Line 1: | ||
= Debugging SkiaGL = | = Debugging SkiaGL = | ||
== Prefs necessary for enabling SkiaGL == | |||
gfx.canvas.azure.accelerated = true | |||
gfx.canvas.azure.backends = skia | |||
For Linux: | |||
layers.acceleration.force-enabled = true | |||
== Debugging the GLES2 Skia backend on desktop == | == Debugging the GLES2 Skia backend on desktop == | ||
| Line 16: | Line 25: | ||
To ensure that we use the GLES2 Skia codepath in desktop Linux. | To ensure that we use the GLES2 Skia codepath in desktop Linux. | ||
== Apitrace == | |||
We can use Apitrace to intercept all GL commands run by Skia and Gecko on a device, and replay/analyse them on desktop. There's already a lot of documentation on Apitrace at https://wiki.mozilla.org/B2G/Debugging_OpenGL and http://www.hackermusings.com/2012/03/debugging-opengl-on-android-without-losing-your-sanity/ | |||
edits