Ya calling invalidate() right after onDraw() is wrong. 

My experience is only with ICS on JB, but invalidate() will only affect
native/java (e.g. an android rectangle EditText on top of an HTML input).
It has no impact on the HTML/CSS webkit engine.

It's actually the other way around, the webkit engine (c++) calls
viewInvalidate() in c++ when in the DOM  cursor/scrolling etc.. events
happen, this calls invalidate() in java.
The purpose of invalidate() is to force the re-render of *java* components
painted on the canvas.

> -----Original Message-----
> From: Joe Bowser [mailto:[email protected]]
> Sent: November 22, 2012 4:51 PM
> To: dev
> Subject: Re: Android WebView
> 
> OK, so what's the downside of constantly forcing the view to be redrawn
> over and over again?  That's the thing that I would be most concerned
> about.
> >
> >
> > On Thu, Nov 22, 2012 at 3:55 PM, Simon MacDonald
> > <[email protected]>wrote:
> >
> >> Hey all,
> >>
> >> Anything we can use from this SO answer to make the webview faster?
> >>
> >>
> >> http://stackoverflow.com/questions/13500452/android-webview-renders-
> b
> >> lank-white-view-doesnt-update-on-css-changes-or-html


Reply via email to