Closed
Bug 480497
Opened 16 years ago
Closed 15 years ago
[c3d] getImageData missing
Categories
(Core :: Graphics: CanvasWebGL, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: ilmari.heikkinen, Unassigned)
Details
Attachments
(2 files, 3 obsolete files)
382 bytes,
text/html
|
Details | |
7.54 KB,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2a1pre) Gecko/20090226 Minefield/3.2a1pre
Build Identifier:
There's no getImageData implementation in the 3d canvas. GetImageData should read from the visible image on the pbuffer surface.
Reproducible: Always
Steps to Reproduce:
1. gl.getImageData(0,0,1,1)
Actual Results:
Error, no getImageData method.
Expected Results:
Should have returned an imagedata object {width:1, height:1, data:[r,g,b,a]}.
Reporter | ||
Comment 1•16 years ago
|
||
Implementations for GetImageData and GetInputStream adapted
from nsCanvasRenderingContext2D.cpp
ToDataURL doesn't work, probably because ToDataURLImpl in
content/html/content/src/nsHTMLCanvasElement.cpp
has the 2D context assumption hardcoded
( GetContext(NS_LITERAL_STRING("2d"), getter_AddRefs(context)) )
Reporter | ||
Comment 2•16 years ago
|
||
Reporter | ||
Comment 3•16 years ago
|
||
Attachment #364482 -
Attachment is obsolete: true
Attachment #365146 -
Flags: review?(vladimir)
Reporter | ||
Comment 4•16 years ago
|
||
Attachment #364483 -
Attachment is obsolete: true
Reporter | ||
Updated•16 years ago
|
Attachment #365148 -
Attachment is patch: false
Attachment #365148 -
Attachment mime type: text/plain → text/html
Reporter | ||
Comment 5•16 years ago
|
||
Comment on attachment 365146 [details] [diff] [review]
Updated patch, depends on the glReadPixels patch for CheckSaneSubrectSize
Argh, GetInputStream doesn't use OPERATOR_SOURCE, so you get garbled data.
Attachment #365146 -
Attachment is obsolete: true
Attachment #365146 -
Flags: review?(vladimir)
Reporter | ||
Comment 6•16 years ago
|
||
Component: Canvas: 2D → Canvas: WebGL
Comment 7•15 years ago
|
||
getImageData doesn't exist in the current WebGL spec.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•