Closed
Bug 653658
Opened 14 years ago
Closed 13 years ago
JavaScript implementation of WebGL MOZ_dom_element_texture extension
Categories
(DevTools :: General, defect, P2)
DevTools
General
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: cedricv, Assigned: cedricv)
References
Details
(Whiteboard: [tilt][patch-needs-updating])
Attachments
(1 file)
12.03 KB,
application/javascript
|
Details |
Implement MOZ_dom_element_texture (#653656) as a JavaScript shim using canvas.drawWindow or similar.
Won't provide awesome performance, but it shouldn't take much time to do and it will validate the extension's semantics, which is a good thing before working on #653657.
Comment 1•14 years ago
|
||
This doesn't seem like a Developer Tools bug?
Assignee | ||
Comment 2•14 years ago
|
||
I think this is, I thought one of us at DevTools (Victor?) would implement this.
This is a JavaScript shim that can be implemented by Tilt directly with currently available APIs... when the extension API is agreed upon (canvas.webgl bug #653656)
Not very efficient but this does not require native implementation, which will take longer to write/review/land.
We will then switch to the efficient native implementation (which is definitely a canvas.webgl bug) as soon it lands with no change.
Comment 3•14 years ago
|
||
yup. I agree with Cedric that this is something that we can and should do. We are the primary consumers of this shim.
Whiteboard: [tilt]
Updated•13 years ago
|
Assignee: nobody → victor.porof
Status: NEW → ASSIGNED
Assignee | ||
Comment 4•13 years ago
|
||
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?
Assignee | ||
Comment 5•13 years ago
|
||
Please ignore comment #4. It was intended for #653657.
Assignee | ||
Updated•13 years ago
|
Assignee: victor.porof → cedricv
Assignee | ||
Comment 6•13 years ago
|
||
Assignee | ||
Comment 7•13 years ago
|
||
Need to update according to comment #26 over at #653656.
- add readWindowTexCoords, always [0.0,0.0, <stride>, 0.0,1.0, <stride>, 1.0,1.0, <stride>, 1.0,0.0] in the shim
- rename MAX_WINDOW_REGION to MAX_WINDOW_REGIONS (+1!)
Whiteboard: [tilt] → [tilt][patch-needs-updating]
Updated•13 years ago
|
Priority: -- → P2
Comment 8•13 years ago
|
||
We're getting closer to making our tools update themselves. This would be a great start for Tilt, maybe we can start playing with this again? See also bug 703910.
Comment 9•13 years ago
|
||
Or we could skip this entirely and focus on the actual bug 653656 and bug 653657. I would somewhat prefer the latter, because wasting time on a JavaScript shim that is temporary anyway and doesn't really help much is probably not a good idea.
Cedric, what do you think?
Assignee | ||
Comment 10•13 years ago
|
||
(In reply to Victor Porof from comment #9)
> Or we could skip this entirely and focus on the actual bug 653656 and bug
> 653657. I would somewhat prefer the latter
> Cedric, what do you think?
I think that's reasonable since the proposed API in bug 653656 seems to be in a good shape now (there's still a few issues to answer/validate tho).
Assignee | ||
Updated•13 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
Comment 11•13 years ago
|
||
Ok, I'll mark bug 653656 as P2.
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•