[b2g] Integrate SurfaceTexture to gl stream

RESOLVED WONTFIX

Status

()

RESOLVED WONTFIX
5 years ago
2 months ago

People

(Reporter: pchang, Unassigned)

Tracking

24 Branch
ARM
Gonk (Firefox OS)
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

5 years ago
As we discussed in rendering work week, it is good to integrate the concept of surfacetexture to b2g to have better locking mechanism and buffer management. And it also enables the capability to use the GPU profilers from chipset vendors, like Adreno profiler/PerfhudES.

Comment 1

5 years ago
(In reply to peter chang[:pchang] from comment #0)
> As we discussed in rendering work week, it is good to integrate the concept
> of surfacetexture to b2g to have better locking mechanism and buffer
> management. And it also enables the capability to use the GPU profilers from
> chipset vendors, like Adreno profiler/PerfhudES.

Out of curiosity, why using surfacetexture concept can enable GPU profiler?
(In reply to C.J. Ku[:CJKu] from comment #1)
> Out of curiosity, why using surfacetexture concept can enable GPU profiler?

Chiajung wrote a nice explanation there:

https://wiki.mozilla.org/Platform/GFX/Gralloc#SurfaceTexture

Let me paste the relevant part:

> Since eglSwapBuffers internally calls dequeueBuffer and queueBuffer, this system removes the need for manual management of GraphicBuffer's as we are currently doing in our B2G code.

> The other benefit of this system is that most BSP vendors provide graphics profilers (e.g. Adreno Profiler from QCOM, PerfHUD ES from nVidia) which recognize the eglSwapBuffers calls as frame boundaries to collect frame-based GL information from the driver to help development and performance tuning.
(Reporter)

Updated

5 years ago
Depends on: 858914
I did not attended the discussion in rendering work week. In the past, I created the attachment 643291 [details] [diff] [review] in Bug 767484. The patch creates ANativeWindow and attach it to GLContext. Is it a similar thing?
Closing as we are not working on Firefox OS anymore.
Status: NEW → RESOLVED
Last Resolved: 2 months ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.