Closed GoogleCodeExporter closed 9 years ago
Attached file instead.
Original comment by andr...@cetrez.com
on 15 Jun 2010 at 9:58
Attachments:
Hmm, that's odd. I'll check the code later.
Original comment by revu...@gmail.com
on 15 Jun 2010 at 11:04
I'm currently working around this by issuing "ctx.isPointInPath(0,0);" when I'm
done rendering. That seems to stop it from being weird, although obviously it's
not really a solution.
Original comment by andr...@cetrez.com
on 15 Jun 2010 at 11:09
I understand the cause of the problem. The squares merely flicker, and they
don't change their orders.
Some Canvas commands such as isPointInPath() and getImageData() flush the
command buffer since these commands must check the latest state of Canvas.
So, in the case of your example, the first nine squares are rendered
immediately. But the last square is rendered after a while because the last
fill() command is executed after the last isPointInPath().
That's the reason why the flicker stops when you add "ctx.isPointInPath(0,0);".
Original comment by revu...@gmail.com
on 16 Jun 2010 at 9:15
This issue was closed by revision r86.
Original comment by revu...@gmail.com
on 20 Jun 2010 at 8:21
I mistyped when I committed r86. r86 fixed issue 3. This issue is not fixed.
Original comment by revu...@gmail.com
on 20 Jun 2010 at 8:30
Original issue reported on code.google.com by
andr...@cetrez.com
on 15 Jun 2010 at 9:58