Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add float16 support 2d context #41215

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Jul 28, 2023

Allow users to create 2d context with pixelFormat float16, i.e., users
can now create context like: ctx = canvas.getContext('2d',
{pixelFormat: 'float16'}).

Note that the default colortype for getImageData is uint8, so calls like
ctx.getImageData(x, y, w, h) without colortype returns pixels in
format uint8 with context of type float16.

proposal:
w3c/ColorWeb-CG#105

Bug: 1468666

Change-Id: I0309c6d8c573edc84a6a6643ea8ae9563986a242

Reviewed-on: https://chromium-review.googlesource.com/4727326
WPT-Export-Revision: 8d97c9e11e12579660a8b952ce378e8a6499a9ae

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot changed the title a Add float16 support Jul 28, 2023
Allow users to create 2d context with pixelFormat float16, i.e., users
can now create context like: ctx = canvas.getContext('2d',
{pixelFormat: 'float16'}).

Note that the default colortype for getImageData is uint8, so calls like
`ctx.getImageData(x, y, w, h)` without `colortype` returns pixels in
format uint8 with context of type float16.

proposal:
w3c/ColorWeb-CG#105

Bug: 1468666

Change-Id: I0309c6d8c573edc84a6a6643ea8ae9563986a242
@chromium-wpt-export-bot chromium-wpt-export-bot changed the title Add float16 support Add float16 support 2d context Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants