]> git.proxmox.com Git - mirror_novnc.git/commit
Move render queue processing to Display and use requestAnimationFrame
authorJoel Martin <github@martintribe.org>
Thu, 17 May 2012 16:13:08 +0000 (11:13 -0500)
committerJoel Martin <github@martintribe.org>
Thu, 17 May 2012 16:13:08 +0000 (11:13 -0500)
commit34d8b844ae225a4b1a20b79506be8f543bda9d10
tree7c6f5972960c481ff96939893ecdbca7ccbe41cc
parenta0726a4b56b07dc2392f5ec9f6f0005e90df4502
Move render queue processing to Display and use requestAnimationFrame

The imgQ code in RFB should be a generic rendering queue system in
Display.

The reason for the render queue in the first place is that images
loaded from raw data URI strings aren't immediately ready to display
so we have to wait for them to complete 'loading'. However, when data
URI images are mixed with other types of rendering actions then things
can get out of order. This is the reason for the rendering queue.

Currently this only keeps display actions for tight and tightPNG
related actions in order (because they use a mix of fills, raw pixel
data and data URI images).
include/display.js
include/rfb.js
include/util.js