I need to bilinearly filter an image for use thereafter in JS code. Chrome etc. already do this filtering as part of their browser tab content rendering work, when you scale up tab content.
Options
(1) I can do the filtering myself on the CPU, I have code that does so, but it’s a bit wasteful.
(2) I can write or download a GPU shader to do this for me. This means explicit call out to WebGL or what have you, to do the work.
(3) I can ask Chrome for an already-filtered version of the image, as Chrome would render this if we scale up the image in-tab.
Question
It’s (3) that I’ve often wondered about. Is it possible? Is there any way to access those data buffers that represent already-rendered images in Chrome, from Javascript?
(I’m guessing “no” from a security perspective, but I’m hoping for a “yes” that doesn’t include manual screen grabs.)