Bug 48673
| Summary: | Implementation Color Read Format RGB565/UNSIGNED_SHORT | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Zhenyao Mo <zmo> |
| Component: | WebGL | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED INVALID | ||
| Severity: | Normal | CC: | cmarrin, enne, kbr |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | PC | ||
| OS: | OS X 10.5 | ||
Zhenyao Mo
WebGL spec:
6.12 Implementation Color Read Format
In the OpenGL ES 2.0 API, the IMPLEMENTATION_COLOR_READ_FORMAT and IMPLEMENTATION_COLOR_READ_TYPE parameters are used to inform applications of an additional format and type combination that may be passed to ReadPixels, in addition to the required RGBA/UNSIGNED_BYTE pair. In the WebGL API, the required implementation read format and type is RGB565/UNSIGNED_SHORT to ensure interoperability. Extensions may be used to add additional allowed read formats.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Zhenyao Mo
On desktop GL backend, we should map RGB565 to RGB, UNSIGNED_SHORT to UNSIGNED_SHORT_5_6_5.
On GLES backend, we should query if the implementation supports RGB565/UNSIGNED_SHORT. If not, we need to use RGBA/UNSIGNED_BYTE and then pack the data to RGB565/UNSIGNED_SHORT.
Zhenyao Mo
Due to spec change, this is no longer valid.