Joe Drew
unread,Nov 21, 2011, 9:40:39 PM11/21/11You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to James Ho, Ali Juma, Benoit Girard, mozilla...@lists.mozilla.org, Chris Jones, Kan-Ru Chen, Jeff Muizelaar, mozilla-de...@lists.mozilla.org
On 2011-11-21 9:28 PM, James Ho wrote:
> Do you guys have any suggestions of Kan-Ru's question? If there's no
> other comment, we tend to take option 3 "Directly load from
> GLContextProviderEGL" and add apitrace in the debug build of b2g.
Both Benoit and Jeff Muizelaar are off this week; I've CC'd Ali Juma,
who has recently been working with Benoit on the GLES implementation,
and may have more substantive comments.
As an only sometimes-developer on Gecko's GLES support, I don't have a
huge vested interest, but I'd certainly prefer something that lets me
only change a preference vs. LD_PRELOADing, etc.
joe
> 於 11/17/11 4:07 PM, Kan-Ru Chen 提到:
>> Hi,
>>
>> Here is an update.
>>
>> Currently I have built three wrappers for apitrace and there are many
>> ways you can plug the wrappers into the chain:
>>
>> 1. LD_PRELOAD
>>
>> If it's a native app that uses FramebufferNativeWindow then you can use
>> LD_PRELOAD to load the wrappers, *from the commandline.*
>>
>> 2. As an EGL driver
>>
>> Modify /system/lib/egl/egl.cfg so Android's libEGL.so will load apitrace
>> wrappers; arrows below mean "load library X":
>>
>> app--> libEGL.so --> libEGL_apitrace.so --> egltrace.so --> libEGL_mali.so
>> `-> libGLESv2.so`-> libGLESv2_apitrace.so `-> libGLESv2_mali.so
>>
>> I get a full screen composition trace of fennec by this combination, but
>> I'm not sure whether it's rendered by fennec or lower level surface.
>>
>> 3. Directly load from GLContextProviderEGL
>>
>> Attached patch will check the existence of "gfx.apitrace.path"
>> preference and load egltrace.so from the path. Then when
>> EGL_APITRACE_enable_tracing extension exists you can use the function
>> eglEnableTracingAPITRACE to control the tracing.
>>
>> I don't know many portions are rendered by GL in fennec now, but I only
>> see calls from WebGL.
>>
>> Now the question is how do we want to integrate apitrace.
>>
> _______________________________________________
> dev-platform mailing list
>
dev-pl...@lists.mozilla.org
>
https://lists.mozilla.org/listinfo/dev-platform