mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Added support in CInitOptions to pass logging/filter modules to VSLogger.
This commit is contained in:
parent
068997cd30
commit
49934c0335
4 changed files with 53 additions and 7 deletions
|
@ -69,6 +69,28 @@ Servo::Servo(hstring url, GLsizei width, GLsizei height, float dpi,
|
|||
o.enable_subpixel_text_antialiasing = false;
|
||||
o.vr_pointer = NULL;
|
||||
|
||||
// 7 filter modules.
|
||||
/* Sample list of servo modules to filter.
|
||||
static char *pfilters[] = {
|
||||
"servo",
|
||||
"simpleservo",
|
||||
"simpleservo::jniapi",
|
||||
"simpleservo::gl_glue::egl",
|
||||
// Show JS errors by default.
|
||||
"script::dom::bindings::error",
|
||||
// Show GL errors by default.
|
||||
"canvas::webgl_thread",
|
||||
"compositing::compositor",
|
||||
"constellation::constellation",
|
||||
};
|
||||
*/
|
||||
|
||||
// Example Call when *pfilters[] is used:
|
||||
// o.vslogger_mod_list = pfilters; // servo log modules
|
||||
// o.vslogger_mod_size = sizeof(pfilters) / sizeof(pfilters[0]) -1; // Important: Number of modules in pfilters
|
||||
o.vslogger_mod_list = NULL;
|
||||
o.vslogger_mod_size = 0;
|
||||
|
||||
sServo = this; // FIXME;
|
||||
|
||||
capi::CHostCallbacks c;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue