Component drawing method, apparatus, and terminal device

By merging dirty areas into redraw areas and drawing only the intersection components, the redundancy problem of redraw areas in terminal devices is solved, reducing device load and power consumption, and achieving efficient screen updates.

WO2026031565A1PCT designated stage Publication Date: 2026-02-12HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/083895
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-08-09
Filing Date
2025-03-20
Publication Date
2026-02-12

AI Technical Summary

Technical Problem

In existing technologies, the scattered locations of dirty areas in the graphics system of terminal devices result in a redraw area that is much larger than the sum of the dirty areas, causing redundant drawing and increasing the load and power consumption of the terminal devices.

Method used

By merging M dirty areas into N redraw areas, the number of components drawn outside the dirty areas is reduced or avoided. Preset rules are used to merge dirty areas to determine the redraw areas. Historical dirty area information is combined to ensure the integrity of the image. Only components that intersect with the redraw areas are drawn.

Benefits of technology

It reduces redundant rendering on terminal devices, lowers load and power consumption, and supports multi-zone screen refresh to ensure screen integrity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025083895_12022026_PF_FP_ABST
    Figure CN2025083895_12022026_PF_FP_ABST
Patent Text Reader

Abstract

The present application belongs to the technical field of graphics display. Disclosed are a component drawing method, an apparatus, and a terminal device. The method comprises: acquiring a first display interface comprising M dirty regions, M being a positive integer greater than 2, and the dirty regions being regions where content on the interface changes; on the basis of the M dirty regions, determining N redraw regions, N being a positive integer less than or equal to M and greater than 1, and the redraw regions being continuous regions comprising at least one dirty region; and drawing a component having an intersection with the N redraw regions to obtain a second display interface comprising the M dirty regions and the N redraw regions. Thus, the M dirty regions are merged into a plurality of redraw regions, the redraw regions containing components of the plurality of dirty regions and containing few or no components of regions outside the dirty regions. In the process of drawing the components of the redraw regions, the components of the regions outside the dirty regions are reduced from being drawn, thereby reducing redundant drawing and lowering the load and power consumption of the terminal device. In addition, redrawing the components of the plurality of redraw regions may support multi-region screen refreshing in future.
Need to check novelty before this filing date? Find Prior Art

Description

Component drawing method, device and terminal equipment

[0001] The present application claims priority to the Chinese patent application No. 202411100235.8, filed on August 9, 2024, and entitled "Component drawing method, device and terminal equipment", the entire content of which is incorporated herein by reference. TECHNICAL FIELD

[0002] The present application relates to the technical field of graphical display, in particular to a component drawing method, device and terminal equipment. BACKGROUND

[0003] The picture displayed by a terminal device is composed of a frame of images, and each frame of image includes various elements such as text, pictures, etc. Each element is packaged and encapsulated as a plurality of user interface components in the graphical system of the terminal device. The user interface component is a component for developing and constructing a user interface (UI), which helps to complete the development of interface elements such as windows, text boxes, buttons, drop-down menus, etc. in software development. If the current frame of image has component addition, deletion or change compared with the previous frame of image, the graphical system performs drawing and rendering operations on these components. The area corresponding to these components is called a dirty area, and these dirty areas are redrawn to obtain the desired display picture.

[0004] A component drawing method is provided in the related art. In the drawing process of each frame of image, the scattered dirty areas in the window started by the application program are normalized to obtain a continuous area, which is the redraw area. After determining the redraw area, the components included in the redraw area are drawn. However, in the case where the positions of the dirty areas are scattered, the area of the redraw area will be much larger than the sum of the areas of all dirty areas, resulting in that the redraw area contains many components outside the dirty areas, and these components will be redrawn, causing redundant drawing, which makes the load and power consumption of the terminal device larger. SUMMARY

[0005] The present application provides a component drawing method, device and terminal equipment, which reduces redundant drawing and reduces the load and power consumption of the terminal device. The technical solutions are as follows:

[0006] In a first aspect, a component drawing method is provided. The method includes: obtaining a first display interface, the first display interface including M dirty areas, M being a positive integer greater than 2, and a dirty area being a region on the interface where the content has changed; determining N redraw areas according to the M dirty areas, N being a positive integer less than or equal to M and greater than 1, and a redraw area being a continuous area containing at least one dirty area; drawing a first component having an intersection with the N redraw areas to obtain a second display interface, the second display interface including the M dirty areas and the N redraw areas.

[0007] In the present application, by determining M dirty regions as N redraw regions, the redraw regions contain components of multiple dirty regions, and the redraw regions contain less or no components of regions outside the dirty regions, during the drawing of components of the redraw regions, the drawing of components of regions outside the dirty regions is reduced, the redraw regions of the prior art contain more components of regions outside the dirty regions, therefore, the component drawing method in the present application reduces redundant drawing, and reduces the load and power consumption of the terminal device. In addition, the redrawing of components of multiple redraw regions can support future multi-region refreshing of the screen.

[0008] In a possible implementation, the determining N redraw regions according to the M dirty regions comprises: merging at least two dirty regions in the M dirty regions according to a preset rule to obtain the N redraw regions. In the present application, at least two dirty regions in the M dirty regions are merged according to the preset rule to obtain the N redraw regions, so that the M dirty regions can obtain multiple redraw regions, so that the redraw regions contain components of multiple dirty regions, and contain less or no components of regions outside the dirty regions. Therefore, during the drawing of components of the redraw regions, the drawing of components of regions outside the two dirty regions is reduced, redundant drawing is reduced, and the load and power consumption of the terminal device are reduced.

[0009] In a possible implementation, the preset rule comprises: merging at least two dirty regions that are adjacent in position; or merging at least two dirty regions of the same application; or merging at least two dirty regions of the same application and adjacent in position; or merging at least two specified dirty regions.

[0010] In a possible implementation, the merging of at least two dirty regions in the M dirty regions to obtain the N redraw regions comprises: determining a minimum region to which each dirty region in the M dirty regions belongs; merging the minimum regions corresponding to at least two dirty regions in the M dirty regions to obtain the N redraw regions, and the sum of the areas of the N redraw regions is minimum. In the present application, by determining the minimum regions of the dirty regions and merging the minimum regions to obtain multiple redraw regions, the sum of the areas of the redraw regions is also minimum, the number of components contained in the redraw regions is further reduced, that is, the components outside the dirty regions are reduced, and redundant drawing of the components is further reduced.

[0011] In a possible implementation, the first display interface includes a first interface of a first application and a second interface of a second application, and the obtaining of the first display interface includes: obtaining m1 dirty regions of the first interface, m1 being a positive integer greater than or equal to 1; obtaining m2 dirty regions of the second interface, m2 being a positive integer greater than or equal to 1; obtaining m3 dirty regions outside the first interface and the second interface, m3 being a positive integer greater than or equal to 1; and obtaining the first display interface according to the m1 dirty regions, the m2 dirty regions, and the m3 dirty regions. In this application, the dirty regions of each application are obtained separately, and the dirty regions outside each application are obtained separately, so that the obtaining of the dirty regions can be performed by multiple subjects, effectively reducing the workload of the processor of the terminal device and reducing power consumption.

[0012] In a possible implementation, the determining of the N redrawing regions according to the M dirty regions includes: merging at least two dirty regions in the m1 dirty regions to obtain n1 redrawing regions, n1 being a positive integer greater than 1; merging at least two dirty regions in the m2 dirty regions to obtain n2 redrawing regions, n2 being a positive integer greater than 1; merging at least two dirty regions in the m3 dirty regions to obtain n3 redrawing regions, n3 being a positive integer greater than 1; and merging at least two redrawing regions in the n1 redrawing regions, the n2 redrawing regions, and the n3 redrawing regions to obtain the N redrawing regions. In this application, after the dirty regions of each application are obtained separately, these dirty regions can be preliminarily processed, such as preliminary merging, deduplication, and the like, further reducing the workload of the processor of the terminal device and reducing power consumption.

[0013] In a possible implementation, the second display interface further includes an image corresponding to a second component, the second component being a component having no intersection with the N redrawing regions; and the method further includes: not drawing the second component; and displaying, on the second display interface, an existing image corresponding to the second component. In this application, by not drawing the component having no intersection with the redrawing region, repeated drawing of the component having no change is effectively avoided, thereby reducing redundant drawing, which can reduce the generation of redundant drawing instructions and reduce the GPU redundant drawing area, reducing the load and power consumption of the terminal device.

[0014] In a possible implementation, the determining of the N redrawing regions according to the M dirty regions includes: determining the N redrawing regions according to the M dirty regions and historical dirty regions. In this application, by combining the historical dirty regions to determine the N redrawing regions, the phenomenon of content loss is effectively avoided, and the completeness of the picture obtained after drawing is ensured.

[0015] In a possible implementation, the determining the N redrawing regions according to the M dirty regions and the historical dirty region comprises: in a case where the M dirty regions and the historical dirty region are consistent, determining the N redrawing regions according to the M dirty regions; in a case where the M dirty regions and the historical dirty region are inconsistent, determining the N redrawing regions by aggregating the M dirty regions and the historical dirty region. In this application, whether the M dirty regions and the historical dirty region are consistent is determined, in a case where the M dirty regions and the historical dirty region are consistent, the N redrawing regions are determined according to the M dirty regions; in a case where the M dirty regions and the historical dirty region are inconsistent, the N redrawing regions are determined by aggregating the M dirty regions and the historical dirty region, effectively avoiding content loss, thereby ensuring the integrity of the picture obtained after drawing.

[0016] In a second aspect, an assembly drawing device is provided, which comprises: an acquisition module configured to acquire a first display interface, the first display interface comprising M dirty regions, M being a positive integer greater than 2, the dirty region being a region in which content of the interface changes; a determination module configured to determine N redrawing regions according to the M dirty regions, N being a positive integer less than or equal to M and greater than 1, the redrawing region being a continuous region containing at least one dirty region; and a drawing module configured to draw a first assembly intersecting with the N redrawing regions to obtain a second display interface, the second display interface comprising the M dirty regions and the N redrawing regions.

[0017] In a possible implementation, the determination module is configured to merge at least two dirty regions in the M dirty regions according to a preset rule to obtain the N redrawing regions.

[0018] In a possible implementation, the preset rule comprises: a rule of merging at least two dirty regions adjacent in position; or a rule of merging at least two dirty regions of a same application; or a rule of merging at least two dirty regions of a same application and adjacent in position; or a rule of merging at least two specified dirty regions.

[0019] In a possible implementation, the determination module is configured to determine a smallest region to which each dirty region in the M dirty regions belongs; and merge the smallest regions corresponding to at least two dirty regions in the M dirty regions to obtain the N redrawing regions, a sum of areas of the N redrawing regions being smallest.

[0020] In a possible implementation, the first display interface includes a first interface of a first application and a second interface of a second application, and the obtaining module is configured to: obtain m1 dirty regions of the first interface, where m1 is a positive integer greater than or equal to 1; obtain m2 dirty regions of the second interface, where m2 is a positive integer greater than or equal to 1; obtain m3 dirty regions other than the first interface and the second interface, where m3 is a positive integer greater than or equal to 1; and obtain the first display interface according to the m1 dirty regions, the m2 dirty regions, and the m3 dirty regions.

[0021] In a possible implementation, the determining module is configured to: combine at least two dirty regions in the m1 dirty regions to obtain n1 redraw regions, where n1 is a positive integer greater than 1; combine at least two dirty regions in the m2 dirty regions to obtain n2 redraw regions, where n2 is a positive integer greater than 1; combine at least two dirty regions in the m3 dirty regions to obtain n3 redraw regions, where n3 is a positive integer greater than 1; and combine at least two redraw regions in the n1 redraw regions, the n2 redraw regions, and the n3 redraw regions to obtain the N redraw regions.

[0022] In a possible implementation, the second display interface further includes an image corresponding to a second component, the second component being a component that has no intersection with the N redraw regions; and the drawing module is configured to: not draw the second component, and display an existing image corresponding to the second component on the second display interface.

[0023] In a possible implementation, the determining module is configured to determine the N redraw regions according to the M dirty regions and historical dirty regions.

[0024] In a possible implementation, the determining module is configured to: in a case where the M dirty regions and the historical dirty regions are consistent, determine the N redraw regions according to the M dirty regions; and in a case where the M dirty regions and the historical dirty regions are inconsistent, determine the N redraw regions by aggregating the M dirty regions and the historical dirty regions.

[0025] In a third aspect, a terminal device is provided, which includes a memory and a processor; the memory stores at least one instruction, which is loaded and executed by the processor, so that the terminal device implements the method in the above aspects.

[0026] In a fourth aspect, a computer readable storage medium is provided, which stores at least one instruction, which is loaded and executed by a processor to implement the method in the above aspects.

[0027] In a fifth aspect, a computer program product is provided, which includes computer programs / instructions executed by a processor to cause a computer to implement the method of the above aspects.

[0028] In a sixth aspect, a computer program (product) is provided, which includes computer program code that, when executed by a computer, causes the computer to perform the method of the above aspects.

[0029] In a seventh aspect, a chip is provided, which includes a processor for calling and executing instructions stored in a memory to cause a device installed with the chip to perform the method of the above aspects.

[0030] In an eighth aspect, another chip is provided, which includes an input interface, an output interface, a processor and a memory, which are connected through internal connection paths, and the processor is configured to execute code in the memory, and when the code is executed, the processor is configured to perform the method of the above aspects.

[0031] It should be understood that the technical solutions of the second aspect to the eighth aspect of the present application and the corresponding possible implementation manners have the beneficial effects as described above for the first aspect and the corresponding possible implementation manners, which will not be described here again. BRIEF DESCRIPTION OF DRAWINGS

[0032] FIG. 1 is a flow diagram of a component rendering method provided by the related art;

[0033] FIG. 2 is a schematic diagram of an interface of a terminal device provided by the related art;

[0034] FIG. 3 is a schematic diagram of a redraw area composed of multiple dirty areas in the interface shown in FIG. 2 provided by the related art;

[0035] FIG. 4 is a flow diagram of a component rendering method provided by an embodiment of the present application;

[0036] FIG. 5 is a schematic diagram of a redraw area composed of multiple dirty areas in the interface shown in FIG. 2 provided by an embodiment of the present application;

[0037] FIG. 6 is a structural block diagram of a terminal device provided by an embodiment of the present application;

[0038] FIG. 7 is a software structural block diagram of a terminal device provided by an embodiment of the present application;

[0039] FIG. 8 is a flow diagram of a component rendering method provided by an embodiment of the present application; FIG. 8 is a flow diagram of a component rendering method provided by an embodiment of the present application;

[0040] FIG. 9 is a schematic diagram of an interface of a terminal device according to an embodiment of the present application;

[0041] FIG. 10 is another schematic diagram of an interface of a terminal device according to an embodiment of the present application;

[0042] FIG. 11 is still another schematic diagram of an interface of a terminal device according to an embodiment of the present application;

[0043] FIG. 12 is a structural block diagram of an assembly drawing device according to an embodiment of the present application;

[0044] FIG. 13 is a structural block diagram of another terminal device according to an embodiment of the present application. DETAILED DESCRIPTION

[0045] The terms used in the embodiments of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.

[0046] When a terminal device displays an interface screen, there are often multiple regions with continuously changing content, such as an input box prompt text region, an animation region, a graphics interchange format (GIF) image region, a small video region, and the like. These regions with continuously changing content are referred to as dirty regions. The terminal device only needs to perform drawing and rendering and the like on the dirty regions to obtain a desired display screen. Drawing and rendering of the dirty regions by the terminal device can be understood as drawing and rendering of the user interface components contained in the dirty regions, where the user interface components are components used to develop and build a user interface (UI) and help complete the development of interface elements such as windows, text boxes, buttons, and drop-down menus in software development. Hereinafter, the user interface components are referred to as components. However, in the graphics system of the terminal device, the upstream and downstream links of the dirty region processing are very long. Generally, the graphics system performs component definition, occlusion relationship calculation between components, dirty region calculation, and the like. After the dirty region is determined, the central processing unit (CPU) (referred to as the processor) needs to find the components intersecting with the dirty region, generate corresponding drawing and rendering instructions, and send them to the graphics processing unit (GPU) side for processing.

[0047] The related art provides an assembly drawing method. In the drawing process of each frame image, scattered dirty areas in a window started by an application are normalized to obtain a continuous area, which is a redraw area. After the redraw area is determined, the components included in the redraw area are drawn. Exemplarily, the terminal device opens a dirty area manager for each application window, and opens a dirty area manager for other global components (such as a battery, a signal, a time, a system component, and the like) and dynamic effects (such as blurring and the like). Each dirty area manager stores a continuous area representing the redraw area of the window. Finally, the redraw areas are summarized for drawing rendering and the like. For example, as shown in FIG. 1, m applications are running on the terminal device. The terminal device opens m+1 dirty area managers D1, D2, …, Dm+1. Each dirty area manager stores a continuous area representing the redraw area of the corresponding application window. m+1 In the drawing rendering process of each frame image, for the application i (i = 1, …, m), the scattered dirty areas in the window are calculated first Then, the dirty areas are normalized to obtain a continuous area T i which satisfies Finally, the continuous areas T1, T2, …, Tm+1 m+1 constitute the redraw area. The components intersecting with the redraw area are drawn by the graphics system for rendering and the like.

[0048] However, in the case where the dirty areas are scattered, the area of the redraw area is much larger than the sum of the areas of all the dirty areas, that is, Since the redraw area includes the dirty areas and other components outside the dirty areas, when the redraw area becomes larger and the dirty areas remain unchanged, it means that the components outside the dirty areas increase. For example, as shown in FIG. 2, the display interface of the application 1 includes a plurality of dirty areas such as a “keyboard area”, “payment”, “sharing”, “small video”, “618 activity”, and the like. However, the redraw area determined by the terminal device according to the dirty areas is almost full screen, as shown in FIG. 3. In this way, the redraw area includes components such as “logistics center”, “search”, “goods 1”, “goods 2”, and “goods 3”, which are redrawn, causing redundant drawing, and resulting in large load and power consumption of the terminal device.

[0049] To solve the above technical problems, an assembly drawing method is provided in the embodiments of the present application, which comprises: obtaining a first display interface, the first display interface comprising M dirty areas, M being a positive integer greater than 2, and a dirty area being a region on the interface where the content has changed; determining N redraw areas according to the M dirty areas, N being a positive integer less than or equal to M and greater than 1, and a redraw area being a continuous region containing at least one dirty area; and drawing a first assembly having an intersection with the N redraw areas to obtain a second display interface comprising the M dirty areas and the N redraw areas. In the embodiments of the present application, the M dirty areas are determined as the N redraw areas, and the M dirty areas are combined into multiple redraw areas, which contain the components of the multiple dirty areas and less or no components of the regions other than the dirty areas. In the process of drawing the components of the redraw areas, the components of the regions other than the dirty areas are reduced, the redundant drawing is reduced, and the load and power consumption of the terminal device are reduced. In addition, the components of the multiple redraw areas are redrawn, which can support the future multi-area refreshing screen.

[0050] That is, the sum of the areas of the N redraw areas obtained in the embodiments of the present application is less than the sum of the areas of the redraw areas composed of the M dirty areas in the related art. When the area of the redraw area is reduced and the area of the dirty area is fixed, it means that the area of the region other than the dirty area contained in the redraw area is reduced, that is, the redraw area contains the components of the multiple dirty areas and less or no components of the regions other than the dirty areas, thereby reducing the drawing of most of the components other than the dirty areas, reducing the redundant drawing, and reducing the load and power consumption of the terminal device.

[0051] Among them, in the case that the M dirty areas do not overlap, the sum of the areas of the N redraw areas can be the same as or close to the sum of the areas of the M dirty areas. In the case that the M dirty areas overlap, the sum of the areas of the N redraw areas can be less than the sum of the areas of the M dirty areas.

[0052] Among them, the value of N can be dynamically changed, and the determination of the value of N can be related to the application, the scene, etc., which is not limited in the embodiments of the present application.

[0053] In an example, FIG. 4 is a flow diagram of a component rendering method provided by the embodiments of the present application. The difference between the component rendering method in FIG. 1 and the component rendering method in FIG. 4 is that the graphics system of the terminal device includes a dirty region calculator, a dirty region manager and a dirty region merger. The dirty region calculator is configured to calculate dirty regions. The dirty region manager is configured to collect dirty regions. The dirty region merger is configured to merge the dirty regions collected by the dirty region manager to obtain a plurality of continuous regions, which are redraw regions. Finally, the graphics system sends components having intersections of the redraw regions to a graphics processor for rendering and other processing operations. In the example shown in FIG. 2, the dirty regions shown in FIG. 2 are determined as the redraw regions by using the component rendering method provided by the embodiments of the present application, as shown in FIG. 5, the redraw region 1 includes the dirty regions of "keyboard area", "payment" and "share", and the redraw region 2 includes the dirty regions of "short video" and "618 activities". In this way, the redraw region 1 can include components such as "logistics center" and "search", but does not include components such as "commodity 1". The redraw region 2 also does not include components such as "commodity 1". It can be seen that the sum of the areas of the redraw region 1 and the redraw region 2 is smaller than the area of the redraw region shown in FIG. 1, and the total redraw region composed of the redraw region 1 and the redraw region 2 does not include components such as "commodity 1", so that the components outside the dirty regions included in the redraw region are reduced, the redundant rendering is reduced, and the load and power consumption of the terminal device are reduced.

[0054] Of course, the dirty region manager described above can be one or more. In an example, if the dirty region manager is one, the dirty region manager is configured to collect dirty regions of all applications and other components on the terminal device. In another example, if the dirty region manager is multiple, each dirty region manager corresponds to an application, and one dirty region manager corresponds to other components. Each dirty region manager acquires dirty regions and merges the dirty regions through the dirty region merger to obtain a plurality of redraw regions. In yet another example, the dirty region manager in the above example can preliminarily merge the collected dirty regions to obtain merged dirty regions, and merge the merged dirty regions through the dirty region merger to obtain a plurality of redraw regions. For example, in the process of preliminarily merging the dirty regions by the dirty region manager, the dirty regions can be merged once according to the identifiers of the dirty regions, which effectively avoids the repeated use of the dirty regions for merging, thereby preventing the repeated rendering of the dirty regions and reducing the redundant rendering. The details of each example can be referred to the related description below, and will not be described here. Similarly, the dirty region merger can perform a deduplication operation when merging dirty regions. For example, as shown in FIG. 4, the redundant instructions are removed, for example, the dirty region merger can merge the dirty regions once according to the identifiers of the dirty regions, thereby effectively avoiding the repeated use of the dirty regions for merging, so as to remove the redundant instructions and reduce the redundant rendering.

[0055] In some embodiments, as shown in FIG. 4, the component rendering method provided by the embodiments of the present application can determine N redraw areas according to the M dirty areas collected by the dirty area manager and the historical dirty areas stored in the historical dirty area storage module. By combining the historical dirty areas with the collected dirty areas to determine the redraw areas, the loss of content on the display interface can be effectively prevented, and the integrity of the content display can be ensured.

[0056] In some embodiments, the component rendering method provided by the embodiments of the present application further includes: not rendering a second component that has no intersection with the N redraw areas, which means not rendering the second component that is not included in the N redraw areas. In other words, not rendering the second component that is not in the N redraw areas. When the second display interface is displayed, the existing image of the second component is displayed on the second display interface. For example, as shown in FIG. 4, the historical image of the second component is obtained from the historical frame data storage module, and the historical image of the second component is displayed on the second display interface. In this way, the second component does not need to be re-rendered, which can effectively avoid redundant rendering and reduce the load and power consumption of the terminal device.

[0057] The terminal device described above can be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a notebook computer, a vehicle-mounted intelligent screen, an ultra-mobile personal computer (UMPC), a handheld computer, a smart television, a netbook, a virtual reality device, or other devices with display functions. The specific form of the terminal device is not specially limited in the embodiments of the present application. In the embodiments of the present application, the terminal device is taken as a mobile phone for example.

[0058] FIG. 6 is a structural block diagram of the terminal device described above. As shown in FIG. 6, the terminal device 600 can include a processor 110, a memory 120, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, a wireless communication module 150, and a display screen 160.

[0059] It can be understood that the structure shown in the embodiments of the present application does not constitute a specific limitation on the terminal device 600. In other embodiments of the present application, the terminal device 600 can include more or fewer components than those shown, or combine certain components, or split certain components, or different arrangement of components. The components shown can be implemented in hardware, software, or a combination of software and hardware.

[0060] The processor 110 can include one or more processing units, for example: the processor 110 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices, or can be integrated in one or more processors.

[0061] The controller can generate operation control signals according to instruction operation codes and timing signals, and complete the control of fetching and executing instructions.

[0062] The processor 110 can also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can save instructions or data that the processor 110 has just used or repeatedly uses. If the processor 110 needs to use the instructions or data again, it can directly call from the memory. Avoiding repeated access, reducing the waiting time of the processor 110, thus improving the efficiency of the system.

[0063] In some embodiments, the processor 110 can include a graphics system and a graphics processor. The graphics system can include a dirty region calculator, a dirty region manager, and a dirty region merger. Among them, the dirty region calculator is used to calculate the dirty region. The dirty region manager is used to obtain M dirty regions of the first display interface, M is a positive integer greater than 2, and the dirty region is the region of the interface where the content changes. The dirty region merger is used to determine N redraw regions according to the M dirty regions, N is a positive integer less than or equal to M and greater than 1, and the redraw region is a continuous region containing at least one dirty region. Then, the graphics system sends components with intersecting redraw regions to the graphics processor, and the image processor draws the first component with intersecting N redraw regions to obtain the second display interface, and the second display interface includes M dirty regions and N redraw regions.

[0064] The charging management module 140 is configured to receive charging input from a charger. The charger can be a wireless charger or a wired charger. In some embodiments with wired charging, the charging management module 140 can receive charging input from a wired charger through the USB interface 130. In some embodiments with wireless charging, the charging management module 140 can receive wireless charging input through a wireless charging coil of the terminal device 600. The charging management module 140 can charge the battery 142 and power the terminal device at the same time through the power management module 141.

[0065] The power management module 141 is configured to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, the memory 120, the display 160, the wireless communication module 150, etc. The power management module 141 can also be configured to monitor parameters such as battery capacity, battery cycle count, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be disposed in the processor 110. In some other embodiments, the power management module 141 and the charging management module 140 can also be disposed in the same device.

[0066] The wireless communication function of the terminal device 600 can be implemented through the antenna 1, the wireless communication module 150, the modem processor and the baseband processor, etc.

[0067] The antenna 1 is configured to transmit and receive electromagnetic wave signals. Each antenna in the terminal device 600 can be configured to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example, the antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0068] The wireless communication module 150 can provide a solution for wireless communication including wireless local area networks (WLAN) (e.g., wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc. applied to the terminal device 600. The wireless communication module 150 can be one or more devices that integrate at least one communication processing module. The wireless communication module 150 receives electromagnetic waves via the antenna 1, frequency-modulates and filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 150 can also receive signals to be transmitted from the processor 110, frequency-modulate them, amplify them, and radiate them as electromagnetic waves via the antenna 1.

[0069] In some embodiments, the antenna 1 and the wireless communication module 150 of the terminal device 600 are coupled, so that the terminal device 600 can communicate with a network and other devices through wireless communication technologies. The wireless communication technologies can include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS can include global positioning system (GPS), global navigation satellite system (GLONASS), beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS), and / or satellite based augmentation systems (SBAS).

[0070] The terminal device 600 implements a display function through a GPU, a display screen 160, and an application processor, etc. The GPU is a microprocessor for image processing, connected to the display screen 160 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 can include one or more GPUs that execute program instructions to generate or change display information.

[0071] The display screen 160 is configured to display images, videos, and the like. The display screen 160 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flex light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light emitting diodes (QLED), or the like. In some embodiments, the terminal device 600 can include one or N display screens 160, where N is a positive integer greater than 1.

[0072] The memory 120 can be configured to store computer-executable program code including instructions. The memory 120 can include a program storage area and a data storage area. The program storage area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, and the like), and the like. The data storage area can store data (such as audio data, a phone book, and the like) created during use of the terminal device 600, and the like.

[0073] Of course, the terminal device 600 can further include other functional units, which are not limited in the embodiments of the present application.

[0074] The component drawing method provided by the embodiments of the present application will be described below by taking the architecture shown in FIG. 6 as an example. Each unit in the following embodiments can have the components shown in FIG. 6, which will not be repeated. In addition, the actions and terms involved between the embodiments of the present application can be mutually referred to, which will not be limited.

[0075] Referring to FIG. 7, FIG. 7 is a software structure block diagram of a terminal device provided by an embodiment of the present application. As shown in FIG. 7, the layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through a software interface. In some possible implementation manners, the operating system of the terminal device can be divided into four layers, from top to bottom, an application program layer, an application program framework layer (or an application framework layer), a system service layer, and a kernel layer.

[0076] The application layer can include a series of application packages. As shown in FIG. 7, the application packages can include account application, Bluetooth, device management application (application with device management function), navigation, memo, WLAN, short message, gallery, camera, calendar, call, and the like.

[0077] The application framework layer provides application programming interface and programming framework for the applications of the application layer. The application framework layer includes some pre-defined functions. For example, the application interface can be an application programming interface (API) interface for providing the application with the function of implementing real-time blur of pictures. The real-time blur effect on the application is achieved by calling the API interface. The API interface will contain blur quality adjustment parameters, such as iteration round number, single round iteration number, or other parameters related thereto, so as to achieve flexible, efficient, and non-abrupt adjustment of blur quality and performance.

[0078] The application framework layer can include window manager, content provider, view system, resource manager, notification manager, and the like. As shown in FIG. 7, the application framework layer can also include graphics system, which can include dirty region calculator, dirty region manager, and dirty region merger. The dirty region calculator is used to compare the current frame image with the previous frame image and calculate the dirty region. The dirty region manager is used to collect M dirty regions of the first display interface. The dirty region merger is used to merge the M dirty regions collected by the dirty region manager to obtain N redraw regions, M is a positive integer greater than 1, and N is greater than 1 and less than or equal to M. The application framework layer can also include layer compositor, which is used to perform drawing rendering and layer composition on the components with intersection of the N redraw regions to obtain the image of the second display interface.

[0079] The window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, and intercept the screen, and the like.

[0080] The content provider is used to store and obtain data and make the data accessible to the application. The above-mentioned data can include video, image, audio, dialed and received calls, browsing history and bookmarks, phonebook, and the like.

[0081] The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and the like. The view system can be used to build the application. The display interface can be composed of one or more views. For example, the display interface including the short message notification icon can include a view for displaying text and a view for displaying pictures.

[0082] The resource manager provides various resources for applications, such as localized strings, icons, pictures, layout files, video files, and so on.

[0083] The notification manager enables an application to display notification information in the status bar, which can be used to convey a message of the notification type and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify the completion of a download, a message reminder, and the like. The notification manager can also be a notification in the form of a chart or a scroll bar text appearing in the system top status bar, such as a notification of an application running in the background, and can also be a notification in the form of a dialog interface appearing on the screen. For example, a text information is prompted in the status bar, a prompt sound is emitted, the terminal device vibrates, a light flashes, and the like.

[0084] The system service layer includes various services, which can be used to be responsible for the scheduling and management of the system.

[0085] The kernel layer is a layer between hardware and software. The kernel layer at least includes a display driver, a camera driver, an audio driver, and a sensor driver.

[0086] In an embodiment, based on the terminal device shown in FIG. 6, the working process of the software architecture of the terminal device shown in FIG. 7 can be as follows: Step ① The dirty region calculator of the application architecture layer calculates a dirty region to obtain M dirty regions of a first display interface. Step ② The dirty region manager of the application architecture layer collects the M dirty regions, and the M dirty regions include dirty regions of respective applications. Step ③ The dirty region manager sends information of the M dirty regions to the dirty region merger of the application architecture layer. The dirty region merger merges the M dirty regions into N redraw regions, where N is a positive integer greater than 1. Step ④ The dirty region merger sends information of the N redraw regions to the layer compositor of the application architecture layer. The layer compositor performs drawing rendering and layer composition according to the information of the N redraw regions to obtain an image of a second display interface. Step ⑤ The layer compositor sends the image to the display driver of the kernel layer for display.

[0087] A component drawing method provided by an embodiment of the present application is described in detail below. FIG. 8 is a flowchart of a component drawing method provided by an embodiment of the present application. As shown in FIG. 8, the execution subject of the method can be a terminal device, and the method can include the following steps:

[0088] S801, a first display interface is obtained, the first display interface includes M dirty regions, M is a positive integer greater than 2, and a dirty region is a region in which content on an interface changes.

[0089] The first display interface can be understood as a picture displayed on a display screen of a terminal device. The first display interface can include an application interface of at least one application, or can include other components other than applications, such as a battery, a signal, a time, a system component, and the like.

[0090] In Example 1, the first display interface includes an application interface of one application, which means that the application is displayed in full screen on the terminal device. At this time, the display screen of the terminal device displays the interface of the application. Then, the M dirty regions are regions in which the content of the application continuously changes.

[0091] In Example 2, the first display interface includes an application interface of one application and other components outside the application, which means that the application is displayed in half screen or partial screen on the terminal device. At this time, the display screen of the terminal device displays a combined screen of the interface of the application and the other components.

[0092] In Example 3, the first display interface includes application interfaces of at least two applications, which means that the at least two applications occupy partial regions on the terminal device. For example, the at least two applications include a first application and a second application, and the two applications are displayed in half screen on the terminal device. At this time, the display screen of the terminal device displays a combined screen of the application interfaces of the two applications.

[0093] In a possible implementation, in a case where the first display interface includes interfaces of multiple applications, S801 can be implemented as follows: obtaining dirty regions of the interfaces of the applications, and obtaining the first display interface and the M dirty regions of the first display interface according to the dirty regions of the interfaces of the applications.

[0094] In an example, the multiple applications include a first application and a second application. In a case where the first display interface includes a first interface of the first application and a second interface of the second application, m1 dirty regions of the first interface are obtained, m1 is a positive integer greater than or equal to 1; m2 dirty regions of the second interface are obtained, m2 is a positive integer greater than or equal to 1; and the first display interface and the M dirty regions of the first display interface are obtained according to the m1 dirty regions and the m2 dirty regions.

[0095] In another example, the multiple applications include a first application and a second application. In a case where the first display interface includes a first interface of the first application and a second interface of the second application, m1 dirty regions of the first interface are obtained, m1 is a positive integer greater than or equal to 1; m2 dirty regions of the second interface are obtained, m2 is a positive integer greater than or equal to 1; m3 dirty regions outside the first interface and the second interface are obtained, m3 is a positive integer greater than or equal to 1; and the first display interface and the M dirty regions of the first display interface are obtained according to the m1 dirty regions, the m2 dirty regions, and the m3 dirty regions.

[0096] In yet another example, the plurality of applications can include a first application and a second application, and in a case where the first display interface includes a first interface of the first application, a second interface of the second application, and other components, m1 dirty regions of the first interface are acquired, m1 being a positive integer greater than or equal to 1; m2 dirty regions of the second interface are acquired, m2 being a positive integer greater than or equal to 1; m3 dirty regions other than the first interface and the second interface are acquired, m3 being a positive integer greater than or equal to 1; and the first display interface and M dirty regions of the first display interface are obtained according to the m1 dirty regions, the m2 dirty regions, and the m3 dirty regions.

[0097] Of course, the plurality of applications described above is not limited to including the first application and the second application, and can also include a third application and a fourth application, and the like. In the embodiments of the present application, the plurality of applications is not specifically limited, and can be selected according to actual conditions in specific implementation.

[0098] In another possible implementation, S801 can be implemented by: calculating, by the dirty region manager, M regions of the content of the current frame image and the previous frame image displayed on the display screen of the terminal device that are continuously changed, and determining the M regions as the M dirty regions. The current frame image can be understood as the image of the first display interface, and the previous frame image can be understood as the image of the display interface before the first display interface. In the embodiments of the present application, the dirty regions of each application and the dirty regions of other components other than the applications are uniformly acquired, so that the acquisition of the dirty regions can be performed by one subject, the program is simple, and the development cost is reduced.

[0099] In yet another possible implementation, S801 can be implemented by: collecting, by each dirty region manager in the plurality of dirty region managers, a plurality of dirty regions of each application and dirty regions of other components other than the applications, to obtain the M dirty regions. In the embodiments of the present application, the dirty regions of each application are acquired separately, and the dirty regions other than the applications are acquired separately, so that the acquisition of the dirty regions can be performed by a plurality of subjects, effectively reducing the workload of the processor of the terminal device and reducing power consumption.

[0100] S802, according to the M dirty regions, determining N redraw regions, N being a positive integer less than or equal to M and greater than 1, and the redraw region being a continuous region containing at least one dirty region.

[0101] The value of N is not specifically limited. For example, when the number of continuous regions to be merged is greater than or equal to M, the dirty region merging step obtains M continuous regions, that is, N=M. When the number of continuous regions to be merged is less than M, the number of continuous regions obtained by the dirty region merging step is less than M, that is, 1

[0102] In a possible implementation, S802 can be implemented by merging at least two dirty regions in the M dirty regions according to a preset rule to obtain N redraw regions. For example, the preset rule can include: merging at least two dirty regions that are adjacent in position; or merging at least two dirty regions of the same application; or merging at least two dirty regions of the same application and adjacent in position; or merging at least two specified dirty regions.

[0103] In an example, the preset rule includes merging at least two dirty regions adjacent in position, and S802 can be implemented by merging at least two dirty regions adjacent in position in the M dirty regions to obtain N redraw regions. The adjacent in position can mean completely adjacent in position, or within a preset range. The preset range can be set according to actual conditions, and is not specifically limited in the embodiment of the present application. The following is a detailed description of the M dirty regions being dirty regions of the same application or different applications.

[0104] For example, the M dirty regions are dirty regions of one application, and according to the position information of each dirty region, at least two dirty regions adjacent in position or within a preset range in the M dirty regions are determined to form one redraw region, thereby determining N redraw regions. For example, continuing the above example, the dirty regions such as “keyboard region”, “payment” and “share” are adjacent in position, and these dirty regions form redraw region 1. The dirty regions such as “small video” and “618 activity” are adjacent in position, and these dirty regions form redraw region 2. Compared with the related art, redraw region 1 and redraw region 2 do not contain the component “commodity 1”. It can be seen that the N recombined regions in the embodiment of the present application contain fewer components (such as system components).

[0105] For example, the M dirty regions are dirty regions of at least two applications, and then, according to the position information of each dirty region, at least two dirty regions in the M dirty regions that are adjacent in position or satisfy a preset range are determined to form a redraw region, thereby determining N redraw regions. For example, as shown in FIG. 9, a terminal device displays an interface 901, and the interface 901 displays an interface 9011 of an application 2 and an interface 9012 of an application 3. The interface 9011 includes dirty regions such as “notification”, “radio”, “information 1”, and “information 2”. The interface 9012 includes dirty regions such as “sunscreen”, “check-in”, “discount 1”, and “discount 2”. It is calculated that “notification” and “radio” on the interface 9011 are adjacent to “sunscreen” and “check-in” on the interface 9012, and then, “notification”, “radio”, “sunscreen”, and “check-in” are grouped into a redraw region. Similarly, “information 1” on the interface 9011 is adjacent to “discount 1” on the interface 9012, and then, “information 1” and “discount 1” are grouped into another redraw region. “Information 2” on the interface 9011 is adjacent to “discount 2” on the interface 9012, and then, “information 2” and “discount 2” are grouped into another redraw region.

[0106] In another example, the preset rule includes merging at least two dirty regions of the same application, and then, S802 can be implemented as merging at least two dirty regions of the same application in the M dirty regions to obtain N redraw regions. For example, according to the identification of the dirty regions of each application, at least two dirty regions in the dirty regions of the same application are merged to obtain N redraw regions.

[0107] For example, the M dirty regions are dirty regions of at least two applications, and then, according to the position information of each dirty region, at least two dirty regions in the M dirty regions that are adjacent in position or satisfy a preset range are determined to form a redraw region, thereby determining N redraw regions. For example, as shown in FIG. 9, a terminal device displays an interface 901, and the interface 901 displays an interface 9011 of an application 2 and an interface 9012 of an application 3. The interface 9011 includes dirty regions such as “notification”, “radio”, “information 1”, and “information 2”. The interface 9012 includes dirty regions such as “sunscreen”, “check-in”, “discount 1”, and “discount 2”. It is calculated that “notification” and “radio” on the interface 9011 are adjacent to “sunscreen” and “check-in” on the interface 9012, and then, “notification”, “radio”, “sunscreen”, and “check-in” are grouped into a redraw region. Similarly, “information 1” on the interface 9011 is adjacent to “discount 1” on the interface 9012, and then, “information 1” and “discount 1” are grouped into another redraw region. “Information 2” on the interface 9011 is adjacent to “discount 2” on the interface 9012, and then, “information 2” and “discount 2” are grouped into another redraw region.

[0108] In the embodiments of the present application, at least two dirty regions in the M dirty regions are merged according to a preset rule to obtain N redraw regions, the redraw regions contain components of multiple dirty regions and less or no components outside the dirty regions. In the process of drawing the components of the redraw regions, the drawing of most components outside the dirty regions is reduced, the redundant drawing is reduced, and the load and power consumption of the terminal device are reduced. In addition, the components of multiple redraw regions are redrawn, which can support future multi-region refresh screen.

[0109] In some examples, in order to further reduce the area of the redraw region, at least two dirty regions in the M dirty regions are merged to obtain N redraw regions, which can be implemented as follows: determining the minimum region to which each dirty region in the M dirty regions belongs; merging the minimum regions corresponding to at least two dirty regions in the M dirty regions to obtain N redraw regions, and the sum of the areas of the N redraw regions is minimum. The shape of the minimum region can be any shape, such as a rectangle, a circle, a triangle, etc., which is not limited in the embodiments of the present application. For example, the minimum rectangle to which each dirty region in the M dirty regions belongs is determined, and for example, the position information of each dirty region in the display area of the display screen is used to determine the minimum rectangle to which the dirty region belongs; the minimum rectangles corresponding to at least two dirty regions in the M dirty regions are merged to obtain N redraw regions, and the N redraw regions are all rectangular regions, and the sum of the areas of the N redraw regions is minimum. For example, as shown in FIG. 9, the redraw region composed of “Information 1” and “Discount 1” is a rectangular region, which is a minimum rectangular region. In the embodiments of the present application, the minimum rectangles of the dirty regions are determined, and the minimum rectangles are merged to obtain multiple redraw regions, which are also all rectangular regions, and form the minimum rectangular region, further reducing the components contained outside the dirty regions, and further reducing the redundant drawing of the components.

[0110] Of course, each of the N redraw regions described above can be an irregular polygonal region. For example, continuing the example of FIG. 2, at least two adjacent dirty regions in the minimum rectangle to which each dirty region belongs are merged to obtain an irregular polygonal region, such as the redraw region 3 obtained by merging the dirty regions of “Keyboard region”, “Payment” and “Share” shown in FIG. 11, which is a polygonal region composed of two rectangular regions in a staggered manner. Similarly, the redraw region 4 obtained by merging the dirty regions of “Short video” and “618 activity” shown in FIG. 11, which is a polygonal region composed of two rectangular regions in a staggered manner. In this way, the redraw region with the minimum area can be obtained, so that the redraw region contains fewer components and more effectively reduces the redundant drawing.

[0111] In another possible implementation, the M dirty regions include m1 dirty regions of the first interface of the first application, m2 dirty regions of the second interface of the second application, and m3 dirty regions other than the first interface and the second interface. Accordingly, S802 can be implemented as follows: first, at least two dirty regions in the m1 dirty regions are merged to obtain n1 redraw regions, where n1 is a positive integer greater than 1. In an example, at least two dirty regions in the m1 dirty regions are merged by a first dirty region manager corresponding to the first application to obtain the n1 redraw regions. Second, at least two dirty regions in the m2 dirty regions are merged to obtain n2 redraw regions, where n2 is a positive integer greater than 1. In an example, at least two dirty regions in the m2 dirty regions are merged by a second dirty region manager corresponding to the second application to obtain the n2 redraw regions. Third, at least two dirty regions in the m3 dirty regions are merged to obtain n3 redraw regions, where n3 is a positive integer greater than 1. In an example, at least two dirty regions in the m3 dirty regions are merged by a third dirty region manager corresponding to other components globally to obtain the n3 redraw regions. Finally, at least two redraw regions in the n1 redraw regions, the n2 redraw regions, and the n3 redraw regions are merged to obtain the N redraw regions. In an example, at least two redraw regions in the n1 redraw regions, the n2 redraw regions, and the n3 redraw regions are merged by a fourth dirty region manager to obtain the N redraw regions. In the embodiments of this application, after the dirty regions of each application are separately obtained, preliminary processing can be performed on these dirty regions, such as preliminary merging, deduplication, and other operations, to further reduce the workload of the processor of the terminal device and reduce power consumption.

[0112] In yet another possible implementation, S802 can be implemented as follows: determining the N redraw regions according to the M dirty regions and historical dirty regions. The historical dirty regions can be understood as regions in which the content has continuously changed historically. For example, determining the N redraw regions according to the M dirty regions and the historical dirty regions can be implemented as follows: in a case where the M dirty regions and the historical dirty regions are consistent, determining the N redraw regions according to the M dirty regions; in a case where the M dirty regions and the historical dirty regions are inconsistent, determining the N redraw regions by aggregating the M dirty regions and the historical dirty regions. In the embodiments of this application, whether the M dirty regions and the historical dirty regions are consistent is determined, and in the case of consistency, the N redraw regions are determined according to the M dirty regions; in the case of inconsistency, the N redraw regions are determined by aggregating the M dirty regions and the historical dirty regions, effectively avoiding content loss, thereby ensuring the integrity of the picture obtained after drawing.

[0113] In yet another possible implementation, S802 can be implemented as follows: determining the N redraw regions by merging each dirty region in the M dirty regions once according to the identifiers of the M dirty regions. That is, each dirty region in the M dirty regions is used only once for merging, effectively preventing repeated use of a dirty region, and further effectively preventing repeated drawing of the dirty region, thereby further reducing redundant drawing.

[0114] S803, draw the first component intersecting with the N redrawing areas to obtain a second display interface, the second display interface comprising M dirty areas and N redrawing areas.

[0115] The first component intersecting with the N redrawing areas can be understood as a component contained in the N redrawing areas. That is, the N redrawing areas contain the component. Or, the N redrawing areas contain the component and the second display interface is obtained by redrawing the component.

[0116] In a possible implementation, S803 can be implemented as follows: the processor of the terminal device sends rendering instructions of the first component intersecting with the N redrawing areas to the graphic processor of the terminal device, the graphic processor performs rendering according to the rendering instructions, and performs layer composition to obtain image information. Then, the image information is displayed to obtain the second display interface.

[0117] In the embodiments of the present application, the M dirty areas are determined as the N redrawing areas, and the M dirty areas are combined into a plurality of small redrawing areas, the redrawing areas containing components of the plurality of dirty areas and containing few or no components of regions other than the dirty areas. In the process of drawing the components of the redrawing areas, the components of the regions other than the dirty areas are reduced, the redundant drawing is reduced, and the load and power consumption of the terminal device are reduced. In addition, the components of the plurality of redrawing areas are redrawn, which can support future multi-area refresh screen.

[0118] In some embodiments, the second display interface further comprises image corresponding to a second component, the second component being a component not intersecting with the N redrawing areas; as shown in FIG. 8, the component drawing method provided by the embodiments of the present application further comprises:

[0119] S804, do not draw the second component.

[0120] The second component does not intersect with the N redrawing areas, which means that the second component is not in the N redrawing areas. In this way, the second component does not need to be redrawn.

[0121] S805, display the existing image corresponding to the second component on the second display interface.

[0122] In a possible implementation, S805 can be implemented as follows: the historical image of the second component is obtained from the historical frame data storage module, and the historical image is displayed on the second display interface. The historical frame data storage module is used to store historical images of components.

[0123] In the embodiments of the present application, by not drawing the component not intersecting with the redrawing area, repeated drawing of the component without change is effectively avoided, and redundant drawing is reduced. The generation of redundant drawing instructions and the GPU redundant drawing area can be reduced, and the load and power consumption of the terminal device can be reduced.

[0124] In actual application, taking FIG. 2 as an example, compared with one redrawing area shown in FIG. 3 obtained by the component drawing method provided by the related art, the number of function calls, the number of instructions, power consumption, and rendering time are obviously reduced by the plurality of redrawing areas shown in FIG. 5 obtained by the component drawing method provided by the embodiment of the present application.

[0125] Based on the component drawing method shown in FIG. 8, the embodiment of the present application further provides a component drawing device. FIG. 12 is a structural block diagram of a component drawing device provided by the embodiment of the present application. The device 1200 includes:

[0126] The obtaining module 1201 is configured to obtain a first display interface, the first display interface including M dirty regions, M being a positive integer greater than 2, and a dirty region being a region in which content of an interface changes. The obtaining module 1201 can perform the steps of S801 described above. The obtaining module 1201 can be the dirty region manager described above.

[0127] The determining module 1202 is configured to determine N redrawing regions according to the M dirty regions, N being a positive integer less than or equal to M and greater than 1, and a redrawing region being a continuous region including at least one dirty region. The determining module 1202 can perform the steps of S802 described above. The determining module 1202 can be the dirty region merger described above.

[0128] The drawing module 1203 is configured to draw a first component intersecting with the N redrawing regions to obtain a second display interface, the second display interface including the M dirty regions and the N redrawing regions. The drawing module 1203 can perform the steps of S803 described above. The drawing module 1203 can be the layer compositor described above.

[0129] In a possible implementation, the determining module 1202 is configured to merge at least two dirty regions in the M dirty regions according to a preset rule to obtain the N redrawing regions.

[0130] In a possible implementation, the preset rule includes: a rule of merging at least two dirty regions that are adjacent in position; or a rule of merging at least two dirty regions of a same application; or a rule of merging at least two dirty regions of the same application and adjacent in position; or a rule of merging at least two specified dirty regions.

[0131] In a possible implementation, the determining module 1202 is configured to determine a minimum region to which each dirty region in the M dirty regions belongs; and merge the minimum regions corresponding to at least two dirty regions in the M dirty regions to obtain the N redrawing regions, the sum of areas of the N redrawing regions being minimum.

[0132] In a possible implementation, the first display interface includes a first interface of the first application and a second interface of the second application, the obtaining module 1201 is configured to: obtain m1 dirty regions of the first interface, m1 being a positive integer greater than or equal to 1; obtain m2 dirty regions of the second interface, m2 being a positive integer greater than or equal to 1; obtain m3 dirty regions other than the first interface and the second interface, m3 being a positive integer greater than or equal to 1; and obtain the first display interface according to the m1 dirty regions, the m2 dirty regions, and the m3 dirty regions.

[0133] In a possible implementation, the determining module 1202 is configured to: combine at least two dirty regions in the m1 dirty regions to obtain n1 redraw regions, n1 being a positive integer greater than 1; combine at least two dirty regions in the m2 dirty regions to obtain n2 redraw regions, n2 being a positive integer greater than 1; combine at least two dirty regions in the m3 dirty regions to obtain n3 redraw regions, n3 being a positive integer greater than 1; and combine at least two redraw regions in the n1 redraw regions, the n2 redraw regions, and the n3 redraw regions to obtain N redraw regions.

[0134] In a possible implementation, the second display interface further includes an image corresponding to a second component, the second component being a component that has no intersection with the N redraw regions; the drawing module 1203 is configured to not draw the second component, and display an existing image corresponding to the second component on the second display interface. For example, the drawing module 1203 can perform the steps in S804 and S805 described above.

[0135] In a possible implementation, the determining module 1202 is configured to determine the N redraw regions according to the M dirty regions and the historical dirty regions.

[0136] In a possible implementation, the determining module 1202 is configured to: in a case where the M dirty regions and the historical dirty regions are consistent, determine the N redraw regions according to the M dirty regions; and in a case where the M dirty regions and the historical dirty regions are inconsistent, determine the N redraw regions by aggregating the M dirty regions and the historical dirty regions.

[0137] It should be understood that the apparatus provided in FIG. 12 is only taken as an example in the implementation of its functions, and in actual applications, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules to complete all or part of the above-described functions. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process is detailed in the method embodiments, which will not be described here.

[0138] Referring to FIG. 13, FIG. 13 shows a structural diagram of a terminal device 1300 according to an example embodiment of the present application. The terminal device 1300 shown in FIG. 13 is configured to perform operations involved in the component mapping method shown in FIG. 8. The terminal device 1300 can be implemented by a general bus architecture.

[0139] As shown in FIG. 13, the terminal device 1300 includes at least one processor 1301, a memory 1303, and at least one communication interface 1304.

[0140] The processor 1301 is, for example, a general central processing unit (CPU), a digital signal processor (DSP), a network processer (NP), a graphics processing unit (GPU), a neural-network processing units (NPU), a data processing unit (DPU), a microprocessor, or one or more integrated circuits used to implement the schemes of the present application. For example, the processor 1301 includes an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or other programmable logic device, transistor logic, a hardware component, or any combination thereof. The PLD is, for example, a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof. It can implement or execute various logical blocks, modules, and circuits described in connection with the disclosure of the embodiments of the present application. The processor can also be a combination of computing functions, such as one or more microprocessor combinations, combinations of DSP and microprocessor, and the like.

[0141] Optionally, the terminal device 1300 further includes a bus. The bus is used to transmit information between the components of the terminal device 1300. The bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in FIG. 13, but it does not mean that there is only one bus or only one type of bus.

[0142] The memory 1303 is, for example, a read-only memory (ROM) or other type of static storage device that can store static information and instructions, or a random access memory (RAM), or other type of dynamic storage device that can store information and instructions for execution by the processor 1301, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM), or other optical disk storage, a magnetic disk storage or other magnetic storage devices, or any other medium capable of storing desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto. The memory 1303 is, for example, independent and connected to the processor 1301 through the bus. The memory 1303 can also be integrated with the processor 1301.

[0143] The communication interface 1304 is configured to communicate with other devices or communication networks, which can be an Ethernet, a radio access network (RAN), a wireless local area networks (WLAN), or the like, using any transceiver-like mechanism. The communication interface 1304 can include a wired communication interface and / or a wireless communication interface. Specifically, the communication interface 1304 can be an Ethernet interface, a fast Ethernet (FE) interface, a gigabit Ethernet (GE) interface, an asynchronous transfer mode (ATM) interface, a wireless local area networks (WLAN) interface, a cellular network communication interface, or a combination thereof. The Ethernet interface can be an optical interface, an electrical interface, or a combination thereof. In embodiments of the present application, the communication interface 1304 can be configured to enable the terminal device 1300 to communicate with other devices.

[0144] In particular implementations, as one example, the processor 1301 can include one or more CPUs, such as CPU0 and CPU1 as shown in FIG. 13. Each of these processors can be a single-CPU processor or a multi-CPU processor. A processor, as used herein, can refer to one or more devices, circuits, and / or processing cores for processing data, such as computer program instructions.

[0145] In particular implementations, as one example, the terminal device 1300 can include multiple processors, such as the processor 1301 and the processor 1305 as shown in FIG. 13. Each of these processors can be a single-CPU processor or a multi-CPU processor. A processor, as used herein, can refer to one or more devices, circuits, and / or processing cores for processing data, such as computer program instructions.

[0146] In a specific implementation, as an embodiment, the terminal device 1300 can further include an output device and an input device. The output device and the processor 1301 communicate, and can display information in various ways. For example, the output device can be a liquid crystal display (LCD), a light emitting diode (LED) terminal device, a cathode ray tube (CRT) terminal device, or a projector, etc. The input device and the processor 1301 communicate, and can receive user input in various ways. For example, the input device can be a mouse, a keyboard, a touch screen device, or a sensor device, etc.

[0147] In some embodiments, the memory 1303 is configured to store program code 1310 for implementing the solutions of the present application, and the processor 1301 can execute the program code 1310 stored in the memory 1303. That is, the terminal device 1300 can implement the component drawing method provided by the method embodiments through the processor 1301 and the program code 1310 in the memory 1303. The program code 1310 can include one or more software modules. Alternatively, the processor 1301 itself can also store program codes or instructions for implementing the solutions of the present application.

[0148] In specific embodiments, the terminal device 1300 of the embodiments of the present application can correspond to the computing device in the above-mentioned various method embodiments.

[0149] The steps of the component drawing method shown in FIG. 8 are completed by the integrated logic circuit of hardware or the instructions in the form of software in the processor of the terminal device 1300. The steps of the method disclosed in the embodiments of the present application can be directly embodied as being executed by the hardware processor, or executed by the combination of hardware and software modules in the processor. The software module can be located in a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, or other mature storage media in the art. The storage medium is located in the memory, and the processor reads the information in the memory and combines the hardware to complete the steps of the above-mentioned method. To avoid repetition, it will not be described in detail here.

[0150] The embodiments of the present application also provide a terminal device. The device includes a processor configured to load and run at least one instruction to enable the terminal device to implement the component drawing method provided by the embodiments of the present application. Optionally, the device further includes a memory coupled to the processor, and the memory is configured to store at least one instruction.

[0151] The embodiment of the present application further provides a computer readable storage medium, at least one instruction is stored in the storage medium, the instruction is loaded and executed by a processor, so that the computer implements the component drawing method according to any one of the above.

[0152] The embodiment of the present application further provides a computer program (product), when the computer program is executed by a computer, can make the processor or the computer execute the corresponding steps and / or processes in the above method embodiment.

[0153] The embodiment of the present application further provides a chip, the chip includes a processor, for calling and running instructions stored in a memory, so that the device installed with the chip executes the component drawing method according to any one of the above.

[0154] The embodiment of the present application further provides another chip, including: an input interface, an output interface, a processor and a memory, the input interface, the output interface, the processor and the memory are connected through internal connection paths, the processor is used to execute the code in the memory, when the code is executed, the processor is used to execute the component drawing method according to any one of the above.

[0155] In the above embodiment, all or part can be realized by software, hardware, firmware or any combination thereof. When realized by software, all or part can be realized in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable devices. The computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another, for example, the computer instructions can be transferred from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.). The computer readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media. The available medium can be a magnetic medium (for example, floppy disk, hard disk, magnetic tape), optical medium (for example, DVD) or semiconductor medium (for example, solid state disk) and the like.

[0156] It should be noted that the information (including but not limited to user equipment information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.) and signals involved in the present application are authorized by the user or fully authorized by all parties, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0157] Those skilled in the art can appreciate that, in combination with the method steps and modules described in the embodiments disclosed herein, all or part of the steps can be realized by software, hardware, firmware or any combination thereof. In order to clearly illustrate the interchangeability of hardware and software, the steps and components of the embodiments have been generally described in the above description. Whether the functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0158] Those skilled in the art can understand that all or part of the steps of the above-mentioned embodiments can be completed by hardware, or by program to instruct related hardware, which can be stored in a computer readable storage medium. The storage medium mentioned above can be read-only memory, magnetic disk or optical disk, etc.

[0159] When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer program instructions. As an example, the method of the embodiments of the present application can be described in the context of machine executable instructions, such as program modules executed in devices included in the target real or virtual processor. Generally, program modules include routines, programs, libraries, objects, classes, components, data structures, etc., which perform specific tasks or implement specific abstract data structures. In various embodiments, the functions of the program modules can be combined or divided among the described program modules. Machine executable instructions for program modules can be executed within local or distributed devices. In distributed devices, program modules can be located in both local and remote storage media.

[0160] The computer program code implementing the method of the embodiments of the present application can be written in one or more programming languages. These computer program codes can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, when executed by the computer or other programmable data processing apparatus, produce the functions / operations specified in the flow diagrams and / or block diagrams. The computer program code can be executed entirely on a computer, partially on a computer, as a stand-alone software package, partially on a computer and partially on a remote computer or entirely on a remote computer or server.

[0161] In the context of the embodiments of the present application, the computer program code or related data can be carried by any suitable carrier, so that the device, apparatus or processor can perform the various processes and operations described above. Examples of the carrier include a signal, a computer readable medium, etc.

[0162] Examples of the signal can include an electrical, optical, radio, sound or other forms of propagated signals, such as a carrier wave, an infrared signal, etc.

[0163] The machine readable medium can be any tangible medium that includes or stores the program for or in relation to the instruction execution system, apparatus or device. The machine readable medium can be a machine readable signal medium or a machine readable storage medium. The machine readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared or semiconductor system, apparatus or device, or any suitable combination thereof. More detailed examples of the machine readable storage medium include an electrical connection with one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read only memory (ROM), an erasable programmable read only memory (EPROM or flash memory), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0164] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above described system, device and module can refer to the corresponding processes in the foregoing method embodiments, which will not be described here.

[0165] In several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the above described device embodiments are merely schematic, for example, the division of the module is only a logical function division, and actual implementation can have another division manner, for example, a plurality of modules or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed each other can be indirect coupling or communication connection through some interfaces, devices or modules, and can also be electrical, mechanical or other form of connection.

[0166] The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, i.e., may be located in one place, or may be distributed to multiple network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the embodiments of the present application.

[0167] In addition, the functional modules in each embodiment of the present application can be integrated into one processing module, or each module can exist physically alone, or two or more modules can be integrated into one module. The integrated module can be realized in the form of hardware or in the form of a software functional module.

[0168] The integrated module, if realized in the form of a software functional module and sold or used as an independent product, can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application essentially or the part that contributes to the prior art, or all or part of the technical solutions can be embodied in the form of a software product, which is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.

[0169] In the present application, the terms "first", "second", and the like are used to distinguish between items or similar items with substantially the same function and should be understood that there is no logical or chronological dependency between "first", "second", and "nth", and the quantity and execution order are not limited. It should also be understood that although the following description uses the terms first, second, and the like to describe various elements, these elements should not be limited by the terms. These terms are only used to distinguish one element from another. For example, without departing from the scope of various described examples, a first image can be referred to as a second image, and similarly, a second image can be referred to as a first image. The first image and the second image can both be images, and in some cases, can be separate and distinct images.

[0170] It should also be understood that in various embodiments of the present application, the size of the serial number of each process does not mean the order of execution, and the execution order of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0171] The term "at least one", as used herein, means one or more, the term "multiple", as used herein, means two or more, for example, a plurality of second packets means two or more second packets. The terms "system" and "network" are often used interchangeably herein.

[0172] It should be understood that the terms used in the description of various described examples herein are merely for describing specific examples and are not intended to be limiting. As used in the description of various described examples and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

[0173] It should also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items. The term "and / or", is a description of associating relationship between associated objects, means that there can be three kinds of relationships, for example, A and / or B, can represent: A exists alone, A and B exist together, B exists alone. In addition, the character " / " in the present application generally represents that the front and rear associated objects are a kind of "or" relationship.

[0174] It should also be understood that the term "comprise", also known as "includes", "including", "comprises" and / or "comprising", when used in the present specification specifies the presence of stated features, integers, steps, operations, elements, and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0175] It should also be understood that the terms "if" and "when" can be interpreted to mean "when" or "upon" or "in response to a determination" or "in response to detecting". Similarly, the phrase "if determined" or "if detected [a stated condition or event]" can be interpreted to mean "upon determining" or "in response to determining" or "upon detecting [a stated condition or event]" or "in response to detecting [a stated condition or event]", depending on the context.

[0176] It should be understood that determining B according to A does not mean that B is determined only according to A, but B can also be determined according to A and / or other information.

[0177] It is also to be understood that the use of "an" or "the" article is not intended to supersede the use of "comprising" or "including" wherein specifically recited steps can or can not be required. Likewise, the use of "a" or "an" is expressly limited to "one or more" unless explicitly stated otherwise. Furthermore, the use of the term "including" as well as "comprising" is not limiting and is specifically intended to be read as "including but not limited to" or "comprising but not limited to," respectively.

Claims

1. An assembly drawing method, characterized by, The method comprises: obtaining a first display interface, the first display interface comprising M dirty regions, M being a positive integer greater than 2, the dirty region being a region on the interface where the content changes; determining N redraw regions according to the M dirty regions, N being a positive integer less than or equal to M and greater than 1, the redraw region being a continuous region containing at least one dirty region; drawing a first component intersecting the N redraw regions to obtain a second display interface, the second interface comprising the M dirty regions and the N redraw regions.

2. The method of claim 1, wherein, The determining N redraw regions according to the M dirty regions comprises: merging at least two dirty regions in the M dirty regions according to a preset rule to obtain the N redraw regions.

3. The method of claim 2, wherein, The preset rule comprises: merging at least two dirty regions adjacent in position; or merging at least two dirty regions of the same application; or merging at least two dirty regions of the same application and adjacent in position; or merging at least two specified dirty regions.

4. The method according to claim 2 or 3, characterized in that, The merging at least two dirty regions in the M dirty regions to obtain the N redraw regions comprises: determining the smallest region to which each dirty region in the M dirty regions belongs; merging the smallest regions corresponding to at least two dirty regions in the M dirty regions to obtain the N redraw regions, the sum of the areas of the N redraw regions being the smallest.

5. The method according to any one of claims 1-4, characterized in that, The first display interface comprises a first interface of a first application and a second interface of a second application, and the determining N redraw regions according to the M dirty regions comprises: merging at least two dirty regions in m1 dirty regions to obtain n1 redraw regions, n1 being a positive integer greater than 1, the m1 dirty regions being dirty regions on the obtained first interface; merging at least two dirty regions in m2 dirty regions to obtain n2 redraw regions, n2 being a positive integer greater than 1, the m2 dirty regions being dirty regions on the obtained second interface; merging at least two dirty regions in m3 dirty regions to obtain n3 redraw regions, n3 being a positive integer greater than 1, the m3 dirty regions being dirty regions other than the first interface and the second interface; merging at least two redraw regions in the n1 redraw regions, the n2 redraw regions and the n3 redraw regions to obtain the N redraw regions.

6. The method according to any one of claims 1-5, characterized in that, The second display interface further comprises an image corresponding to a second component, the second component being a component not intersecting the N redraw regions; the method further comprises: not drawing the second component; displaying an existing image corresponding to the second component on the second display interface.

7. The method according to any one of claims 1 to 6, characterized in that, The determining N redraw regions according to the M dirty regions comprises: determining N redraw regions according to the M dirty regions and historical dirty regions.

8. The method of claim 7, wherein, The determining N redraw regions according to the M dirty regions and historical dirty regions comprises: in a case where the M dirty regions and the historical dirty regions are consistent, determining N redraw regions according to the M dirty regions; in a case where the M dirty regions and the historical dirty regions are inconsistent, determining N redraw regions by aggregating the M dirty regions and the historical dirty regions.

9. The method of claim 5, wherein, The obtaining a first display interface comprises: obtaining m1 dirty regions of the first interface, m1 being a positive integer greater than or equal to 1; m2 dirty regions of the second interface are acquired, m2 being a positive integer greater than or equal to 1; m3 dirty regions other than the first interface and the second interface are acquired, m3 being a positive integer greater than or equal to 1; The first display interface is obtained according to the m1 dirty regions, the m2 dirty regions and the m3 dirty regions.

10. An assembly drawing device, comprising: The apparatus comprises: An acquisition module is configured to acquire a first display interface, the first display interface comprising M dirty regions, M being a positive integer greater than 2, the dirty region being a region of the interface in which content has changed; A determination module is configured to determine N redraw regions according to the M dirty regions, N being a positive integer less than or equal to M and greater than 1, the redraw region being a continuous region containing at least one dirty region; A drawing module is configured to draw a first component intersecting the N redraw regions to obtain a second display interface, the second display interface comprising the M dirty regions and the N redraw regions.

11. The apparatus of claim 10, wherein, The determination module is configured to merge at least two dirty regions in the M dirty regions according to a preset rule to obtain the N redraw regions.

12. The apparatus of claim 11, wherein, The preset rule comprises: a rule of merging at least two dirty regions that are adjacent in position; or a rule of merging at least two dirty regions of the same application; or a rule of merging at least two dirty regions of the same application and adjacent in position; or a rule of merging at least two specified dirty regions.

13. The apparatus of claim 11 or 12, wherein, The determination module is configured to determine a minimum region to which each dirty region in the M dirty regions belongs; and merge the minimum regions corresponding to at least two dirty regions in the M dirty regions to obtain the N redraw regions, the sum of the areas of the N redraw regions being minimum.

14. The apparatus of any one of claims 10-13, wherein, The first display interface comprises a first interface of a first application and a second interface of a second application, and the determination module is configured to: merge at least two dirty regions in m1 dirty regions to obtain n1 redraw regions, n1 being a positive integer greater than 1, the m1 dirty regions being dirty regions on the first interface acquired; merge at least two dirty regions in m2 dirty regions to obtain n2 redraw regions, n2 being a positive integer greater than 1, the m2 dirty regions being dirty regions on the second interface acquired; merge at least two dirty regions in m3 dirty regions to obtain n3 redraw regions, n3 being a positive integer greater than 1, the m3 dirty regions being dirty regions other than the first interface and the second interface acquired; merge at least two redraw regions in the n1 redraw regions, the n2 redraw regions and the n3 redraw regions to obtain the N redraw regions.

15. The apparatus of any one of claims 10-14, wherein, The second display interface further comprises an image corresponding to a second component, the second component being a component not intersecting the N redraw regions; the drawing module is configured to not draw the second component and display an existing image corresponding to the second component on the second display interface.

16. The apparatus of any one of claims 10-15, wherein, The determination module is configured to determine N redraw regions according to the M dirty regions and historical dirty regions.

17. The apparatus of claim 16, wherein, The determination module is configured to: when the M dirty regions and the historical dirty regions are consistent, determine N redraw regions according to the M dirty regions; and when the M dirty regions and the historical dirty regions are inconsistent, determine N redraw regions by aggregating the M dirty regions and the historical dirty regions.

18. The apparatus of claim 14, wherein, The obtaining module is configured to: obtain m1 dirty regions of the first interface, m1 being a positive integer greater than or equal to 1; obtain m2 dirty regions of the second interface, m2 being a positive integer greater than or equal to 1; obtain m3 dirty regions other than the first interface and the second interface, m3 being a positive integer greater than or equal to 1; obtain the first display interface according to the m1 dirty regions, the m2 dirty regions, and the m3 dirty regions.

19. A terminal device, comprising: The terminal device comprises a memory and a processor; the memory stores at least one instruction, the at least one instruction is loaded and executed by the processor, so that the terminal device implements the method in any one of claims 1-9.

20. A computer-readable storage medium, characterized in that, The computer readable storage medium stores at least one instruction, the instruction is loaded and executed by the processor to implement the method in any one of claims 1-9.

21. A computer program product, characterised in that, The computer program product comprises computer programs / instructions, which are executed by the processor to enable the computer to implement the method in any one of claims 1-9.

Citation Information

Patent Citations

  • Method and device for redrawing two-dimension vector graphics

    CN101593354A

  • Partial refreshing method and device based on display list

    CN105528217A

  • Handwriting increment rendering method and device for electronic whiteboard

    CN117472259A

  • Graphical interface updating method and device

    WO2017129105A1