Abstract:
Methods, systems, and apparatus, including computer programs encoded on a computer storage medium, for defining a sequence of animations for changing visible and non-visible values of objects. One or more programmatic calls is received, the calls including animations and sequencing for their performance. Consecutive frames of the animations are displayed according to the animations and the sequencing defined in the programmatic calls. Non-displayed properties of the objects in the animations are changed in coordination with the displaying of the consecutive frames.
Abstract:
A device that includes one or more processors may determine a configuration of a display region of the device. The device may also receive a request to perform an animation of a virtual object within the display region. The request may be indicative of a given duration for the animation based on the animation being performed within a given display region having a given configuration. The device may also modify the given duration to determine an adjusted duration for the animation based on a comparison between the configuration and the given configuration. The device may also perform the animation within the display region based on the animation having the adjusted duration.
Abstract:
A method for storing information may include determining whether a received data object fits inside a particular one of a plurality of free blocks in a memory bitmap. Each of the plurality of free blocks may include a column of the memory bitmap with a top margin, a bottom margin, and a predetermined width. If the received data object fits, the received data object may be stored in the particular one of the plurality of free blocks, starting at the margin of the particular one of the plurality of free blocks. The particular one of the plurality of data blocks may be resized by moving the margin to start below or next to the stored received data object. The determining may include, for each of the plurality of free blocks, a height of the received data object may be compared with a height of each of the free data blocks.
Abstract:
A method for storing information may include determining whether a received data object fits inside a particular one of a plurality of free blocks in a memory bitmap. Each of the plurality of free blocks may include a column of the memory bitmap with a top margin, a bottom margin, and a predetermined width. If the received data object fits, the received data object may be stored in the particular one of the plurality of free blocks, starting at the margin of the particular one of the plurality of free blocks. The particular one of the plurality of data blocks may be resized by moving the margin to start below or next to the stored received data object. The determining may include, for each of the plurality of free blocks, a height of the received data object may be compared with a height of each of the free data blocks.
Abstract:
Mechanisms for more efficiently and accurately performing anti-aliasing techniques. A bounding box for a line can be generated that includes both a central region of the line and one or more boundary regions that have various levels of opacity. Vertices for the bounding box can be provided to any of a variety of appropriate entities to interpolate pixel locations within the bounding box and to determine various levels of opacity for pixels, such as vertex shaders and/or pixel shaders. Various techniques can be used to determine a pixel's membership value within one or more of the boundary regions of a bounding box, such as using a distance from an edge of a central region to a center of the pixel and/or an area of the pixel that is located inside the boundary region.
Abstract:
An operating system may receive transition information indicating that a user-interface of an application is to be transitioned from a first state to a second state. Transition of the user-interface from the first state to the second state comprises a change in a property of a user-interface item. The operating system may, in response to receiving the transition information, obtain from a rendering engine a value for the property of the user-interface item corresponding to the first state. The operating system may embed a module in the rendering engine so as to detect the change in the property of the user-interface item through communication from the application to the rendering engine; and obtain from the module a respective value for the property of the user-interface item corresponding to the second state. The operating system may generate an animation based on a comparison between the value and the respective value.