Closed
Bug 784867
Opened 13 years ago
Closed 13 years ago
Copy WebGL frames to gralloc for B2G
Categories
(Core :: Graphics: CanvasWebGL, defect)
Core
Graphics: CanvasWebGL
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: jgilbert, Assigned: jgilbert)
References
Details
Attachments
(1 file, 3 obsolete files)
Until we get better in bug 716859, we should extend what we do for OMTC WebGL publishing to work with gralloc on B2G.
| Assignee | ||
Comment 1•13 years ago
|
||
A WIP based on a conversation with cjones.
Assignee: nobody → jgilbert
| Assignee | ||
Comment 2•13 years ago
|
||
Attachment #654430 -
Attachment is obsolete: true
Attachment #654450 -
Flags: review?(jones.chris.g)
Comment on attachment 654450 [details] [diff] [review]
hack it into the existing (maybe) gralloc code
This doesn't compile.
Attachment #654450 -
Flags: review?(jones.chris.g) → review-
| Assignee | ||
Comment 4•13 years ago
|
||
I can't seem to flash my phone today. All I get is 'mozilla' in the bottom-right of the screen, and it doesn't seem to do anything. (with or without this patch)
Attachment #654450 -
Attachment is obsolete: true
| Assignee | ||
Comment 5•13 years ago
|
||
So on my Nexus S, this is slightly slower. On this device, we don't save any copy (or upload) by doing this, because we currently ReadPixels into a Gralloc buffer we later sample from as a texture.
This patch will generally use CopyTexSubImage, unless you flip the pref |gl.blit-draw-not-copy| to true. (default: false) If true, it'll do a RTT of the screen texture onto the Gralloc buffer, which (for me) is slower-still.
So, for the Nexus S, it seems that this doesn't win us anything. It's possible that there is some device where it does, but I think it's relatively unlikely. (No harm in trying, though)
Attachment #654894 -
Attachment is obsolete: true
Blocks: 835165
I think given that we have bug 716859 landed now, and the remaining gralloc stuff being done in bug 843599, this is probably wontfix.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•