CN106648841A - Graphics context management method - Google Patents
Graphics context management method Download PDFInfo
- Publication number
- CN106648841A CN106648841A CN201611139576.1A CN201611139576A CN106648841A CN 106648841 A CN106648841 A CN 106648841A CN 201611139576 A CN201611139576 A CN 201611139576A CN 106648841 A CN106648841 A CN 106648841A
- Authority
- CN
- China
- Prior art keywords
- attribute
- module
- graphic
- graphics
- process unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/461—Saving or restoring of program or task context
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Processing Or Creating Images (AREA)
- Image Generation (AREA)
Abstract
The invention belongs to the field of computer graphics, and particularly relates to a graphics context management method. The method comprises the following steps of: when a graphics application is changed, a graphics application attribute recording module (1) extracts a graphics attribute applied by a current activity and sends the graphics attribute to the graphics attribute module (2) of the current activity; the graphics attribute module (2) of the current activity receives the graphics attribute information of the current activity and forwards the graphics attribute information to a comparator module (4); and a graphics processor attribute recording module (3) records the graphics attribute of a graphics processor, and when the application is changed, the graphics processor attribute recording module (3) sends the current graphics attribute of the graphics processor to the comparator module (4). By use of the method, graphics configuration information applied by the current activity is compared with the existing configuration information of the graphics processor to obtain the graphics attributes which need to be set, graphics context management is realized, and the independence of a plurality of graphics application drawing attributes is guaranteed.
Description
Technical field
The invention belongs to area of computer graphics, more particularly to a kind of G context management method.
Background technology
Window system is increasingly extensive as the important means application of man-machine interaction, and G context is managed as window system
Bridge between graphic process unit, directly determines the speed and quality of multiwindow application.The graphics process of disclosure research at present
In message mechanism most for graphic user interface, multithreading mode of operation, clip and paste domain algorithm etc., find no figure upper and lower
The related content of text management.
The content of the invention
The purpose of the present invention is:
Present invention generally provides a kind of G context management method, it is ensured that the independence of multiple figure application drawing attributes
Property.
The present invention solution be:
A kind of G context management method, including:
Step 1, figure application attribute logging modle (1) record each corresponding graphic attribute of figure application, when figure should
During with changing, the graphic attribute for extracting current active application is sent in the graphic attribute module (2) of current active;
What step 2, the graphic attribute module (2) of current active reception figure application attribute logging modle (1) sent works as
The graphic attribute information of front activity, is transmitted to contrast device module (4);
Step 3, graphic process unit attribute record module (3) record the graphic attribute of graphic process unit, with graphic process unit
Current attribute be consistent, and change with the change of drawing attribute, when shape application is changed, graphic process unit category
Property logging modle (3) by the current Graphics attribute of the graphic process unit be sent to contrast device module (4);
Step 4, contrast device module (4) receive current active graphic attribute module (2) send graphic attribute information and
The current Graphics attribute of the graphic process unit that graphic process unit attribute record module (3) sends, carries out contrast operation, and extracting needs
The operation information for being increased, deleted and being changed, the attribute module (5) that need to be configured is sent to as graphic attribute configuration information;
Step 5, the attribute module (5) that need to be configured receive the graphic attribute configuration information that contrast device module (4) sends, and generate
Corresponding graphic operation instruction is sent in graphic operation instruction module (7), is generated corresponding attribute record information and is sent to category
In property record information module (6);
Step 6, attribute record information module (6) receive the attribute record information that the attribute module (5) that need to be configured sends, and send out
In being sent to graphic process unit attribute record module (3);
Step 7, graphic operation instruction module (7) receive the graphic operation instruction that the attribute module (5) that need to be configured sends, under
It is dealt into graphic process unit to be operated.
It is an advantage of the invention that:A kind of G context management method that the present invention is provided, by by current active application
Graphic configuration information contrasted with the existing configuration information of graphic process unit, obtain the graphic attribute for needing to be configured,
Realize that G context is managed, it is ensured that the independence of multiple figure application drawing attributes.
Description of the drawings
Fig. 1 is method of the present invention module map.
Specific embodiment
Below in conjunction with the accompanying drawings technical scheme is described in further detail with specific embodiment.
As shown in figure 1, a kind of G context management method of the embodiment of the present invention, including:
Step 1, figure application attribute logging modle (1) record each corresponding graphic attribute of figure application, when figure should
During with changing, the graphic attribute for extracting current active application is sent in the graphic attribute module (2) of current active;
What step 2, the graphic attribute module (2) of current active reception figure application attribute logging modle (1) sent works as
The graphic attribute information of front activity, is transmitted to contrast device module (4);
Step 3, graphic process unit attribute record module (3) record the graphic attribute of graphic process unit, with graphic process unit
Current attribute be consistent, and change with the change of drawing attribute, when shape application is changed, graphic process unit category
Property logging modle (3) by the current Graphics attribute of the graphic process unit be sent to contrast device module (4);
Step 4, contrast device module (4) receive current active graphic attribute module (2) send graphic attribute information and
The current Graphics attribute of the graphic process unit that graphic process unit attribute record module (3) sends, carries out contrast operation, and extracting needs
The operation information for being increased, deleted and being changed, the attribute module (5) that need to be configured is sent to as graphic attribute configuration information;
Step 5, the attribute module (5) that need to be configured receive the graphic attribute configuration information that contrast device module (4) sends, and generate
Corresponding graphic operation instruction is sent in graphic operation instruction module (7), is generated corresponding attribute record information and is sent to category
In property record information module (6);
Step 6, attribute record information module (6) receive the attribute record information that the attribute module (5) that need to be configured sends, and send out
In being sent to graphic process unit attribute record module (3);
Step 7, graphic operation instruction module (7) receive the graphic operation instruction that the attribute module (5) that need to be configured sends, under
It is dealt into graphic process unit to be operated.
Finally it should be noted that:Above example only to illustrate technical scheme, rather than a limitation;Although
The present invention is explained with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used
To modify to the technical scheme described in foregoing embodiments, or equivalent is carried out to which part technical characteristic;
And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and
Scope.
Claims (1)
1. a kind of G context management method, it is characterised in that include:
Step 1, figure application attribute logging modle (1) record each corresponding graphic attribute of figure application, when figure application is sent out
During raw change, the graphic attribute for extracting current active application is sent in the graphic attribute module (2) of current active;
Step 2, the graphic attribute module (2) of current active receive the current work that figure application attribute logging modle (1) sends
Dynamic graphic attribute information, is transmitted to contrast device module (4);
Step 3, graphic process unit attribute record module (3) record the graphic attribute of graphic process unit, with working as graphic process unit
Front attribute is consistent, and changes with the change of drawing attribute, when shape application is changed, graphic process unit attribute note
The current Graphics attribute of the graphic process unit is sent to contrast device module (4) by record module (3);
Step 4, contrast device module (4) receive graphic attribute information and the figure that the graphic attribute module (2) of current active sends
The current Graphics attribute of the graphic process unit that processor attribute record module (3) sends, carries out contrast operation, and extracting needs is carried out
The operation information for increasing, deleting and change, the attribute module (5) that need to be configured is sent to as graphic attribute configuration information;
Step 5, the attribute module (5) that need to be configured receive the graphic attribute configuration information that contrast device module (4) sends, and generate corresponding
Graphic operation instruction be sent in graphic operation instruction module (7), generate corresponding attribute record information and be sent to attribute note
In record information module (6);
Step 6, attribute record information module (6) receive the attribute record information that the attribute module (5) that need to be configured sends, and are sent to
In graphic process unit attribute record module (3);
Step 7, graphic operation instruction module (7) receive the graphic operation instruction that the attribute module (5) that need to be configured sends, and are issued to
Graphic process unit is operated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611139576.1A CN106648841B (en) | 2016-12-12 | 2016-12-12 | Graphic context management method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611139576.1A CN106648841B (en) | 2016-12-12 | 2016-12-12 | Graphic context management method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106648841A true CN106648841A (en) | 2017-05-10 |
CN106648841B CN106648841B (en) | 2020-06-30 |
Family
ID=58825670
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611139576.1A Active CN106648841B (en) | 2016-12-12 | 2016-12-12 | Graphic context management method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106648841B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030107596A1 (en) * | 2001-12-04 | 2003-06-12 | Jameson Kevin Wade | Collection adaptive focus GUI |
CN1541373A (en) * | 2000-07-20 | 2004-10-27 | �Ҵ���˾ | Method and appts. for graphics context switching in data processing system |
EP1702297A1 (en) * | 2003-12-22 | 2006-09-20 | Saab Xperientia AB | Method and means for context-based measurement of worked time |
CN100538736C (en) * | 2005-11-10 | 2009-09-09 | 威盛电子股份有限公司 | Storage and back-storing state context are at the method and apparatus of Graphics Processing Unit |
CN103003847A (en) * | 2010-05-16 | 2013-03-27 | 诺基亚公司 | Method and apparatus for rendering a location-based user interface |
-
2016
- 2016-12-12 CN CN201611139576.1A patent/CN106648841B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1541373A (en) * | 2000-07-20 | 2004-10-27 | �Ҵ���˾ | Method and appts. for graphics context switching in data processing system |
US20030107596A1 (en) * | 2001-12-04 | 2003-06-12 | Jameson Kevin Wade | Collection adaptive focus GUI |
EP1702297A1 (en) * | 2003-12-22 | 2006-09-20 | Saab Xperientia AB | Method and means for context-based measurement of worked time |
CN100538736C (en) * | 2005-11-10 | 2009-09-09 | 威盛电子股份有限公司 | Storage and back-storing state context are at the method and apparatus of Graphics Processing Unit |
CN103003847A (en) * | 2010-05-16 | 2013-03-27 | 诺基亚公司 | Method and apparatus for rendering a location-based user interface |
Also Published As
Publication number | Publication date |
---|---|
CN106648841B (en) | 2020-06-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2988208A1 (en) | Application sharing method and device | |
CN107943796A (en) | A kind of interpretation method and device, terminal, readable storage medium storing program for executing | |
CN102073706B (en) | Combined application method of distributed file storage system and relation database | |
CN107193476B (en) | Information input method and device, computer equipment and readable medium | |
CN105718534B (en) | Information pushing apparatus, information pushing method and client | |
MX2014009068A (en) | Electronic book file processing method, terminal, and electronic device. | |
CN105005568B (en) | Web page front end processing device and method based on template | |
CN107391652A (en) | A kind of templating form interface defines system and method | |
US10620803B2 (en) | Selecting at least one graphical user interface item | |
CN104750472B (en) | The resource package management method and device of a kind of terminal applies | |
CN105677716A (en) | Computer data acquisition, processing and analysis system | |
US10579943B2 (en) | Engineering data analytics platforms using machine learning | |
CN110888926A (en) | Method and device for structuring medical text | |
US20170242850A1 (en) | Performing a code conversion in a smaller target encoding space | |
CN103440197B (en) | A kind of method automatically generating difference test report based on contrast test | |
CN108182965B (en) | Electronic medical record generation system and method | |
CN111061743A (en) | Data processing method and device and electronic equipment | |
CN104268194A (en) | Method for dynamically generating public opinion brief report | |
CN106648841A (en) | Graphics context management method | |
CN105824763B (en) | A kind of buffer service implementation method | |
US20140288936A1 (en) | Linguistic model database for linguistic recognition, linguistic recognition device and linguistic recognition method, and linguistic recognition system | |
CN107203510A (en) | character detecting method and device | |
CN103761617A (en) | Method and system for approval process management in cloud data center | |
CN103365891B (en) | The method and apparatus that data classification is realized using agent field | |
CN105553713A (en) | FC special bus analyzer FC port management and configuration method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |