Trace shader compilation for clients other than Android framework

We had added detailed events specifically when running in Android
framework, but other clients (eg, Flutter) would like these, too.

To keep the same semantics in Android, added a new _ALWAYS variant
of TRACE_EVENT0. It works like TRACE_EVENT0, but has the _ALWAYS
semantics in Android.

Bug: skia:11360
Change-Id: I13fd77445e0d2a05e46b75629b37bab5f571b02e
Reviewed-by: Brian Salomon <>
Reviewed-by: Derek Sollenberger <>
Commit-Queue: Brian Osman <>
5 files changed