Closed Bug 653657 Opened 13 years ago Closed 11 years ago

Implement WebGL MOZ_window_region_texture extension

Categories

(Core :: Graphics: CanvasWebGL, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: cedricv, Assigned: cedricv)

References

Details

(Whiteboard: [tilt] webgl-extension)

      No description provided.
Assignee: nobody → cedricv
Status: NEW → ASSIGNED
Depends on: 653656
We're running out of time on getting this in for the final version of Tilt. Any progress to report?
Whiteboard: [tilt]
This is a placeholder for the native/optimized implementation of the extension, reusing underlying textures (or FBOs?) when possible.

First we need to all agree on a sane design for #653656, and it does not seem necessary for now as Tilt's framerate seems quite acceptable as it does not do interactive refresh yet afaik (the native implementation will be probably needed for interactive refresh rates - especially on pages using canvas or video heavily).

Additionally it might not make sense to implement this natively before Azure is ready, depending whether or not access to underlying gfx objects is going to significantly change. Benoit?
(In reply to comment #2)
> This is a placeholder for the native/optimized implementation of the
> extension, reusing underlying textures (or FBOs?) when possible.

It's really textures, not FBOs, that you want to reuse here. This kind of texture sharing is already used all over the place for this kind of optimizations (avoiding readbacks).

When the DOM element that you want to access is its own layer, which is the case for a <img> or <video> or <canvas> element, you can get the texture from the Layer right away today. The hooks to get the textures are already in place.

When the element does not have its own layer and is painted into a larger layer, I'm not even sure what the wanted result is. Anyway, in that case that layer would be a ThebesLayer until Azure changes that name which afaik isn't happening soon. If the DOM element has a well-defined location within the layer, maybe the layers API allows you to query it, I don't know.

> Additionally it might not make sense to implement this natively before Azure
> is ready, depending whether or not access to underlying gfx objects is going
> to significantly change. Benoit?

Azure should not really affect you since it's only an API for drawing stuff into layers, and you're only concerned with stuff that's already drawn in layers. You come into play after Azure has left the game. It could be that ThebesLayer gets changed/renamed at some point as Azure takes over, I don't know. For now, even on central in gfx/layers/d3d10 there is only a ThebesLayerD3D10, nothing there about Azure.
Thanks Benoit. I've posted more thoughts in #653656.
Summary: Implement WebGL MOZ_dom_element_texture extension → Implement WebGL MOZ_window_region_texture extension
No longer blocks: webgl-ext
Whiteboard: [tilt] → [tilt] webgl-extension
Inheriting WONTFIX from discussion in bug 653656.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.