# US 2012/0268473 A1 · Drawing operations using multiple graphics interfaces

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2012/0268473 A1
- Document ID: US20120268473A1
- Status: Published application
- Kind: A1
- Application number: 13/093,782
- Filed: 2011-04-25
- Published: 2012-10-25
- Earliest claimed: 2011-04-25
- Assignees: Microsoft Corporation
- Inventors: Benjamin C. Constable; Blake D. Pelton
- Web page: https://patentgrep.com/patent/US20120268473A1

## CPC

- G09G 5/00: Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators (image data processing or generation, in general G06T)
- G06F 9/451: Execution arrangements for user interfaces
- G06F 9/52: Program synchronisation; Mutual exclusion, e.g. by means of semaphores
- G09G: ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION (arrangements for transferring data between digital computers and displays G06F3/14; static indicating arrangements comprising an association of a number of separate sources or light control cells G09F9/00; static indicating arrangements comprising integral associations of a number of light sources H01J, H01K, H10H, H05B33/12; scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission, details thereof H04N1/00)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Various embodiments provide techniques for enabling multiple graphics interfaces to be accessed to perform graphics-related operations. In at least some embodiments, techniques determine if the multiple graphics interfaces can share a memory resource for performing graphics operations. If the multiple graphics interfaces can share the memory resource, a coalescing graphics element is provided that can be used by applications to perform multiple graphics operations.

## Claims

### Claim 1

A computer-implemented method comprising:
receiving a request from a resource to perform a drawing operation in a system that includes multiple graphics interfaces;
determining whether the system supports memory sharing among the multiple graphics interfaces; and
responsive to a determination that the system supports memory sharing among the multiple graphics interfaces, using a coalescing graphics element to receive drawing operation attributes from the resource, and performing the drawing operation based on the drawing operation attributes; or
responsive to a determination that the system does not support memory sharing among the multiple graphics interfaces, copying at least a portion of an output surface to a temporary graphics element, receiving drawing operation attributes from the resource via manipulation of the copy of the at least a portion of the output surface in the temporary graphics element, and performing the drawing operation on the output surface and based on the drawing operation attributes.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the resource comprises one or more of an application that resides on the system or a resource that is remote from the system.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein determining whether the system supports memory sharing among the multiple graphics interfaces comprises determining whether the multiple graphics interfaces can access a particular portion of memory simultaneously or concurrently.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein the drawing operation attributes comprise one or more of a color, a line width, a brush pattern, or a pixel region associated with the drawing operation.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein the coalescing graphics element comprises an object that is configured to remain active after the drawing operation is completed and is further configured to be used to perform one or more other drawing operations.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein the temporary graphics element comprises an object that is configured to be released by the resource after the drawing operation is performed.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein the output surface comprises one or more of a region of a page to be printed or a region of a page to be displayed.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein the at least a portion of the output surface comprises a region of interest of the output surface and the region of interest comprises a pixel sub-region of the output surface.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, wherein the method further comprises, responsive to a determination that the system supports memory sharing among the multiple graphics interfaces, leaving the coalescing graphics element active to be used to perform one or more other drawing operations.

### Claim 10

A computer-implemented method comprising:
receiving a request from a resource to perform a drawing operation in a system that includes multiple graphics interfaces;
determining whether a coalescing graphics element associated with a particular graphics interface of the multiple graphics interfaces is active; and
responsive to a determination that the coalescing graphics element is active, causing the drawing operation to be performed via the particular graphics interface and using drawing operation attributes set by the resource on the coalescing graphics element.

### Claim 11 (depends on 10)

The computer-implemented method of claim 10, wherein the request from a resource to perform a drawing operation comprises a request to perform the drawing operation via the particular graphics interface.

### Claim 12 (depends on 10)

The computer-implemented method of claim 10, wherein determining whether a coalescing graphics element associated with a particular graphics interface is active comprises querying the particular graphics interface to determine if the coalescing graphics element is active.

### Claim 13 (depends on 10)

The computer-implemented method of claim 10, wherein determining whether a coalescing graphics element associated with a particular graphics interface is active is responsive to a determination that the system supports memory sharing among the multiple graphics interfaces.

### Claim 14 (depends on 10)

The computer-implemented method of claim 10, wherein the drawing operation attributes comprise one or more of a color, a line width, a brush pattern, or a pixel region associated with the drawing operation.

### Claim 15 (depends on 10)

The computer-implemented method of claim 10, further comprising leaving the coalescing graphics element active to be used to perform one or more other drawing operations.

### Claim 16

One or more computer readable storage media comprising computer-executable instructions that, when executed, are configured to implement:
a plurality of graphics interfaces, at least one of the graphics interfaces being configured to perform a drawing operation using a coalescing graphics element; and
a graphics manager configured to:
receive a request to perform a drawing operation;
responsive to receiving the request, determine whether a coalescing graphics element associated with the at least one of the plurality of graphics interfaces is active; and
responsive to a determination that the coalescing graphics element is active, cause the coalescing graphics element to be provided to a resource that generated the request to perform the drawing operation, the coalescing graphics element being configured to receive one or more drawing operation attributes from the resource to be used by the at least one of the graphics interfaces for performing the drawing operation.

### Claim 17 (depends on 16)

The one or more computer readable storage media of claim 16, wherein the coalescing graphics element comprises an object created by the at least one of the plurality of graphics interfaces.

### Claim 18 (depends on 16)

The one or more computer readable storage media of claim 16, wherein the graphics manager is further configured to cause the coalescing graphics element to remain active after the drawing operation is performed and enable the coalescing graphics element to be available to be used to perform one or more other drawing operations.

### Claim 19 (depends on 16)

The one or more computer readable storage media of claim 16, wherein the graphics manager is further configured to, responsive to a determination that the coalescing graphics element is not active, cause an active coalescing graphics element to be obtained and provided to the resource for receiving the one or more drawing operation attributes.

### Claim 20 (depends on 16)

The one or more computer readable storage media of claim 16, wherein the graphics manager is further configured to:
responsive to receiving the request, determine whether the plurality of graphics interfaces are able to share a portion of memory associated with the drawing operation;
responsive to a determination that the plurality of graphics interfaces are not able to share the portion of memory, cause a temporary graphics element to be created, the temporary graphics element being configured to receive a copy of at least a portion of an output surface associated with the drawing operation; and
cause the temporary graphics element to be provided to the resource to receive the drawing operation attributes via manipulation of the copy of the at least a portion of the output surface.
