CN112925601A - Screen display method, device, equipment and storage medium - Google Patents

Screen display method, device, equipment and storage medium Download PDF

Info

Publication number
CN112925601A
CN112925601A CN202110305708.8A CN202110305708A CN112925601A CN 112925601 A CN112925601 A CN 112925601A CN 202110305708 A CN202110305708 A CN 202110305708A CN 112925601 A CN112925601 A CN 112925601A
Authority
CN
China
Prior art keywords
thread
cache data
drawing result
cache
screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110305708.8A
Other languages
Chinese (zh)
Other versions
CN112925601B (en
Inventor
叶永建
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Yealink Network Technology Co Ltd
Original Assignee
Xiamen Yealink Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Yealink Network Technology Co Ltd filed Critical Xiamen Yealink Network Technology Co Ltd
Priority to CN202110305708.8A priority Critical patent/CN112925601B/en
Publication of CN112925601A publication Critical patent/CN112925601A/en
Application granted granted Critical
Publication of CN112925601B publication Critical patent/CN112925601B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Digital Computer Display Output (AREA)

Abstract

The application provides a screen display method, a screen display device, screen display equipment and a storage medium, and belongs to the technical field of multi-screen video conferences. The method comprises the following steps: responding to the operation of a user, operating a first thread and a second thread, wherein the first thread is a main thread of the graphics processor, the first thread is used for drawing and processing first cache data formed by the operation of the user to obtain a first drawing result, the second thread is a cooperative thread of the graphics processor, and the second thread is used for sending second cache data formed by the operation of the user to the first thread for drawing and processing to obtain a second drawing result; preprocessing the first drawing result and the second drawing result through a multi-screen management module in the graphics processor to obtain information to be displayed, wherein the multi-screen management module is used for butting a display screen of the electronic equipment; and displaying the information to be displayed on a display screen of the electronic equipment. The display method and the display device can meet the display requirement and save resources at the same time.

Description

Screen display method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of multi-screen video conferencing technologies, and in particular, to a screen display method, an apparatus, a device, and a storage medium.
Background
The current video conference is usually a multi-screen video conference, that is, each user participating in the conference has at least one electronic device, and the electronic device is provided with a display screen, and when a certain user shows related content through the electronic device, other users can perform processing such as annotation on the related content through their own electronic devices.
In the display mode of annotation adopted in the prior art, the interface display content and the annotation content are mainly processed by running through the same thread, or are respectively processed by different threads.
However, when the same thread is processed, if it needs to be switched to another screen for display, the drawing needs to be created again, which may result in a large switching time consumption, and if the displayed content is relatively complicated, an interface may be jammed; when different threads are processed respectively, the display output needs to be adapted, and the situations of repeated development and code redundancy exist in the process of realizing the display output, which results in resource waste.
Disclosure of Invention
The application aims to provide a screen display method, a screen display device, screen display equipment and a screen display storage medium, which can avoid the situations of repeated development and code redundancy, meet display requirements and save resources.
The embodiment of the application is realized as follows:
in one aspect of the embodiments of the present application, there is provided a screen display method applied to a graphics processor of an electronic device, the method including:
responding to the operation of a user, operating a first thread and a second thread, wherein the first thread is a main thread of the graphics processor, the first thread is used for drawing and processing first cache data formed by the operation of the user to obtain a first drawing result, the second thread is a cooperative thread of the graphics processor, and the second thread is used for sending second cache data formed by the operation of the user to the first thread for drawing and processing to obtain a second drawing result;
preprocessing the first drawing result and the second drawing result through a multi-screen management module in the graphics processor to obtain information to be displayed, wherein the multi-screen management module is used for butting a display screen of the electronic equipment;
and displaying the information to be displayed on a display screen of the electronic equipment.
Optionally, running the first thread comprises:
responding to the operation of a user, and establishing a first cache object;
inputting first cache data in a first cache object;
and performing drawing processing according to the first cache data to obtain a first drawing result.
Optionally, running a second thread comprises:
responding to the operation of a user, and establishing a second cache object;
inputting second cache data in the second cache object;
and sending the second cache object to the first thread, drawing by the first thread according to second cache data in the second cache object to obtain a second drawing result, and returning the second cache object to the second thread.
Optionally, running a second thread comprises:
responding to the operation of a user, and detecting whether a second cache object is received;
if not, establishing a third cache object;
inputting second cache data in the third cache object;
and sending the third cache object to the first thread, and drawing by the first thread according to second cache data in the third cache object to obtain a second drawing result.
Optionally, the obtaining, by a multi-screen management module in the graphics processor, information to be displayed by preprocessing according to the first drawing result and the second drawing result includes:
comparing whether the identification information of the first cache data and the identification information of the second cache data are the same or not through a multi-screen management module, wherein the identification information is used for identifying a display screen corresponding to a cache data source, and if the identification information is the same, mixing the first drawing result and the second drawing result to obtain first information to be displayed;
displaying information to be displayed on a display screen of an electronic device, comprising:
and displaying the first information to be displayed on a display screen corresponding to the identification information in the electronic equipment.
Optionally, the method further comprises:
if the identification information of the first cache data is different from the identification information of the second cache data, outputting the first drawing result and the second drawing result to a display screen of the electronic equipment through a multi-screen management module respectively;
displaying information to be displayed on a display screen of an electronic device, comprising:
and respectively displaying the first drawing result on a display screen corresponding to the identification information of the first cache data in the electronic equipment and displaying the second drawing result on a display screen corresponding to the identification information of the second cache data in the electronic equipment.
Optionally, running the first thread comprises:
judging whether the first cache data is updated or not;
if the first cache data is updated, judging whether second cache data corresponding to the updated first cache data is received or not, and if not, performing drawing processing on the updated first cache data to obtain an updated first drawing result;
outputting the updated first drawing result to a display screen of the electronic equipment through a multi-screen management module;
and displaying the updated first drawing result on a display screen of the electronic equipment.
In another aspect of the embodiments of the present application, there is provided a screen display apparatus applied to a graphic processor of an electronic device, the apparatus including: the device comprises a thread module, a preprocessing module and a display module;
the thread module is used for responding to the operation of a user, operating a first thread and operating a second thread, wherein the first thread is a main thread of the graphics processor, the first thread is used for carrying out drawing processing according to first cache data formed by the operation of the user to obtain a first drawing result, the second thread is a cooperative thread of the graphics processor, and the second thread is used for sending second cache data formed by the operation of the user to the first thread for carrying out drawing processing to obtain a second drawing result;
the preprocessing module is used for preprocessing the first drawing result and the second drawing result through a multi-screen management module in the graphics processor to obtain information to be displayed, and the multi-screen management module is used for butting a display screen of the electronic equipment;
and the display module is used for displaying the information to be displayed on the display screen of the electronic equipment.
Optionally, the thread module is specifically configured to respond to an operation of a user and establish a first cache object; inputting first cache data in a first cache object; and performing drawing processing according to the first cache data to obtain a first drawing result.
Optionally, the thread module is specifically configured to respond to an operation of a user and establish a second cache object; inputting second cache data in the second cache object; and sending the second cache object to the first thread, drawing by the first thread according to second cache data in the second cache object to obtain a second drawing result, and returning the second cache object to the second thread.
Optionally, the thread module is specifically configured to respond to an operation of a user, and detect whether the second cache object is received; if not, establishing a third cache object; inputting second cache data in the third cache object; and sending the third cache object to the first thread, and drawing by the first thread according to second cache data in the third cache object to obtain a second drawing result.
Optionally, the preprocessing module is specifically configured to compare whether the identification information of the first cache data and the identification information of the second cache data are the same through the multi-screen management module, where the identification information is used to identify a display screen corresponding to a source of the cache data, and if the identification information is the same, perform mixed processing on the first drawing result and the second drawing result to obtain first information to be displayed; and the display module is specifically used for displaying the first information to be displayed on the display screen corresponding to the identification information in the electronic equipment.
Optionally, the preprocessing module is further configured to output the first drawing result and the second drawing result to a display screen of the electronic device through the multi-screen management module if the identification information of the first cached data is different from the identification information of the second cached data; the display module is further configured to display the first drawing result on a display screen corresponding to the identification information of the first cached data in the electronic device and display the second drawing result on a display screen corresponding to the identification information of the second cached data in the electronic device, respectively.
Optionally, the thread module is further configured to determine whether the first cache data is updated; if the first cache data is updated, judging whether second cache data corresponding to the updated first cache data is received or not, and if not, performing drawing processing on the updated first cache data to obtain an updated first drawing result; outputting the updated first drawing result to a display screen of the electronic equipment through a multi-screen management module; and displaying the updated first drawing result on a display screen of the electronic equipment.
In another aspect of the embodiments of the present application, there is provided a computer device, including: the screen display method comprises the following steps of a memory and a processor, wherein a computer program capable of running on the processor is stored in the memory, and the steps of the screen display method are realized when the processor executes the computer program.
In another aspect of the embodiments of the present application, a computer-readable storage medium is provided, and a computer program is stored on the storage medium, and when being executed by a processor, the computer program implements the steps of the screen display method.
The beneficial effects of the embodiment of the application include:
the screen display method, the screen display device, the screen display equipment and the screen display storage medium provided by the embodiment of the application can respond to the operation of a user, and operate a first thread and a second thread, wherein the first thread is a main thread of a graphic processor, the first thread is used for performing drawing processing according to first cache data formed by the operation of the user to obtain a first drawing result, the second thread is a cooperative thread of the graphic processor, and the second thread is used for sending second cache data formed by the operation of the user to the first thread for performing drawing processing to obtain a second drawing result; preprocessing the first drawing result and the second drawing result through a multi-screen management module in the graphics processor to obtain information to be displayed, wherein the multi-screen management module is used for butting a display screen of the electronic equipment; and displaying the information to be displayed on a display screen of the electronic equipment. The first thread can process first cache data formed by user operation and second cache data transmitted to the first thread by the second thread respectively, and then the first drawing result and the second drawing result are obtained respectively, so that the situations of interface blockage and the like during processing of the same thread can be avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a first schematic flowchart of a screen display method according to an embodiment of the present application;
fig. 3 is a flowchart illustrating a second screen display method according to an embodiment of the present application;
fig. 4 is a third schematic flowchart of a screen display method according to an embodiment of the present application;
fig. 5 is a fourth schematic flowchart of a screen display method according to an embodiment of the present application;
fig. 6 is a fifth flowchart illustrating a screen display method according to an embodiment of the present application;
fig. 7 is a sixth schematic flowchart of a screen display method according to an embodiment of the present application;
fig. 8 is a seventh flowchart illustrating a screen display method according to an embodiment of the present application;
fig. 9 is an eighth schematic flowchart of a screen display method according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a screen display device according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present application, it is noted that the terms "first", "second", "third", and the like are used merely for distinguishing between descriptions and are not intended to indicate or imply relative importance.
The following explains the specific structural relationship of the electronic device provided in the embodiment of the present application and the specific components thereof in detail.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application, please refer to fig. 1, where the electronic device at least includes: the graphic Processing system includes a graphic processor 110 (GPU), a Central Processing Unit 120 (CPU), and a plurality of display screens 130, wherein the Central Processing Unit 120 may be connected to the plurality of display screens 130 through a multi-screen Processing module, the Central Processing Unit 120 may be provided with a first thread and a second thread, the multi-screen Processing module may be provided on the Central Processing Unit 120, the graphic processor 110 is connected to the Central Processing Unit 120, and the graphic processor 110 may execute graphic-related Processing based on a control instruction of the Central Processing Unit 120.
The graphics processor 110 may be any type of GPU, and is not limited herein; the central processing unit 120 may be a processing chip disposed in the electronic device, and may be any type of CPU, and the multi-screen processing module may be a software module disposed on the central processing unit 120 and configured to interface with each display screen; the plurality of display screens 130 may be electronic display screens with interactive capabilities.
Alternatively, in an actual application scenario, there may be a scenario where a plurality of users conduct a video conference, and each user may use at least one of a plurality of display screens.
The following specifically explains a specific implementation procedure of the screen display method provided in the embodiment of the present application.
Fig. 2 is a first schematic flow chart of a screen display method according to an embodiment of the present application, please refer to fig. 2, where the method includes:
s210: and responding to the operation of a user, and running the first thread and the second thread.
The first thread is a main thread of the graphics processor, the first thread is used for performing drawing processing according to first cache data formed by user operation to obtain a first drawing result, the second thread is a cooperative thread of the graphics processor, and the second thread is used for sending second cache data formed by user operation to the first thread for performing drawing processing to obtain a second drawing result.
Alternatively, the user's operation may be a control operation such as clicking, touching, etc. on the display screen of the user, and the graphics processor may execute the first thread and the second thread in response to the user's operation.
Alternatively, a thread may be the smallest unit that a central processor can perform arithmetic scheduling. It is included in the process and is the actual unit of operation in the process. A thread refers to a single sequential control flow in a process, multiple threads can be concurrently executed in a process, and each thread executes different tasks in parallel. The first thread is a main thread, the second thread is an assistant thread, the main thread can be a thread for performing main operation control, and the assistant thread can be a thread for assisting the main thread to perform control operation.
Alternatively, the first cache data may be data formed according to a user operation, for example: when a user opens a display file through the display screen, the operation forms a corresponding cache data, namely the first cache data. The second cache data may also be data formed according to a user operation, such as: if the user annotates the currently displayed file through the display screen, the operation also forms a cache data, that is, the second cache data.
Optionally, the first drawing result may be a data processing result obtained by processing the first cache data by the first thread, and the second drawing result may be a data processing result obtained by processing the second cache data by the first thread.
S220: and preprocessing the first drawing result and the second drawing result through a multi-screen management module in the graphics processor to obtain information to be displayed.
The multi-screen management module is used for butting a display screen of the electronic equipment.
Alternatively, the preprocessing may be a process of determining, calculating, converting a format, and the like for the drawing result, and finally implementing a process of changing one or more drawing results into information to be displayed. In addition, the multi-screen management module can also determine that the information to be displayed is specifically sent to a specific one or a plurality of display screens for displaying.
S230: and displaying the information to be displayed on a display screen of the electronic equipment.
Optionally, the multi-screen management module may send the information to be displayed to the determined display screen for displaying, and the user may obtain the meaning represented by the information to be displayed through the display screen.
In the screen display method provided by the embodiment of the application, a first thread and a second thread can be operated in response to user operation, the first thread is a main thread of a central processing unit, the first thread is used for performing drawing processing according to first cache data formed by the user operation to obtain a first drawing result, the second thread is a cooperative thread of the central processing unit, and the second thread is used for sending second cache data formed by the user operation to the first thread for performing drawing processing to obtain a second drawing result; preprocessing the first drawing result and the second drawing result through a multi-screen management module in a central processing unit to obtain information to be displayed, wherein the multi-screen management module is used for butting a display screen of the electronic equipment; and displaying the information to be displayed on a display screen of the electronic equipment. The first thread can process first cache data formed by user operation and second cache data transmitted to the first thread by the second thread respectively, and then the first drawing result and the second drawing result are obtained respectively, so that the situations of interface blockage and the like during processing of the same thread can be avoided. Optionally, in a specific implementation process, the multi-screen management module may run in the first thread.
The following explains a specific implementation process for running the first thread provided in the embodiment of the present application.
Fig. 3 is a second flowchart of the screen display method according to the embodiment of the present application, and please refer to fig. 3, where the first process is executed, and includes:
s310: and responding to the operation of the user, and establishing the first cache object.
Alternatively, in response to an operation by a user, a first cache Object may be established, and the first cache Object may be a bearer for carrying first cache data, such as a Frame Buffer Object (FBO).
Optionally, before the first cache object is created, an initialization process may be performed, and if the thread is implemented in an application, the initialization process may be performed on the application, for example: OpenGL ES (OpenGL for Embedded Systems) application software.
Optionally, the operation of the User may specifically be an operation on a UI (User Interface), that is, an operation on a display screen.
Optionally, besides using the FBO as the first cache object to carry the data cache, pixmapsource (pixel surface) may be used as the first cache object.
S320: first cache data is input in the first cache object.
Optionally, after the first cache object is established, the first cache data formed according to the user operation may be input into the first cache object.
S330: and performing drawing processing according to the first cache data to obtain a first drawing result.
Optionally, in the process of running the first thread, the drawing processing may be performed on the first cache data, so as to obtain a first drawing result corresponding to the first cache data.
The following explains a specific implementation process for running the second thread provided in the embodiment of the present application.
Fig. 4 is a third flowchart illustrating a screen display method according to an embodiment of the present application, referring to fig. 4, a second thread is executed, including:
s410: and responding to the operation of the user, and establishing a second cache object.
Optionally, in response to a user operation, a second cache object may be established, and the second cache object may be a carrier for carrying second cache data.
Optionally, before the second cache object is established, the second thread may also be initialized, and the specific method is similar to the foregoing process of initializing the first thread, and details are not repeated here.
Alternatively, the specific operation of the user may be that the collaborative drawing of one frame is performed.
S420: second cache data is entered in the second cache object.
Optionally, after the second cache object is established, the second cache data formed according to the user operation may be input into the second cache object.
S430: and sending the second cache object to the first thread, drawing by the first thread according to second cache data in the second cache object to obtain a second drawing result, and returning the second cache object to the second thread.
Optionally, after the second cache data is stored in the second cache object, the second cache object may be sent to the first thread. The first thread may obtain the second cache data from the second cache object, and the first thread may perform drawing processing on the second cache data to obtain a second drawing result.
Optionally, after the first thread acquires the second cache data, the second cache object may be returned to the second thread.
A further specific implementation of the second thread running provided in the embodiment of the present application is specifically explained below.
Fig. 5 is a fourth flowchart illustrating a screen display method according to an embodiment of the present application, please refer to fig. 5, wherein the running of the second thread includes:
s510: and responding to the operation of the user, and detecting whether the second cache object is received.
Optionally, after responding to the user operation, it may be detected whether the first thread returns the second cache object to the second thread, that is, it may be determined whether the second thread receives the second cache object, and if the second cache object is received, the process steps of S420 to S430 described above may be continuously performed.
S520: and if not, establishing a third cache object.
Optionally, if it is detected that the second cache object is not returned from the first thread, a third cache object may be established, where the third cache object may be similar to the second cache object.
S530: and inputting second cache data in the third cache object.
Optionally, after the third cache object is established, the second cache data formed according to the user operation may be input into the third cache object.
S540: and sending the third cache object to the first thread, and drawing by the first thread according to second cache data in the third cache object to obtain a second drawing result.
Optionally, the process of S540 is similar to the process of S430, and is not described herein again.
In the screen display method provided in the embodiment of the application, whether the second cache object is received or not can be detected in response to the operation of the user, if the second cache object is not received, a third cache object is established, second cache data is input into the third cache object, the third cache object is sent to the first thread, and the first thread performs drawing processing according to the second cache data in the third cache object to obtain a second drawing result. The third cache object is established to realize double cache in the second thread, namely the third cache object is used for storing the second cache data when the second cache object is not returned, so that the drawing and displaying can be prevented from being executed in series, and the double-thread running efficiency of the whole drawing and displaying is improved.
The following specifically explains a specific implementation process for obtaining information to be displayed provided in the embodiments of the present application.
Fig. 6 is a fifth flowchart illustrating a screen display method according to an embodiment of the present application, and referring to fig. 6, a preprocessing is performed by a multi-screen management module in a graphics processor according to a first drawing result and a second drawing result to obtain information to be displayed, where the preprocessing includes:
s610: and comparing whether the identification information of the first cache data and the identification information of the second cache data are the same or not through the multi-screen management module.
The identification information is used for identifying a display screen corresponding to the source of the cache data.
Alternatively, the identification information may be used to identify a display screen corresponding to the source of the cached data, such as: the first cache data is cache data generated by the operation of the user on the screen a, and the identification information of the first cache data is an identification of the screen a.
Optionally, the multi-screen management module may compare whether the identification information of the first cached data and the identification information of the second cached data are the same, that is, determine whether the first cached data and the second cached data are from a user operating the same screen.
S620: and if the first drawing result and the second drawing result are the same, mixing the first drawing result and the second drawing result to obtain first information to be displayed.
Optionally, if it is determined that the identifier of the first cache data is the same as the identifier of the second cache data, the first drawing result and the second drawing result may be subjected to mixing processing, and the mixing processing may specifically be that the two drawing results are subjected to superposition operation, so as to obtain the first information to be displayed.
Displaying information to be displayed on a display screen of an electronic device, comprising:
s630: and displaying the first information to be displayed on a display screen corresponding to the identification information in the electronic equipment.
Optionally, after the first information to be displayed is obtained, the first information to be displayed may be displayed on a display screen corresponding to the identification information in the electronic device.
The following specifically explains a specific implementation process when the identification information of the first cache data and the identification information of the second cache data are different in the embodiment of the present application.
Fig. 7 is a sixth schematic flowchart of a screen display method according to an embodiment of the present application, referring to fig. 7, the method further includes:
s710: if the identification information of the first cache data is different from the identification information of the second cache data, the first drawing result and the second drawing result are output to a display screen of the electronic device through the multi-screen management module respectively.
Optionally, if it is determined that the identification information of the first cache data is different from the identification information of the second cache data, the processing may be performed by the multi-screen processing module, and the first drawing result is output to the electronic screen corresponding to the identification information of the first cache data and the second drawing result is output to the electronic screen corresponding to the identification information of the second cache data.
Displaying information to be displayed on a display screen of an electronic device, comprising:
s720: and respectively displaying the first drawing result on a display screen corresponding to the identification information of the first cache data in the electronic equipment and displaying the second drawing result on a display screen corresponding to the identification information of the second cache data in the electronic equipment.
Optionally, after the first drawing result and the second drawing result are determined, corresponding display may be performed according to a display screen corresponding to the identification information, the first drawing result may be displayed on the display screen corresponding to the identification information of the first cache data, and the second drawing result may be displayed on the display screen corresponding to the identification information of the second cache data in the electronic device.
For example: if the identification information corresponding to the first cache data is corresponding to the screen a and the identification information corresponding to the second cache data is corresponding to the screen B, the first drawing result may be displayed on the screen a and the second drawing result may be displayed on the screen B.
Next, a further specific implementation of the screen display method provided in the embodiment of the present application will be specifically explained.
Fig. 8 is a seventh flowchart illustrating a screen display method according to an embodiment of the present application, referring to fig. 8, a first thread is executed, including:
s810: it is determined whether the first cache data is updated.
S820: and if the first cache data is updated, judging whether second cache data corresponding to the updated first cache data is received or not.
Optionally, when new first cache data is input, the first thread may receive a refresh request, and may determine that the first cache data is updated according to the refresh request.
Optionally, after it is determined that the first cache data is updated, it may be determined whether new second cache data is input, where the new second cache data is second cache data corresponding to the updated first cache data.
Optionally, if new second cache data is received, the method as S620-S630 may be executed for displaying, which is not described herein again.
S830: and if not, drawing the updated first cache data to obtain an updated first drawing result.
Optionally, if no new second cache data is received, the first cache data may be subjected to rendering processing to obtain an updated first rendering result.
S840: and outputting the updated first drawing result to a display screen of the electronic equipment through the multi-screen management module.
S850: and displaying the updated first drawing result on a display screen of the electronic equipment.
Optionally, after obtaining the updated first drawing result, the updated first drawing result may be displayed on a display screen of the electronic device. The display screen may be a display screen corresponding to the updated identification information of the first cache data.
The following explains a specific implementation process of the screen display method provided in the embodiment of the present application by using an overall flowchart.
Fig. 9 is an eighth schematic flow chart of a screen display method according to an embodiment of the present application, please refer to fig. 9, where the method includes:
s901: the first thread is started.
S902: the first thread is initialized.
S903: and establishing a first cache object.
S904: and inputting the first cache data into the first cache object.
S905: the second thread is started.
S906: the second thread is initialized.
S907: and establishing a second cache object.
S908: and inputting the second cache data into the second cache object.
S909: and sending the second cache data to the first thread.
S910: it is determined whether the first cache data is refreshed. If yes, executing S911; if not, S917 is performed.
S911: and performing drawing processing on the first cache data to obtain a first drawing result, and performing drawing processing on the second cache data to obtain a second drawing result.
S912: it is determined whether there is new second cache data. If yes, go to S913; if not, go to S915.
S913: and mixing the first drawing result and the second drawing result to obtain the first information to be displayed.
S914: the electronic screen displays the first information to be displayed.
S915: and outputting the first drawing result.
S916: the electronic screen displays the first drawing result.
S917: it is determined whether a second cache object is received. If so, go to S918, otherwise, go to S910.
S918: it is determined whether second cache data in the second cache object is updated. If yes, go to S919; if not, go to step S920.
S919: the second cached object is returned and the third cached object is received.
S920: and acquiring second cache data.
S921: and judging whether the identification information of the second cache data is the same as the identification information of the first cache data. If yes, go to S913; if not, go to S922.
S922: and outputting the second drawing result.
S923: and the electronic screen displays the second drawing result.
Optionally, the specific implementation process of S901-S923 is explained in the foregoing description of the overall scheme, and it should be noted that the determining process may be a loop determining process, and the determining step in the foregoing steps is performed each time the first buffer data or the second buffer data is updated.
The following describes apparatuses, devices, and storage media for executing the screen display method provided by the present application, and specific implementation processes and technical effects thereof are referred to above, and will not be described again below.
Fig. 10 is a schematic structural diagram of a screen display device according to an embodiment of the present application, and please refer to fig. 10, the device is applied to a graphics processor of an electronic device, and the device includes: the thread module 100, the preprocessing module 200 and the display module 300;
the thread module 100 is configured to respond to a user operation, run a first thread and run a second thread, where the first thread is a main thread of a graphics processor, the first thread is configured to perform drawing processing according to first cache data formed by the user operation to obtain a first drawing result, the second thread is a cooperative thread of the graphics processor, and the second thread is configured to send second cache data formed by the user operation to the first thread to perform drawing processing to obtain a second drawing result;
the preprocessing module 200 is configured to preprocess the first drawing result and the second drawing result through a multi-screen management module in the graphics processor to obtain information to be displayed, where the multi-screen management module is configured to interface a display screen of the electronic device;
the display module 300 is configured to display information to be displayed on a display screen of the electronic device.
Optionally, the thread module 100 is specifically configured to respond to an operation of a user and establish a first cache object; inputting first cache data in a first cache object; and performing drawing processing according to the first cache data to obtain a first drawing result.
Optionally, the thread module 100 is specifically configured to respond to an operation of a user and establish a second cache object; inputting second cache data in the second cache object; and sending the second cache object to the first thread, drawing by the first thread according to second cache data in the second cache object to obtain a second drawing result, and returning the second cache object to the second thread.
Optionally, the thread module 100 is specifically configured to respond to an operation of a user, and detect whether a second cache object is received; if not, establishing a third cache object; inputting second cache data in the third cache object; and sending the third cache object to the first thread, and drawing by the first thread according to second cache data in the third cache object to obtain a second drawing result.
Optionally, the preprocessing module 200 is specifically configured to compare whether the identification information of the first cached data and the identification information of the second cached data are the same through the multi-screen management module, where the identification information is used to identify a display screen corresponding to a source of the cached data, and if the identification information of the first cached data and the identification information of the second cached data are the same, perform mixing processing on the first drawing result and the second drawing result to obtain the first information to be displayed; the display module 300 is specifically configured to display the first information to be displayed on a display screen corresponding to the identification information in the electronic device.
Optionally, the preprocessing module 200 is further configured to, if the identification information of the first cached data is different from the identification information of the second cached data, output the first drawing result and the second drawing result to a display screen of the electronic device through the multi-screen management module respectively; the display module 300 is further configured to display the first drawing result on a display screen corresponding to the identification information of the first cached data in the electronic device and display the second drawing result on a display screen corresponding to the identification information of the second cached data in the electronic device, respectively.
Optionally, the thread module 100 is further configured to determine whether the first cache data is updated; if the first cache data is updated, judging whether second cache data corresponding to the updated first cache data is received or not, and drawing the updated first cache data to obtain an updated first drawing result; outputting the updated first drawing result to a display screen of the electronic equipment through a multi-screen management module; and displaying the updated first drawing result on a display screen of the electronic equipment.
The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 11 is a schematic structural diagram of a computer device according to an embodiment of the present application, please refer to fig. 11, where the computer device includes: the display device comprises a memory 400 and a processor 500, wherein a computer program capable of running on the processor 500 is stored in the memory 400, and when the computer program is executed by the processor 500, the steps of the screen display method are realized.
In another aspect of the embodiments of the present application, a computer-readable storage medium is further provided, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the screen display method are implemented.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A screen display method, applied to a graphics processor of an electronic device, comprising:
responding to the operation of a user, operating a first thread and a second thread, wherein the first thread is a main thread of the graphics processor, the first thread is used for drawing according to first cache data formed by the operation of the user to obtain a first drawing result, the second thread is a cooperative thread of the graphics processor, and the second thread is used for sending second cache data formed by the operation of the user to the first thread to draw to obtain a second drawing result;
preprocessing the first drawing result and the second drawing result through a multi-screen management module in the graphics processor to obtain information to be displayed, wherein the multi-screen management module is used for butting a display screen of the electronic equipment;
and displaying the information to be displayed on a display screen of the electronic equipment.
2. The method of claim 1, wherein the running the first thread comprises:
responding to the operation of a user, and establishing a first cache object;
inputting the first cache data in the first cache object;
and performing drawing processing according to the first cache data to obtain the first drawing result.
3. The method of claim 1, wherein the running the second thread comprises:
responding to the operation of a user, and establishing a second cache object;
inputting the second cache data in the second cache object;
and sending the second cache object to the first thread, drawing by the first thread according to second cache data in the second cache object to obtain a second drawing result, and returning the second cache object to the second thread.
4. The method of claim 3, wherein the running the second thread comprises:
responding to the operation of a user, and detecting whether the second cache object is received;
if not, establishing a third cache object;
inputting the second cache data in the third cache object;
and sending the third cache object to the first thread, and drawing by the first thread according to second cache data in the third cache object to obtain a second drawing result.
5. The method according to any one of claims 1 to 4, wherein the pre-processing by a multi-screen management module in the graphics processor according to the first drawing result and the second drawing result to obtain the information to be displayed comprises:
comparing whether the identification information of the first cache data and the identification information of the second cache data are the same or not through the multi-screen management module, wherein the identification information is used for identifying a display screen corresponding to a source of the cache data, and if the identification information is the same, mixing the first drawing result and the second drawing result to obtain first information to be displayed;
the displaying the information to be displayed on the display screen of the electronic device includes:
and displaying the first information to be displayed on a display screen corresponding to the identification information in the electronic equipment.
6. The method of claim 5, wherein the method further comprises:
if the identification information of the first cache data is different from the identification information of the second cache data, outputting the first drawing result and the second drawing result to a display screen of the electronic equipment through the multi-screen management module respectively;
the displaying the information to be displayed on the display screen of the electronic device includes:
and respectively displaying the first drawing result on a display screen corresponding to the identification information of the first cache data in the electronic equipment and displaying the second drawing result on a display screen corresponding to the identification information of the second cache data in the electronic equipment.
7. The method of any of claims 1-4, wherein the running the first thread comprises:
determining whether the first cache data is updated;
if the first cache data is updated, judging whether second cache data corresponding to the updated first cache data is received or not, and if not, drawing the updated first cache data to obtain an updated first drawing result;
outputting the updated first drawing result to a display screen of the electronic equipment through the multi-screen management module;
displaying the updated first drawing result on a display screen of the electronic device.
8. An on-screen display device, applied to a graphics processor of an electronic device, comprising: the device comprises a thread module, a preprocessing module and a display module;
the thread module is used for responding to user operation, operating a first thread and a second thread, wherein the first thread is a main thread of the graphics processor, the first thread is used for drawing according to first cache data formed by user operation to obtain a first drawing result, the second thread is a cooperative thread of the graphics processor, and the second thread is used for sending second cache data formed by user operation to the first thread to perform drawing to obtain a second drawing result;
the preprocessing module is configured to preprocess the first drawing result and the second drawing result through a multi-screen management module in the graphics processor to obtain information to be displayed, and the multi-screen management module is configured to interface a display screen of the electronic device;
the display module is used for displaying the information to be displayed on a display screen of the electronic equipment.
9. A computer device, comprising: memory in which a computer program is stored which is executable on the processor, and a processor which, when executing the computer program, carries out the steps of the method according to any one of the preceding claims 1 to 7.
10. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202110305708.8A 2021-03-23 2021-03-23 Screen display method, device, equipment and storage medium Active CN112925601B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110305708.8A CN112925601B (en) 2021-03-23 2021-03-23 Screen display method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110305708.8A CN112925601B (en) 2021-03-23 2021-03-23 Screen display method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112925601A true CN112925601A (en) 2021-06-08
CN112925601B CN112925601B (en) 2022-07-19

Family

ID=76175407

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110305708.8A Active CN112925601B (en) 2021-03-23 2021-03-23 Screen display method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112925601B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118349206A (en) * 2024-06-18 2024-07-16 成都音悦创想科技有限公司 Display method, device, equipment and medium of spliced screen

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170155890A1 (en) * 2015-12-01 2017-06-01 Le Holdings (Beijing) Co., Ltd. Method and device for stereoscopic image display processing
CN107729094A (en) * 2017-08-29 2018-02-23 口碑(上海)信息技术有限公司 The method and device that a kind of user interface renders
CN109237999A (en) * 2018-09-19 2019-01-18 中国电子科技集团公司第二十八研究所 A kind of batch three-dimensional situation target trail real-time drawing method and system
CN110221889A (en) * 2019-05-05 2019-09-10 北京三快在线科技有限公司 A kind of page display method, device, electronic equipment and storage medium
CN111880868A (en) * 2020-06-16 2020-11-03 上海趣蕴网络科技有限公司 Asynchronous image drawing method and device based on multi-level cache

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170155890A1 (en) * 2015-12-01 2017-06-01 Le Holdings (Beijing) Co., Ltd. Method and device for stereoscopic image display processing
CN107729094A (en) * 2017-08-29 2018-02-23 口碑(上海)信息技术有限公司 The method and device that a kind of user interface renders
CN109237999A (en) * 2018-09-19 2019-01-18 中国电子科技集团公司第二十八研究所 A kind of batch three-dimensional situation target trail real-time drawing method and system
CN110221889A (en) * 2019-05-05 2019-09-10 北京三快在线科技有限公司 A kind of page display method, device, electronic equipment and storage medium
CN111880868A (en) * 2020-06-16 2020-11-03 上海趣蕴网络科技有限公司 Asynchronous image drawing method and device based on multi-level cache

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118349206A (en) * 2024-06-18 2024-07-16 成都音悦创想科技有限公司 Display method, device, equipment and medium of spliced screen

Also Published As

Publication number Publication date
CN112925601B (en) 2022-07-19

Similar Documents

Publication Publication Date Title
CN107102880B (en) Message treatment method, device, storage medium and computer equipment
US7991646B2 (en) Systems and methods for marketplace listings using a camera enabled mobile device
CA2863997C (en) Method and apparatus for adding friend, and storage medium
CN103716380B (en) Method and system for the Intelligent Notification of the request of real-time online interaction
US12026421B2 (en) Screen sharing method, apparatus, and device, and storage medium
US20170083490A1 (en) Providing collaboration communication tools within document editor
CN112561640A (en) Commodity page template generation method and device, computer equipment and storage medium
CN110702346B (en) Vibration testing method and device, storage medium and terminal
CN112269504B (en) Information display method and device and electronic equipment
US20230239546A1 (en) Theme video generation method and apparatus, electronic device, and readable storage medium
CN113568699A (en) Content display method, device, equipment and storage medium
CN105379236A (en) User experience mode transitioning
CN111127469A (en) Thumbnail display method, device, storage medium and terminal
CN112925601B (en) Screen display method, device, equipment and storage medium
US9973462B1 (en) Methods for generating message notifications
CN117576388A (en) Image processing method and device, storage medium and electronic equipment
WO2022237310A1 (en) Method and apparatus for displaying text message, electronic device, and storage medium
CN114489910B (en) Video conference data display method, device, equipment and medium
CN113364915B (en) Information display method and device and electronic equipment
CN107862010A (en) A kind of method, device and mobile terminal for obtaining Internet of Things application system information
CN114338897A (en) Object sharing method and device, electronic equipment and storage medium
CN114625296A (en) Application processing method and device
US20230410394A1 (en) Image display method and apparatus, device, and medium
WO2016166955A1 (en) Image processing device, image distribution system, and image processing method
US20240104808A1 (en) Method and system for creating stickers from user-generated content

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant