[webkit-dev] Event firing and repainting of saved Images in webkit

ankit srivastav ank.cpp at gmail.com
Wed Mar 4 20:02:07 PST 2015


Hi Max

Thanks for your reply.

But may be you took the question into a different direction. We are trying
to make changes into Webkit code, so that the functionality works for each
and every application/Webpage.

We have to achieve two things:
1) An event {from within the webkit} when the whole Web Page is rendered.
2) To Store images, so that after page gets rendered ,we can repaint them
again after doing some modifications.

The problem is- Is it possible to repaint only the saved images again ?
And if yes is their any way to do that.

TIA..




On Wed, Mar 4, 2015 at 8:24 PM, Myles C. Maxfield <mmaxfield at apple.com>
wrote:

> It might also be worth investigating if you can implement your entire
> algorithm in JavaScript using canvas. The performance might be acceptable.
> That would greatly simplify your code.
>
> > On Mar 4, 2015, at 6:50 AM, Myles C. Maxfield <mmaxfield at apple.com>
> wrote:
> >
> > You might want to look at how the onLoad JavaScript event gets fired as
> well as how ImageLoader updates the contents of images as more bytes are
> downloaded. Investigating how animated gifs cause repaints might also be
> helpful.
> >
> > As far as the control of reacting to page load and setting up timers,
> you might want to investigate doing that part in script, and implementing
> only the image manipulation algorithm itself in native code.
> >
> >> On Mar 4, 2015, at 12:44 AM, ankit srivastav <ank.cpp at gmail.com> wrote:
> >>
> >> Hi All,
> >>
> >> We are working on manipulation of images(falling under a certain
> criteria) on a web page, but the algorithms being used for the purpose are
> a bit slow.
> >>
> >> So, the idea is to save the images/renderImage objects and continue to
> render/paint the entire page  and once the page has been loaded/rendered we
> will trigger an event which will read the saved images one by one, apply
> the algorithm on them, and then finally repaint them.
> >>
> >> For this mechanism to work correctly we need :
> >> 1) An event after the whole page will get rendered.
> >> 2) A procedure by which we can trigger the repainting of the saved
> images.
> >>
> >> Will it be possible to achieve this using events? If yes, what could be
> the possible approach?
> >>
> >> Thanks and Regards
> >> Ankit
> >> _______________________________________________
> >> webkit-dev mailing list
> >> webkit-dev at lists.webkit.org
> >> https://lists.webkit.org/mailman/listinfo/webkit-dev
> > _______________________________________________
> > webkit-dev mailing list
> > webkit-dev at lists.webkit.org
> > https://lists.webkit.org/mailman/listinfo/webkit-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-dev/attachments/20150305/82d66d56/attachment.html>


More information about the webkit-dev mailing list