Interface display method and device and storage medium
By filtering the drawing requests of the terminal device and only the necessary layers are drawn, the problems of large data transmission volume and high power consumption in different processes in the terminal device are solved, and the power consumption reduction and user experience are balanced.
Patent Information
- Application Number
- CN202311406061.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-26
- Publication Date
- 2025-04-29
AI Technical Summary
During use, terminal equipment needs to continuously draw and update the displayed content, resulting in large amount of data transmission between different processes and high power consumption.
By generating a drawing request and filtering based on the status information of the processes in the terminal device, a target drawing request is obtained, and the target layer is drawn only based on the target drawing request and displayed in the display interface.
The amount of data transmission between different processes is reduced, the power consumption of terminal devices is reduced, and without affecting the user experience.
Smart Images

Figure CN119902655A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of terminal control technology, and in particular to an interface display method, device and storage medium. Background Art
[0002] As the hardware configuration of terminal devices becomes higher and higher, users have higher and higher requirements on the display effects of terminal devices. During the use of terminal devices, it is necessary to continuously draw display content and display it on the display interface of the terminal devices.
[0003] In the related art, during use, the terminal device generates a drawing request in response to a control operation, and after each drawing request is generated, cross-process data is obtained according to the drawing request and the display content is drawn, so that the amount of data transmission between different processes is large, resulting in high power consumption of the terminal device. Summary of the invention
[0004] In order to overcome the problems existing in the related art, the present disclosure provides an interface display method, device, and storage medium, which can reduce the amount of data transmission between different processes in a terminal device.
[0005] According to a first aspect of an embodiment of the present disclosure, there is provided an interface display method, including:
[0006] In response to a control operation on a terminal device, generating at least one drawing request corresponding to the control operation, and determining state information of a process in the terminal device, each of the drawing requests being associated with a piece of state information;
[0007] Filter the drawing request according to the state information to obtain a target drawing request;
[0008] A target layer is drawn according to the target drawing request, and the target layer is displayed in a display interface of the terminal device.
[0009] Optionally, in response to a control operation on a terminal device, generating at least one drawing request corresponding to the control operation includes:
[0010] In response to a triggering operation on an application component displayed on a terminal device, when a thread corresponding to the application component is started for the first time, at least one drawing request is generated; or,
[0011] In response to a sliding operation triggered on a screen of the terminal device, at least one drawing request corresponding to the sliding operation is generated.
[0012] Optionally, in response to a control operation on a terminal device, generating at least one drawing request corresponding to the control operation includes:
[0013] In response to a control operation on a terminal device, determining a preset mark of a component corresponding to the control operation, wherein the preset mark is used to mark a display processing mode of the component;
[0014] When the preset mark indicates that blur display processing is performed on the component, at least one drawing request is generated.
[0015] Optionally, the filtering the drawing request according to the state information to obtain a target drawing request includes:
[0016] When the state information satisfies a preset drawing rule, the drawing request associated with the state information is used as a target drawing request.
[0017] Optionally, when the state information satisfies a preset drawing rule, taking the drawing request associated with the state information as a target drawing request includes:
[0018] In a case where the state information satisfies a first preset drawing rule, taking a drawing request associated with the state information as a first target drawing request;
[0019] Drawing the target layer according to the target drawing request includes:
[0020] Determine the control layer corresponding to the control operation, and obtain display data of other layers to be displayed under the control layer;
[0021] According to the first target drawing request, draw the partial layer corresponding to the display data and the control layer according to the screen refresh frequency of the terminal device
[0022] The partial layer is superimposed on the control layer to obtain a target layer.
[0023] Optionally, when the state information satisfies a preset drawing rule, taking the drawing request associated with the state information as a target drawing request includes:
[0024] When the state information does not satisfy the first preset drawing rule but satisfies the second preset drawing rule, taking the drawing request associated with the state information as the second target drawing request;
[0025] Drawing the target layer according to the target drawing request includes:
[0026] Determine the control layer corresponding to the control operation, and obtain display data of other layers to be displayed under the control layer;
[0027] According to the second target drawing request, drawing a part of the layer corresponding to the display data at a preset frequency, and drawing the control layer at a screen refresh frequency of the terminal device;
[0028] The partial layer is superimposed on the control layer to obtain a target layer, and the preset frequency is less than the screen refresh frequency.
[0029] Optionally, the first preset drawing rule includes at least one of the following:
[0030] The number of layers associated with the target drawing request is greater than or less than the number of layers associated with the previous drawing request;
[0031] The start time of the process triggered by the control operation is less than the first preset time;
[0032] There is an angle difference between the layer display direction associated with the target drawing request and the layer display direction associated with the previous drawing request.
[0033] Optionally, the second preset drawing rule is: the layer associated with the target drawing request is the top layer, the data of the layer associated with the target drawing request is different from the data of the layer associated with the previous drawing request, and the time interval between the target drawing request and the previous drawing request is greater than a second preset duration.
[0034] According to a second aspect of an embodiment of the present disclosure, there is provided an interface display device, including:
[0035] A response module, configured to generate at least one drawing request corresponding to the control operation in response to the control operation on the terminal device, and determine the state information of the process in the terminal device, each of the drawing requests being associated with a state information;
[0036] A screening module, used for screening the drawing request according to the state information to obtain a target drawing request;
[0037] The control module is used to draw a target layer according to the target drawing request and display the target layer in the display interface of the terminal device.
[0038] According to a third aspect of an embodiment of the present disclosure, there is provided an interface display device, including:
[0039] processor;
[0040] a memory for storing processor-executable instructions;
[0041] Wherein, the processor is configured to:
[0042] In response to a control operation on a terminal device, generating at least one drawing request corresponding to the control operation, and determining state information of a process in the terminal device, each of the drawing requests being associated with a piece of state information;
[0043] Filter the drawing request according to the state information to obtain a target drawing request;
[0044] A target layer is drawn according to the target drawing request, and the target layer is displayed in a display interface of the terminal device.
[0045] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the interface display method provided in the first aspect of the present disclosure are implemented.
[0046] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: at least one drawing request for a control operation of a terminal device may be generated, the drawing request may be screened according to the status information of a process in the terminal device to obtain a target drawing request, a target layer may be drawn according to the target drawing request, and the target layer may be displayed in a display interface of the terminal device. By screening the drawing request to obtain the target drawing request, and drawing the target layer according to the target drawing request, it is avoided to respond to each drawing request, thereby reducing the amount of data transmission between different processes and reducing the power consumption of the terminal device.
[0047] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0049] Figure 1 The figure is a flow chart of an interface display method according to an exemplary embodiment.
[0050] Figure 2 The diagram is a schematic diagram showing a cross-process data flow according to an exemplary embodiment.
[0051] Figure 3a The diagram is a schematic diagram of an application component for triggering a terminal device to display an interface according to an exemplary embodiment.
[0052] Figure 3b The diagram is a schematic diagram showing triggering screen sliding of a terminal device according to an exemplary embodiment.
[0053] Figure 3cis another schematic diagram showing triggering screen sliding of a terminal device according to an exemplary embodiment.
[0054] Figure 4 is a flowchart of step S11 according to an exemplary embodiment.
[0055] Figure 5 is a flowchart of step S13 according to an exemplary embodiment.
[0056] Figure 6 is another flow chart of step S13 according to an exemplary embodiment.
[0057] Figure 7 is a schematic diagram of a rendering hierarchy structure according to an exemplary embodiment.
[0058] Figure 8 The present invention is another flow chart of an interface display method according to an exemplary embodiment.
[0059] Fig. 9 The figure is a block diagram of an interface display device according to an exemplary embodiment.
[0060] Fig.10 is another block diagram of an interface display device according to an exemplary embodiment. DETAILED DESCRIPTION
[0061] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0062] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.
[0063] As mentioned in the background technology, when a user performs a control operation on a terminal device, the terminal device starts a process corresponding to the control operation, executes all drawing requests corresponding to the control operation, and continuously obtains cross-process data, so that the amount of data transmission between different processes is large, resulting in high power consumption of the terminal device.
[0064] In the prior art, the drawing request is executed according to the refresh frequency of the display interface of the terminal device, and the refresh frequency of the display interface of the terminal device is high, which increases the workload of the terminal device in drawing the display content, resulting in further increase in the power consumption of the terminal device.
[0065] In view of this, the present disclosure provides an interface display method, device and storage medium, which reduce the amount of data transmission between different processes in a terminal device by screening drawing requests.
[0066] Figure 1 is a flow chart of an interface display method according to an exemplary embodiment. Figure 1 As shown, the interface display method is used in a terminal and includes the following steps.
[0067] In step S11 , in response to a control operation on a terminal device, at least one drawing request corresponding to the control operation is generated, and state information of a process in the terminal device is determined, each drawing request being associated with a piece of state information.
[0068] It is worth noting that the terminal device can be a tablet, mobile phone, laptop, etc., and the synthetic process in the system of the terminal device carries the data of all processes. For example, the main process of an Android system (Android system) mobile phone is the Surface Flinger process, and the Surface Flinger process can obtain the data of all running processes in the terminal device.
[0069] It is worth noting that the control operation can control the terminal device to be in different scenarios. Each scenario corresponds to a unique task process. The terminal device runs different task processes in different scenarios, and a control operation on the terminal device can generate multiple drawing requests corresponding to the control operation.
[0070] For example, in a desktop scenario, when a control operation triggers notification information, the task process corresponding to the desktop scenario is requesting cross-process data, and the process of the notification interface is also requesting cross-process data, that is, the terminal device generates two drawing requests according to the control operation.
[0071] In step S12, the drawing requests are screened according to the state information to obtain a target drawing request.
[0072] It is worth noting that the drawing requests are filtered according to the status information to reduce the number of drawing requests, thereby reducing the amount of data transmission between different processes.
[0073] In step S13, the target layer is drawn according to the target drawing request, and the target layer is displayed in the display interface of the terminal device.
[0074] It is worth noting that, according to the target drawing request, the data in other processes is obtained, and the layer corresponding to the control operation is blurred according to the data to obtain the target layer, thereby achieving the drawing of the target layer. Among them, the data in other processes can be the data in the layer corresponding to other processes that needs to be displayed in the layer corresponding to the control operation.
[0075] It is worth noting that the blur processing may include at least one of Gaussian Blur, Box Blur, Kawase Blur, Dual Blur, Bokeh Blur, Tilt Shift Blur, Iris Blur, Grainy Blur, Radial Blur and Directional Blur. The blur processing may also be other blur processing methods suitable for real-time rendering, which is not limited in the embodiments of the present disclosure.
[0076] It is worth noting that after the terminal device is controlled, the terminal device starts the task process corresponding to the control operation, such as Figure 2 As shown, at this time, the data flow between the task process and the main process of the terminal device can be: the task process generates at least one drawing request and sends it to the synthesis process, requesting to obtain display data; the synthesis process determines the status information of the process in the terminal device, filters the drawing request according to the status information, and obtains the target drawing request; obtains the display data across processes according to the target drawing request, and transmits the display data to the task process; the task process draws the content to be displayed according to the display data.
[0077] The disclosed embodiment screens drawing requests and determines target drawing requests to reduce the amount of data sent between different processes in a terminal device, draws a target layer according to the target drawing request, reduces the drawing workload of the terminal device, and reduces the power consumption of the terminal device without significantly affecting the user experience.
[0078] In order to facilitate those skilled in the art to better understand the interface display method provided by the present disclosure, the steps involved in the interface display method are described in detail below with examples.
[0079] In a possible embodiment, in step S11, in response to a control operation on a terminal device, generating at least one drawing request corresponding to the control operation may include:
[0080] In response to a triggering operation of an application component displayed on a terminal device, when a thread corresponding to the application component is started for the first time, at least one drawing request is generated; or,
[0081] In response to a sliding operation triggered by the screen of the terminal device, at least one drawing request corresponding to the sliding operation is generated.
[0082] It is worth noting that the application components can be system-provided application components, such as gallery, settings, phone, SMS and other components, or they can be application components downloaded after the terminal device leaves the factory, such as QQ, WeChat, Weibo and so on. Figure 3a As shown, in response to a trigger operation on a WeChat component displayed on a terminal device, when a thread corresponding to the WeChat component is started for the first time, at least one drawing request is generated.
[0083] It is worth noting that the sliding operation can be a sliding operation in any direction in the display interface of the terminal device, such as sliding left and right, sliding up and down, etc. Figure 3b As shown, in response to a left sliding operation triggered on the screen of the terminal device, at least one drawing request corresponding to the left sliding operation is generated. Figure 3c As shown, in response to a downward sliding operation triggered on the screen of the terminal device, at least one drawing request corresponding to the downward sliding operation is generated.
[0084] In one possible embodiment, see Figure 4 In step S11, for a control operation of a terminal device, generating at least one drawing request corresponding to the control operation may include:
[0085] In step S41, in response to a control operation on a terminal device, a preset mark of a component corresponding to the control operation is determined, where the preset mark is used to mark a display processing method for the component.
[0086] It is worth noting that the preset mark can be marked before the terminal device leaves the factory, or it can be marked by the user according to the use requirements after the terminal device leaves the factory. For example, in the case where the component corresponding to the control operation is an application component that comes with the system of the terminal device, the preset mark of the component is marked before the terminal device leaves the factory. In the case where the component corresponding to the control operation is an application component downloaded by the user after the terminal device leaves the factory, the preset mark of the component is marked by the user according to the use requirements.
[0087] In step S42, when the preset mark indicates that the component is to be blurred, at least one drawing request is generated.
[0088] It is worth noting that a drawing request is generated only when the preset mark indicates that the component is blurred. Other requests may also be generated in other scenarios.
[0089] For example, different requests are generated during the use of the terminal device, as shown in the following control scenario:
[0090] Scenario 1: When the task process corresponding to control A is started for the first time, control A is visible on the display interface of the terminal device, and the preset mark of control A indicates that control A is blurred, at least one drawing request is generated. Taking a mobile phone as an example, when the folder component on the mobile phone desktop is started for the first time, a drawing request is generated.
[0091] The task process interface corresponding to control A in the display interface of the terminal device is blocked, and a process destruction request is generated to release the memory resources of the terminal device. Taking a mobile phone as an example, when answering a call in the desktop scenario, the desktop process is blocked. At this time, the desktop process is still running, and a process destruction request is generated.
[0092] The task process interface corresponding to control A in the display interface of the terminal device becomes visible again, and a drawing request is regenerated. Taking a mobile phone as an example, when answering a call in a desktop scenario, the desktop process interface is blocked, and the desktop process is still running. After the call ends, the desktop process interface becomes visible again, and a drawing request is regenerated.
[0093] Control A is no longer used, and no drawing request is generated again. Taking a mobile phone as an example, the screen of the mobile phone is turned off, the desktop process is terminated, and no drawing request is generated again.
[0094] Scenario 2: The task process corresponding to control B is started again. Control B is visible on the display interface of the terminal device, and the preset mark of control B indicates that control B is displayed fuzzily. The task process corresponding to control B has already generated a drawing request when it was first started, so the drawing request is no longer regenerated.
[0095] Control B changes from being visible to being invisible on the display interface of the terminal device, and no drawing request is regenerated. At this time, the task process corresponding to control B is still running.
[0096] Control B is no longer used, and a process destruction request is generated. At this time, the task process corresponding to control B is not running. Taking a mobile phone as an example, uninstalling the WeChat control generates a process destruction request.
[0097] Scenario three: The task process corresponding to control C is started again. Control C is visible on the display interface of the terminal device, and the preset mark of control C indicates that control C is displayed fuzzily. The task process corresponding to control C has generated a drawing request when it was first started, so the drawing request is no longer regenerated.
[0098] Control C is no longer used and generates an invisible request. The task process corresponding to control C is still running, but is invisible on the display interface of the terminal device.
[0099] In summary, when the task process corresponding to the control is in running state, there is a layer corresponding to the task process, the preset mark of the control indicates that the control is displayed fuzzily, and the control is visible to the user in the terminal device, a drawing request is generated.
[0100] In a possible embodiment, in step S12, filtering the drawing request according to the state information to obtain the target drawing request may include:
[0101] When the state information satisfies the preset drawing rule, the drawing request associated with the state information is used as the target drawing request.
[0102] It is worth noting that the preset drawing rules can be preset according to the impact of the target layer corresponding to the drawing request on the fluency of the user using the terminal device, and the embodiments of the present disclosure are not limited to this.
[0103] It is worth noting that the preset drawing rule may include a first drawing rule and a second drawing rule, the first drawing rule may be used to filter drawing requests corresponding to important scenes that have a high impact on the fluency, and the second drawing rule may be used to filter drawing requests corresponding to ordinary scenes that have a low impact on the fluency. Drawing requests that do not meet both the first drawing rule and the second drawing rule are skipped, thereby implementing the filtering of drawing requests.
[0104] In one possible embodiment, see Figure 5 , when the state information satisfies the preset drawing rule, taking the drawing request associated with the state information as the target drawing request, which may include:
[0105] When the state information satisfies a first preset drawing rule, a drawing request associated with the state information is used as a first target drawing request.
[0106] In step S13, drawing the target layer according to the target drawing request may include:
[0107] In step S51, the control layer corresponding to the control operation is determined, and display data of other layers to be displayed under the control layer is obtained.
[0108] It is worth noting that in all embodiments of the present disclosure, the control operation triggers the control terminal device to start the task process. Each task process is associated with a unique preset layer, and the preset layers associated with different task processes are different. Therefore, when the control operation triggers the terminal device to start the task process, the preset layer associated with the task process will be used as the control layer corresponding to the control operation.
[0109] It is worth noting that in all embodiments of the present disclosure, the rendering hierarchy structure corresponding to the terminal device can be determined based on the historical operations on the terminal device, and the display data of other layers to be displayed under the control layer can be obtained based on the rendering hierarchy structure.
[0110] For example, see Figure 7 , when the historical operations on the terminal device are screen-on operation, screen-unlock operation, triggering setting application icon, triggering social platform icon, pull-down notification operation, pull-down control center operation and volume adjustment operation, the rendering structure corresponding to the terminal device is, from low to high, wallpaper layer with level 1, home page layer with level 2, setting layer with level 3, social platform layer with level 4, notification layer with level 5, control center layer with level 6 and volume adjustment layer with level 7, and display data of wallpaper layer with level 1, home page layer with level 2, setting layer with level 3, social platform layer with level 4, notification layer with level 5, and control center layer with level 6 to be displayed under volume adjustment layer with level 7 are obtained according to the rendering hierarchy structure.
[0111] In step S52, according to the first target drawing request, a portion of the layer and the control layer corresponding to the display data are drawn according to the screen refresh frequency of the terminal device.
[0112] It is worth noting that, in general, the screen refresh rate of the terminal device must be above 75 Hz so that the human eye can hardly perceive the flicker of the screen. In the embodiment of the present disclosure, the screen refresh rate of the terminal device is 120 Hz.
[0113] In step S53, the partial layer is superimposed on the control layer to obtain the target layer.
[0114] In one possible embodiment, see Figure 6 , when the state information satisfies the preset drawing rule, taking the drawing request associated with the state information as the target drawing request, which may include:
[0115] When the state information does not satisfy the first preset drawing rule but satisfies the second preset drawing rule, the drawing request associated with the state information is used as the second target drawing request.
[0116] In step S13, drawing the target layer according to the target drawing request may include:
[0117] In step S61, the control layer corresponding to the control operation is determined, and display data of other layers to be displayed under the control layer is obtained.
[0118] In step S62, according to the second target drawing request, a portion of the layer corresponding to the display data is drawn at a preset frequency, and a control layer is drawn at a screen refresh frequency of the terminal device.
[0119] It is worth noting that in the second target drawing request corresponding to the normal scene, the user has low display requirements for the content of some layers corresponding to the display data. For example, in the daily use scenario of the terminal device, a screen refresh frequency of 30Hz is smooth enough and will not affect the user's use effect. Therefore, in the embodiment of the present disclosure, the preset drawing frequency is 30HZ.
[0120] In step S63, the partial layer is superimposed on the control layer to obtain the target layer, and the preset frequency is less than the screen refresh frequency.
[0121] In the disclosed embodiments, for different scenarios, the display interface of the terminal device uses different screen refresh frequencies to draw display data, thereby reducing the amount of cross-process data transmission without affecting the user experience, thereby reducing the power consumption of the terminal device.
[0122] In a possible embodiment, the first preset drawing rule may include at least one of the following:
[0123] The number of layers associated with the target drawing request is greater or less than the number of layers associated with the previous drawing request;
[0124] The start time of the process triggered by the control operation is less than the first preset time;
[0125] There is an angle difference between the display direction of the layer associated with the target drawing request and the display direction of the layer associated with the previous drawing request.
[0126] It is worth noting that the first preset drawing rule may include that the control operation corresponding to the target drawing request starts a new task thread, so that the number of layers associated with the target drawing request is greater than the number of layers associated with the previous drawing request; it may also include that the control operation corresponding to the target drawing request ends any task thread in the started state, so that the number of layers associated with the target drawing request is less than the number of layers associated with the previous drawing request.
[0127] It is worth noting that the first preset duration can be preset according to the duration required to start the task thread in the terminal device. In the embodiment of the present disclosure, the first preset duration is the duration required to start the first 20 frames of the process. The first preset drawing rule may also include that the start duration of the process triggered by the control operation is less than the duration required to start the first 20 frames of the process.
[0128] It is worth noting that the first preset drawing rule may also include the rotation of the layer display direction associated with the target drawing request compared to the layer display direction associated with the previous drawing request. For example, when the terminal device starts a game process or a video process, the display interface of the terminal device changes from a vertical screen display to a horizontal screen display.
[0129] In a possible embodiment, the second preset drawing rule may be: the layer associated with the target drawing request is the top layer, the data of the layer associated with the target drawing request is different from the data of the layer associated with the previous drawing request, and the time interval between the target drawing request and the previous drawing request is greater than the second preset time length.
[0130] It is worth noting that the second preset duration can be preset according to the power consumption of the terminal device. For example, when the power consumption of the terminal device is relatively high, the second preset duration is relatively long to reduce the number of second target drawing requests; when the power consumption of the terminal device is relatively low, the second preset duration is relatively short to increase the number of second target drawing requests, thereby maximizing the user experience while avoiding abnormal power consumption of the terminal device.
[0131] For example, when multiple task processes initiate drawing requests at the same time, the layer associated with the target drawing request is the top layer, that is, only data is transmitted to the top-level business. At the same time, the content of this layer changes compared to the content of the layer associated with the previous drawing request. At the same time, the time interval between the target drawing request and the previous drawing request is greater than the second preset time length.
[0132] The interface display method in the embodiment of the present disclosure may further include the following steps:
[0133] In step S81, in response to a trigger operation on a WeChat application component displayed on a terminal device, a preset mark of the WeChat application component corresponding to the trigger operation is determined.
[0134] In step S82, when the preset mark indicates that the WeChat application component is to be blurred, at least one drawing request is generated.
[0135] In step S83, it is determined whether the state information satisfies the first preset drawing rule. If yes, steps S84 to S86 are executed; if not, steps S87 to S811 are executed.
[0136] In step S84, the control layer corresponding to the control operation is determined, and display data of other layers to be displayed under the control layer is obtained.
[0137] In step S85, according to the first target drawing request, a portion of the layer and the control layer corresponding to the display data are drawn according to the screen refresh frequency of the terminal device.
[0138] In step S86, the partial layer is superimposed on the control layer to obtain a target layer, and the target layer is displayed in the display interface of the terminal device.
[0139] In step S87, it is determined whether the state information satisfies the second preset drawing rule. If yes, steps S88 to S810 are executed; if not, step S811 is executed.
[0140] In step S88, the control layer corresponding to the control operation is determined, and display data of other layers to be displayed under the control layer is obtained.
[0141] In step S89, according to the second target drawing request, a portion of the layer corresponding to the display data is drawn at a preset frequency, and the control layer is drawn at a screen refresh frequency of the terminal device.
[0142] In step S810, a partial layer is superimposed on the control layer to obtain a target layer, and the target layer is displayed in the display interface of the terminal device, and the preset frequency is less than the screen refresh frequency.
[0143] In step S811, the drawing request is skipped.
[0144] In the disclosed embodiment, drawing requests are screened to determine a target drawing request, and the amount of cross-process data transmission is reduced without affecting the user experience, that is, the amount of data sent between different processes in the terminal device is reduced. The target layer is drawn according to the target drawing request, and for different scenarios, the display interface of the terminal device uses different screen refresh frequencies to draw display data, thereby reducing the workload of the terminal device in drawing, thereby reducing the power consumption of the terminal device without significantly affecting the user experience.
[0145] Based on the same inventive concept, the present disclosure also provides an interface display device. Fig. 9 The interface display device includes a response module 91, a screening module 92 and a control module 93.
[0146] The response module 91 is used to generate at least one drawing request corresponding to the control operation in response to the control operation on the terminal device, and determine the state information of the process in the terminal device, and each drawing request is associated with a state information.
[0147] The screening module 92 is used to screen the drawing requests according to the state information to obtain the target drawing request.
[0148] The control module 93 is used to draw the target layer according to the target drawing request and display the target layer in the display interface of the terminal device.
[0149] The disclosed embodiment screens drawing requests and determines target drawing requests to reduce the amount of data sent between different processes in a terminal device, draws a target layer according to the target drawing request, reduces the drawing workload of the terminal device, and reduces the power consumption of the terminal device without significantly affecting the user experience.
[0150] For example, the response module 91 is configured to generate at least one drawing request when a thread corresponding to the application component is started for the first time in response to a trigger operation on the application component displayed on the terminal device; or
[0151] In response to a sliding operation triggered on a screen of a terminal device, at least one drawing request corresponding to the sliding operation is generated.
[0152] For example, the response module 91 is used to determine a preset mark of a component corresponding to the control operation in response to a control operation on the terminal device, where the preset mark is used to mark a display processing method for the component;
[0153] When the preset mark indicates that blur display processing is performed on the component, at least one drawing request is generated.
[0154] For example, the screening module 92 is configured to use the drawing request associated with the state information as the target drawing request when the state information satisfies a preset drawing rule.
[0155] For example, the screening module 92 is configured to use the drawing request associated with the state information as the first target drawing request when the state information satisfies the first preset drawing rule.
[0156] The control module 93 is used to determine the control layer corresponding to the control operation and obtain the display data of other layers to be displayed under the control layer;
[0157] According to the first target drawing request, drawing a portion of the layer and the control layer corresponding to the display data according to the screen refresh frequency of the terminal device;
[0158] The target layer is obtained by superimposing the partial layer with the control layer.
[0159] For example, the screening module 92 is configured to use the drawing request associated with the state information as the second target drawing request when the state information does not satisfy the first preset drawing rule but satisfies the second preset drawing rule.
[0160] The control module 93 is used to determine the control layer corresponding to the control operation and obtain the display data of other layers to be displayed under the control layer;
[0161] According to the second target drawing request, draw a part of the layer corresponding to the display data at a preset frequency, and draw the control layer at a screen refresh frequency of the terminal device;
[0162] The target layer is obtained by superimposing some layers with the control layer, and the preset frequency is less than the screen refresh frequency.
[0163] For example, the first preset drawing rule includes at least one of the following:
[0164] The number of layers associated with the target drawing request is greater or less than the number of layers associated with the previous drawing request;
[0165] The start time of the process triggered by the control operation is less than the first preset time;
[0166] There is an angle difference between the display direction of the layer associated with the target drawing request and the display direction of the layer associated with the previous drawing request.
[0167] For example, the second preset drawing rule is: the layer associated with the target drawing request is the top layer, the data of the layer associated with the target drawing request is different from the data of the layer associated with the previous drawing request, and the time interval between the target drawing request and the previous drawing request is greater than the second preset time length.
[0168] Regarding the interface display device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0169] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, and the program instructions, when executed by a processor, implement the steps of the interface display method provided by the present disclosure.
[0170] Based on the same inventive concept, the present disclosure provides an interface display device, comprising:
[0171] processor;
[0172] a memory for storing processor-executable instructions;
[0173] Wherein, the processor is configured to:
[0174] In response to a control operation on a terminal device, generating at least one drawing request corresponding to the control operation, and determining state information of a process in the terminal device, each drawing request being associated with a piece of state information;
[0175] Filter the drawing request according to the state information to obtain a target drawing request;
[0176] The target layer is drawn according to the target drawing request, and the target layer is displayed in the display interface of the terminal device.
[0177] The disclosed embodiment screens drawing requests and determines target drawing requests to reduce the amount of data sent between different processes in a terminal device, draws a target layer according to the target drawing request, reduces the drawing workload of the terminal device, and reduces the power consumption of the terminal device without significantly affecting the user experience.
[0178] Fig.10 1 is a block diagram of an interface display device 1000 according to an exemplary embodiment. For example, the interface display device 1000 may be a mobile phone, a computer, a digital broadcast terminal, a message transceiver device, a tablet device, a personal digital assistant, etc.
[0179] Reference Fig.10 The interface display device 1000 may include one or more of the following components: a processing component 1002 , a memory 1004 , a power component 1006 , a multimedia component 1008 , an audio component 1010 , an input / output interface 1012 , a sensor component 1014 , and a communication component 1016 .
[0180] The processing component 1002 generally controls the overall operation of the interface control device 1000, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1002 may include one or more processors 1020 to execute instructions to complete all or part of the steps of the above-mentioned interface display method. In addition, the processing component 1002 may include one or more modules to facilitate the interaction between the processing component 1002 and other components. For example, the processing component 1002 may include a multimedia module to facilitate the interaction between the multimedia component 1008 and the processing component 1002.
[0181] The memory 1004 is configured to store various types of data to support the operation of the interface display device 1000. Examples of such data include instructions for any application or method operating on the device 1000, contact data, phone book data, messages, pictures, videos, etc. The memory 1004 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0182] The power supply component 1006 provides power to various components of the interface display device 1000. The power supply component 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the interface display device 1000.
[0183] The multimedia component 1008 includes a screen that provides an output interface between the interface display device 1000 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1008 includes a front camera and / or a rear camera. When the interface display device 1000 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0184] The audio component 1010 is configured to output and / or input audio signals. For example, the audio component 1010 includes a microphone (MIC), and when the device interface display device 1000 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1004 or sent via the communication component 1016. In some embodiments, the audio component 1010 also includes a speaker for outputting audio signals.
[0185] The input / output interface 1012 provides an interface between the processing component 1002 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0186] The sensor assembly 1014 includes one or more sensors for providing various aspects of status assessment for the interface display device 1000. For example, the sensor assembly 1014 can detect the open / closed state of the interface display device 1000, the relative positioning of the components, such as the display and keypad of the device interface display device 1000, the sensor assembly 1014 can also detect the position change of the interface display device 1000 or a component of the interface display device 1000, the presence or absence of user contact with the interface display device 1000, the orientation or acceleration / deceleration of the interface display device 1000 and the temperature change of the interface display device 1000. The sensor assembly 1014 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1014 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1014 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
[0187] The communication component 1016 is configured to facilitate wired or wireless communication between the interface display device 1000 and other devices. The interface display device 1000 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1016 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1016 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0188] In an exemplary embodiment, the interface display device 1000 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned interface display method.
[0189] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1004 including instructions, and the instructions can be executed by the processor 1020 of the interface display device 1000 to complete the above interface display method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0190] In addition to being an independent electronic device, the above-mentioned interface display device can also be a part of an independent electronic device. For example, in one embodiment, the device can be an integrated circuit (IC) or a chip, wherein the integrated circuit can be an IC or a collection of multiple ICs; the chip can include but is not limited to the following types: GPU (Graphics Processing Unit), CPU (Central Processing Unit), FPGA (Field Programmable Gate Array), DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), SOC (System on Chip, SoC), etc. The above-mentioned integrated circuit or chip can be used to execute executable instructions (or codes) to implement the above-mentioned interface display method. The executable instructions can be stored in the integrated circuit or chip, or can be obtained from other devices or equipment, for example, the integrated circuit or chip includes a processor, a memory, and an interface for communicating with other devices. The executable instruction can be stored in the memory, and when the executable instruction is executed by the processor, the above-mentioned interface display method is implemented; alternatively, the integrated circuit or chip can receive the executable instruction through the interface and transmit it to the processor for execution, so as to implement the above-mentioned interface display method.
[0191] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program that can be executed by a programmable device. The computer program has a code portion for executing the above interface display method when executed by the programmable device.
[0192] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0193] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. An interface display method, characterized in that: include: In response to a control operation on a terminal device, generating at least one drawing request corresponding to the control operation, and determining state information of a process in the terminal device, each of the drawing requests being associated with a piece of state information; Filter the drawing request according to the state information to obtain a target drawing request; A target layer is drawn according to the target drawing request, and the target layer is displayed in a display interface of the terminal device.
2. The interface display method according to claim 1, characterized in that: The step of generating, in response to a control operation on a terminal device, at least one drawing request corresponding to the control operation comprises: In response to a triggering operation on an application component displayed on a terminal device, when a thread corresponding to the application component is started for the first time, at least one drawing request is generated; or, In response to a sliding operation triggered on a screen of the terminal device, at least one drawing request corresponding to the sliding operation is generated.
3. The interface display method according to claim 1, characterized in that: In response to a control operation on a terminal device, generating at least one drawing request corresponding to the control operation includes: In response to a control operation on a terminal device, determining a preset mark of a component corresponding to the control operation, wherein the preset mark is used to mark a display processing mode of the component; When the preset mark indicates that blur display processing is performed on the component, at least one drawing request is generated.
4. The interface display method according to claim 1, characterized in that: The filtering the drawing request according to the state information to obtain a target drawing request includes: When the state information satisfies a preset drawing rule, the drawing request associated with the state information is used as a target drawing request.
5. The interface display method according to claim 4, characterized in that: When the state information satisfies a preset drawing rule, taking the drawing request associated with the state information as a target drawing request includes: In a case where the state information satisfies a first preset drawing rule, taking a drawing request associated with the state information as a first target drawing request; Drawing the target layer according to the target drawing request includes: Determine the control layer corresponding to the control operation, and obtain display data of other layers to be displayed under the control layer; According to the first target drawing request, drawing a portion of the layer corresponding to the display data and the control layer according to the screen refresh frequency of the terminal device; The partial layer is superimposed on the control layer to obtain a target layer.
6. The interface display method according to claim 4, characterized in that: When the state information satisfies a preset drawing rule, taking the drawing request associated with the state information as a target drawing request includes: When the state information does not satisfy the first preset drawing rule but satisfies the second preset drawing rule, taking the drawing request associated with the state information as the second target drawing request; Drawing the target layer according to the target drawing request includes: Determine the control layer corresponding to the control operation, and obtain display data of other layers to be displayed under the control layer; According to the second target drawing request, drawing a part of the layer corresponding to the display data at a preset frequency, and drawing the control layer at a screen refresh frequency of the terminal device; The partial layer is superimposed on the control layer to obtain a target layer, and the preset frequency is less than the screen refresh frequency.
7. The interface display method according to claim 5 or 6, characterized in that: The first preset drawing rule includes at least one of the following: The number of layers associated with the target drawing request is greater than or less than the number of layers associated with the previous drawing request; The start time of the process triggered by the control operation is less than the first preset time; There is an angle difference between the layer display direction associated with the target drawing request and the layer display direction associated with the previous drawing request.
8. The interface display method according to claim 6, characterized in that: The second preset drawing rule is: the layer associated with the target drawing request is the top layer, data of the layer associated with the target drawing request is different from data of the layer associated with the previous drawing request, and the time interval between the target drawing request and the previous drawing request is greater than a second preset time length.
9. An interface display device, characterized in that: include: A response module, configured to generate at least one drawing request corresponding to the control operation in response to the control operation on the terminal device, and determine the state information of the process in the terminal device, each of the drawing requests being associated with a state information; A screening module, used for screening the drawing request according to the state information to obtain a target drawing request; The control module is used to draw a target layer according to the target drawing request and display the target layer in the display interface of the terminal device.
10. An interface display device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: In response to a control operation on a terminal device, generating at least one drawing request corresponding to the control operation, and determining state information of a process in the terminal device, each of the drawing requests being associated with a piece of state information; Filter the drawing request according to the state information to obtain a target drawing request; A target layer is drawn according to the target drawing request, and the target layer is displayed in a display interface of the terminal device.
11. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the interface drawing method described in any one of claims 1 to 8 are implemented.