主权项 |
1. A method comprising:
by a thread of a computing device, beginning a frame buffer fill task for a displayable region of a content layout; by a computing device, identifying a portion of a display object to pre-generate, wherein the display object is associated with a portion of the content layout that is outside of the displayable region; by the computing device, monitoring the thread to identify a start point of a next window of idle time, the next window of idle time comprising the next opportunity when the thread will be idle for a minimum period of time, the start point being based at least in part on an estimated period of time required to perform the frame buffer fill task; by the computing device, adding one or more selected tasks to a message queue for execution by the thread upon completion of the frame buffer fill task, wherein each of the selected tasks pre-generates content for at least one selected element of the display object; by the computing device, upon completion of the frame buffer fill task, beginning execution of the selected tasks; and by the computing device, returning the display object. |