Patent ID: 7999830

Claim:
In a device that includes a display, a method for rendering graphics displayed on the display of the device, the method comprising: painting a first frame stored in a first buffer on a display of a device, wherein the first frame includes a first area that was generated for inclusion in the first frame; determining at least a visible portion and a non-visible portion in the first frame; for the visible portion, identifying at least one damaged area in the first frame by traversing a view hierarchy comprising nodes representing the display of the first frame; copying a second area of the first frame to a second frame stored in a second buffer, wherein the second area does not include the at least one damaged area; repairing the at least one damaged areas in the second frame using an optimized command list of instructions, wherein repairing comprises discarding the at least one damaged area if the at least one damaged areas in the first frame is above a threshold number of frames old; and displaying the second frame on the display of the device.