Bug 1048667. Small vsync framework. r=roc