CN106648841B - Graphic context management method - Google Patents

Graphic context management method Download PDF

Info

Publication number
CN106648841B
CN106648841B CN201611139576.1A CN201611139576A CN106648841B CN 106648841 B CN106648841 B CN 106648841B CN 201611139576 A CN201611139576 A CN 201611139576A CN 106648841 B CN106648841 B CN 106648841B
Authority
CN
China
Prior art keywords
attribute
graphic
graph
module
information
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.)
Active
Application number
CN201611139576.1A
Other languages
Chinese (zh)
Other versions
CN106648841A (en
Inventor
刘晖
马城城
田泽
黎小玉
聂曌
张琛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Aeronautics Computing Technique Research Institute of AVIC
Original Assignee
Xian Aeronautics Computing Technique Research Institute of AVIC
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Xian Aeronautics Computing Technique Research Institute of AVIC filed Critical Xian Aeronautics Computing Technique Research Institute of AVIC
Priority to CN201611139576.1A priority Critical patent/CN106648841B/en
Publication of CN106648841A publication Critical patent/CN106648841A/en
Application granted granted Critical
Publication of CN106648841B publication Critical patent/CN106648841B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/461Saving 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 graphic context management method. The method comprises the following steps: when the graph application is changed, the graph application attribute recording module (1) extracts the graph attribute of the current active application and sends the graph attribute to the graph attribute module (2) of the current graph; the graph attribute module (2) of the current graph receives the attribute information of the current active graph and forwards the attribute information of the current active graph to the comparator module (4); the method comprises the following steps that a graphic processor attribute recording module (3) records graphic attributes of a graphic processor, and when a graphic application is changed, the graphic processor attribute recording module (3) sends the current graphic attributes of the graphic processor to a comparator module (4); the method obtains the graphic attribute to be set by comparing the graphic configuration information of the current active application with the existing configuration information of the graphic processor, realizes the graphic context management and ensures the independence of the drawing attributes of a plurality of graphic applications.

Description

Graphic context management method
Technical Field
The invention belongs to the field of computer graphics, and particularly relates to a graphic context management method.
Background
Window systems are increasingly used as important means for human-computer interaction, and graphics context management is used as a bridge between the window systems and a graphics processor to directly determine the speed and quality of multi-window application. Most of the currently published and researched graphic processing aims at a message mechanism, a multi-thread working mode, a clip domain algorithm and the like of a graphic user interface, and relevant contents of graphic context management are not found.
Disclosure of Invention
The purpose of the invention is:
the invention mainly provides a graphic context management method which ensures the independence of drawing attributes of a plurality of graphic applications.
The solution of the invention is:
a graphics context management method, comprising:
step 1, a graph application attribute recording module (1) records the graph attribute corresponding to each graph application, and when the graph application is changed, the graph attribute of the current active application is extracted and sent to a graph attribute module (2) of the current graph;
step 2, the graph attribute module (2) of the current graph receives the graph attribute information of the current activity sent by the graph application attribute recording module (1) and forwards the graph attribute information to the comparator module (4);
step 3, the graph processor attribute recording module (3) records the graph attributes of the graph processor, keeps consistent with the current attributes of the graph processor and changes along with the change of the drawing attributes, and when the graph application is changed, the graph processor attribute recording module (3) sends the current graph attributes of the graph processor to the comparator module (4);
step 4, the comparator module (4) receives the graphic attribute information sent by the graphic attribute module (2) of the current graphic and the current graphic attribute of the graphic processor sent by the graphic processor attribute recording module (3), compares the graphic attribute information with the current graphic attribute information, extracts the operation information needing to be added, deleted and changed, and sends the operation information as graphic attribute setting information to the attribute module (5) needing to be configured;
step 5, an attribute module (5) to be configured receives the graphic attribute setting information sent by the comparator module (4), generates a corresponding graphic operation instruction and sends the graphic operation instruction to a graphic operation instruction module (7), and generates corresponding attribute recording information and sends the attribute recording information to an attribute recording information module (6);
step 6, the attribute recording information module (6) receives the attribute recording information sent by the attribute module (5) to be configured and sends the attribute recording information to the graphic processor attribute recording module (3);
and 7, receiving the graphic operation instruction sent by the attribute module (5) to be configured by the graphic operation instruction module (7), and issuing the graphic operation instruction to the graphic processor for operation.
The invention has the advantages that: according to the graphic context management method provided by the invention, the graphic configuration information of the current active application is compared with the existing configuration information of the graphic processor to obtain the graphic attribute to be set, so that the graphic context management is realized, and the independence of the drawing attributes of a plurality of graphic applications is ensured.
Drawings
FIG. 1 is a block diagram of the method of the present invention.
Detailed Description
The technical solution of the present invention is further described in detail with reference to the accompanying drawings and specific embodiments.
As shown in fig. 1, a method for managing a graphics context according to an embodiment of the present invention includes:
step 1, a graph application attribute recording module (1) records the graph attribute corresponding to each graph application, and when the graph application is changed, the graph attribute of the current active application is extracted and sent to a graph attribute module (2) of the current graph;
step 2, the graph attribute module (2) of the current graph receives the graph attribute information of the current activity sent by the graph application attribute recording module (1) and forwards the graph attribute information to the comparator module (4);
step 3, the graph processor attribute recording module (3) records the graph attributes of the graph processor, keeps consistent with the current attributes of the graph processor and changes along with the change of the drawing attributes, and when the graph application is changed, the graph processor attribute recording module (3) sends the current graph attributes of the graph processor to the comparator module (4);
step 4, the comparator module (4) receives the graphic attribute information sent by the graphic attribute module (2) of the current graphic and the current graphic attribute of the graphic processor sent by the graphic processor attribute recording module (3), compares the graphic attribute information with the current graphic attribute information, extracts the operation information needing to be added, deleted and changed, and sends the operation information as graphic attribute setting information to the attribute module (5) needing to be configured;
step 5, an attribute module (5) to be configured receives the graphic attribute setting information sent by the comparator module (4), generates a corresponding graphic operation instruction and sends the graphic operation instruction to a graphic operation instruction module (7), and generates corresponding attribute recording information and sends the attribute recording information to an attribute recording information module (6);
step 6, the attribute recording information module (6) receives the attribute recording information sent by the attribute module (5) to be configured and sends the attribute recording information to the graphic processor attribute recording module (3);
and 7, receiving the graphic operation instruction sent by the attribute module (5) to be configured by the graphic operation instruction module (7), and issuing the graphic operation instruction to the graphic processor for operation.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (1)

1. A graphics context management method, comprising:
step 1, a graph application attribute recording module (1) records the graph attribute corresponding to each graph application, and when the graph application is changed, the graph attribute of the current graph application is extracted and sent to a graph attribute module (2) of the current graph;
step 2, the graph attribute module (2) of the current graph receives the graph attribute information of the current graph sent by the graph application attribute recording module (1) and forwards the graph attribute information to the comparator module (4);
step 3, the graph processor attribute recording module (3) records the current graph attribute of the graph processor and changes along with the change of the drawing attribute, and when the graph application is changed, the graph processor attribute recording module (3) sends the current graph attribute of the graph processor to the comparator module (4);
step 4, the comparator module (4) receives the graphic attribute information sent by the graphic attribute module (2) of the current graphic and the current graphic attribute of the graphic processor sent by the graphic processor attribute recording module (3), compares the graphic attribute information with the current graphic attribute information, extracts the operation information needing to be added, deleted and changed, and sends the operation information as graphic attribute setting information to the attribute module (5) needing to be configured;
step 5, an attribute module (5) to be configured receives the graphic attribute setting information sent by the comparator module (4), generates a corresponding graphic operation instruction and sends the graphic operation instruction to a graphic operation instruction module (7), and generates corresponding attribute recording information and sends the attribute recording information to an attribute recording information module (6);
step 6, the attribute recording information module (6) receives the attribute recording information sent by the attribute module (5) to be configured and sends the attribute recording information to the graphic processor attribute recording module (3);
and 7, receiving the graphic operation instruction sent by the attribute module (5) to be configured by the graphic operation instruction module (7), and issuing the graphic operation instruction to the graphic processor for operation.
CN201611139576.1A 2016-12-12 2016-12-12 Graphic context management method Active CN106648841B (en)

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 CN106648841A (en) 2017-05-10
CN106648841B true 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 (4)

* Cited by examiner, † Cited by third party
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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2364632A1 (en) * 2001-12-04 2003-06-04 Kevin W. Jameson Collection adaptive focus gui

Patent Citations (4)

* Cited by examiner, † Cited by third party
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
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
CN106648841A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN109815028B (en) System, method, apparatus and computer storage medium for data synchronization
TW201942766A (en) Device model identification method and apparatus, and processing device
US20120117457A1 (en) Version history inside document
JP2006209774A (en) System and method for context awareness platform
US20110265009A1 (en) Terminal services view toolbox
WO2021189967A1 (en) Human-machine interaction control method, apparatus and system, and electronic device
MX2014009068A (en) Electronic book file processing method, terminal, and electronic device.
US20210192046A1 (en) Resource Management Unit for Capturing Operating System Configuration States and Managing Malware
US20180253313A1 (en) Operation instruction response control method and terminal for human-machine interface
WO2023222109A1 (en) Network wakeup management method and apparatus, electronic device, and storage medium
US20200089512A1 (en) Method and Apparatus for Invoking Input Method, Server, and Terminal
CN104184601A (en) Obtaining method and device for user online time
CN106648841B (en) Graphic context management method
US11526380B2 (en) Resource management unit for capturing operating system configuration states and offloading tasks
CN113656198A (en) Copying and pasting method and device from client to cloud mobile phone
CN106683033B (en) Out-of-order OpenGL interface processing method
US20170185966A1 (en) Providing calendar utility to capture calendar event
JP2022500714A (en) Optimization of large-scale data analysis
KR20170130178A (en) In-Memory DB Connection Support Type Scheduling Method and System for Real-Time Big Data Analysis in Distributed Computing Environment
US20100241675A1 (en) Breaking a circular reference between parent and child objects
US20210191776A1 (en) Resource Management Unit for Capturing Operating System Configuration States and Memory Management
WO2021174791A1 (en) Task migration method and apparatus, and electronic device and storage medium
CN104572240B (en) Control method and electronic equipment
CN108965039B (en) Alarm method based on flow monitoring and electronic equipment
US8495033B2 (en) Data processing

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