Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A graphic device interface resource management method and device

A graphics device interface and resource management technology, applied in the field of resource management, can solve problems such as increased system overhead, reduced utilization of GDI resources, increased system memory usage, etc., to improve utilization, facilitate popularization and promotion, and reduce occupation Effect

Active Publication Date: 2016-11-09
TENCENT TECH (SHENZHEN) CO LTD +1
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the above method has certain problems in practical application, such as: if the GDI resource objects to be accessed twice before and after are the same, the same refers to the same type and attribute, where the type refers to brushes, brushes, fonts, etc. , the attribute refers to the color of the brush, the style, size, and color of the brush, the type, size, thickness, italic attribute, and whether there is an underline, etc. of the font; then according to the existing method, even if the same GDI resource object has been created before, the following It will still be recreated once, that is, the same GDI resource object is created repeatedly, which will lead to problems such as reduced GDI resource utilization, increased system overhead, and increased system memory usage.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A graphic device interface resource management method and device
  • A graphic device interface resource management method and device
  • A graphic device interface resource management method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] Aiming at the problems existing in the prior art, the present invention proposes a GDI resource management scheme, which can improve the utilization rate of GDI resources, reduce system overhead, and reduce the occupation of system memory.

[0020] figure 1 It is a flow chart of an embodiment of the GDI resource management method of the present invention. Such as figure 1 shown, including the following steps:

[0021] Step 11: When the accessing party needs to access a GDI resource object, send a creation request to the resource pool.

[0022] The accessing party may refer to a system process or the like. A resource pool refers to a collection of resources that can be efficiently saved and managed.

[0023] Step 12: The resource pool determines whether it has saved the GDI resource object, if not, creates the GDI resource object and its handle, saves it, and returns the handle of the GDI resource object, if yes, returns the GDI resource object handle.

[0024] In ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for managing a graphics device interface (GDI) resource. The method comprises the following steps that when an access requestor is to access to a GDI resource target, a creation request is transmitted to a resource pool; the resource pool determines whether the GDI resource target is stored in the resource pool or not, if not, the GDI resource target and a handle of the GDI resource target are created and stored and the handle of the GDI resource target is returned, and otherwise, the handle of the GDI resource target is returned; and the access requestor uses the handle returned by the resource pool to access to the GDI resource target. By the method and a device, the utilization rate of the GDI resource can be improved, the system expenditure is reduced, and the occupied memory of the system is reduced.

Description

technical field [0001] The present invention relates to a resource management technology, in particular to a graphic device interface (GDI, Graphic Device Interface) resource management method and device. Background technique [0002] GDI resources are resources managed by the system kernel program "Gdiexe", which are used to store graphic object information such as brushes, brushes, fonts, and palettes. It can be considered that GDI resources are composed of a series of GDI resource objects. [0003] In the prior art, when a system process needs to access a GDI resource object, it will call global functions such as ::CreateFont, ::CreateSolidBrush or ::CreatePen, and these global functions will create the GDI resource object and return the GDI handle. The GDI handle can be used to access the GDI resource object; at a later time, if another GDI resource object is to be accessed, the above process is repeated. [0004] However, the above method has certain problems in pract...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F17/30
Inventor 高峰潘昱存唐宗尧杨宝龙
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products