CN112948042B - Display control method and device, computer readable medium and electronic equipment - Google Patents

Display control method and device, computer readable medium and electronic equipment Download PDF

Info

Publication number
CN112948042B
CN112948042B CN202110227095.0A CN202110227095A CN112948042B CN 112948042 B CN112948042 B CN 112948042B CN 202110227095 A CN202110227095 A CN 202110227095A CN 112948042 B CN112948042 B CN 112948042B
Authority
CN
China
Prior art keywords
target picture
screen
view
target
displayed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110227095.0A
Other languages
Chinese (zh)
Other versions
CN112948042A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110227095.0A priority Critical patent/CN112948042B/en
Publication of CN112948042A publication Critical patent/CN112948042A/en
Application granted granted Critical
Publication of CN112948042B publication Critical patent/CN112948042B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • 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/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake

Landscapes

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

Abstract

The disclosure provides a display control method, a display control device, a computer readable medium and electronic equipment, and relates to the technical field of image processing. The method comprises the following steps: when the target picture is displayed at a first position of the screen, responding to dormancy of a drawing thread corresponding to the target picture, transferring the target picture to a second position, wherein the first position enables the target picture to be displayed on the screen, and the second position enables the target picture not to be displayed in the screen; and in response to invoking the onResume method corresponding to the target picture, waking up the drawing thread, and transferring the target picture re-drawn by the drawing thread to the first position. The method and the device can avoid the process that the picture remains in the screen for display after the screen is closed and then opened; meanwhile, the display process of displaying, not displaying and displaying again when the screen is closed and then opened can be simplified into the display process of not displaying and displaying, and the flickering visual effect caused by the display process before the simplification is avoided.

Description

Display control method and device, computer readable medium and electronic equipment
Technical Field
The present disclosure relates to the field of image processing technologies, and in particular, to a display control method, a display control apparatus, a computer readable medium, and an electronic device.
Background
When the screen is turned off, the electronic device often controls the thread for display to sleep, such as drawing the thread, in order to save power. In this case, if the screen is turned off and then on, the display screen before the turn-off will have screen residues, and then the screen residues will be displayed directly when turned on. After the screen is restarted, the thread for displaying is awakened again, at the moment, the picture residues are cleared, and then the display picture before being closed is redrawn. Therefore, when the screen is turned off and turned on again, the display process of displaying, not displaying and displaying again is often performed, and the display process can generate a flickering visual effect under the observation of human eyes.
Disclosure of Invention
The present disclosure is directed to a display control method, a display control apparatus, a computer-readable medium, and an electronic device, so as to avoid, at least to some extent, a visual effect of flickering when a screen is turned off and turned on.
According to a first aspect of the present disclosure, there is provided a display control method including: when the target picture is displayed at a first position of the screen, responding to dormancy of a drawing thread corresponding to the target picture, transferring the target picture to a second position, wherein the first position enables the target picture to be displayed on the screen, and the second position enables the target picture not to be displayed in the screen; and in response to invoking the onResume method corresponding to the target picture, waking up the drawing thread, and transferring the target picture re-drawn by the drawing thread to the first position.
According to a second aspect of the present disclosure, there is provided a display control apparatus including: the first transfer module is used for responding to dormancy of a drawing thread corresponding to the target picture when the target picture is displayed at a first position of the screen, transferring the target picture to a second position, wherein the first position enables the target picture to be displayed on the screen, and the second position enables the target picture not to be displayed in the screen; and the second transfer module is used for waking up the drawing thread in response to the onResume method corresponding to the call target picture and transferring the target picture re-drawn by the drawing thread to the first position first transfer module and the second transfer module.
According to a third aspect of the present disclosure, there is provided a computer readable medium having stored thereon a computer program which, when executed by a processor, implements the method described above.
According to a fourth aspect of the present disclosure, there is provided an electronic apparatus, comprising:
A processor; and
And a memory for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the methods described above.
According to the display control method provided by the embodiment of the disclosure, when the drawing thread corresponding to the target picture is dormant, the target picture displayed at the first position of the screen is directly transferred to the second position which is not displayed in the screen, so that the process that the picture remains in the screen to be displayed after the screen is closed and then opened can be avoided. And then, when the onResume method is called, directly waking up the drawing thread, and transferring the re-drawn target picture to a first position, so that the re-display effect can be realized. By the method, the display process of displaying, not displaying and displaying again when the screen is closed and opened again can be simplified into the display process of not displaying and displaying, and the flickering visual effect caused by the display process before the simplification is avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort. In the drawings:
FIG. 1 illustrates a schematic diagram of an exemplary system architecture to which embodiments of the present disclosure may be applied;
FIG. 2 shows a schematic diagram of an electronic device to which embodiments of the present disclosure may be applied;
FIG. 3 schematically illustrates a flow chart of a display control method in an exemplary embodiment of the present disclosure;
FIG. 4 schematically illustrates a smart watch display state transition diagram in an exemplary embodiment of the present disclosure;
FIG. 5 schematically illustrates another smart watch display state transition diagram in an exemplary embodiment of the present disclosure;
FIG. 6 schematically illustrates a flowchart of another display control method in an exemplary embodiment of the present disclosure;
Fig. 7 schematically illustrates a composition diagram of a display control apparatus in an exemplary embodiment of the present disclosure;
fig. 8 schematically illustrates a composition diagram of another display control apparatus in an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
Fig. 1 is a schematic diagram of a system architecture of an exemplary application environment to which a display control method and apparatus of embodiments of the present disclosure may be applied.
As shown in fig. 1, the system architecture 100 may include one or more of the terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others. The terminal devices 101, 102, 103 may be various electronic devices with image processing functions including, but not limited to, desktop computers, portable computers, smart phones, smart watches, tablet computers, and the like. It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation. For example, the server 105 may be a server cluster formed by a plurality of servers.
The display control method provided by the embodiments of the present disclosure is generally performed in the terminal devices 101, 102, 103, and accordingly, the display control apparatus is generally provided in the terminal devices 101, 102, 103. However, it will be readily understood by those skilled in the art that the display control method provided in the embodiment of the present disclosure may be executed by the server 105, and accordingly, the display control device may be disposed in the server 105, which is not particularly limited in the present exemplary embodiment. For example, in an exemplary embodiment, a target screen may be displayed in a first position of a screen of the terminal device 101, 102, 103, and the server 105 controls the terminal device 101, 102, 103 to transfer the target screen to a second position through the network 104 in response to dormancy of a rendering thread corresponding to the target screen; then, when the onResume method corresponding to the target picture is called in the terminal device 101, 102, 103, the server 105 controls the terminal device 101, 102, 103 to wake up the rendering thread through the network 104, and transfers the target picture re-rendered by the rendering thread to the first position, and so on.
Exemplary embodiments of the present disclosure provide an electronic device for implementing a display control method, which may be the terminal device 101, 102, 103 or the server 105 in fig. 1. The electronic device comprises at least a processor and a memory for storing executable instructions of the processor, the processor being configured to perform a display control method via execution of the executable instructions.
The configuration of the electronic device will be exemplarily described below using the mobile terminal 200 of fig. 2 as an example. It will be appreciated by those skilled in the art that the configuration of fig. 2 can also be applied to stationary type devices in addition to components specifically for mobile purposes. In other embodiments, mobile terminal 200 may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware. The interfacing relationship between the components is shown schematically only and does not constitute a structural limitation of the mobile terminal 200. In other embodiments, the mobile terminal 200 may also employ a different interface from that of fig. 2, or a combination of interfaces.
As shown in fig. 2, the mobile terminal 200 may specifically include: processor 210, internal memory 221, external memory interface 222, universal serial bus (Universal Serial Bus, USB) interface 230, charge management module 240, power management module 241, battery 242, antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, audio module 270, speaker 271, receiver 272, microphone 273, headset interface 274, sensor module 280, display screen 290, camera module 291, indicator 292, motor 293, keys 294, and subscriber identity module (subscriber identification module, SIM) card interface 295, among others. Wherein the sensor module 280 may include a depth sensor 2801, a pressure sensor 2802, a gyro sensor 2803, and the like.
Processor 210 may include one or more processing units such as, for example: the Processor 210 may include an application Processor (Application Processor, AP), a modem Processor, a graphics Processor (Graphics Processing Unit, GPU), an image signal Processor (IMAGE SIGNAL Processor, ISP), a controller, a video codec, a digital signal Processor (DIGITAL SIGNAL Processor, DSP), a baseband Processor and/or a neural network Processor (Neural-Network Processing Unit, NPU), and the like. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The processor 210 has a memory disposed therein. The memory may store instructions for implementing six modular functions: detection instructions, connection instructions, information management instructions, analysis instructions, data transfer instructions, and notification instructions, and are controlled to be executed by the processor 210.
The mobile terminal 200 implements display functions through a GPU, a display screen 290, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 290 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 210 may include one or more GPUs that execute program instructions to generate or change display information. In some embodiments, the above-described process of transferring the target frame from the first location to the second location, and re-transferring to the first location, may be performed by the GPU. In addition, the GPU may also be used to perform rendering operations on a target screen, and the like.
In the related art, when the screen is closed and then opened, the screen is often subjected to a display process of displaying, not displaying and displaying again, and the display process can have a flickering visual effect under the observation of human eyes. For example, in a smart watch, the corresponding entry animation will be played when the badge pops up. However, when a badge is being displayed on a smart watch, if a user turns the screen of the smart watch off and then on, the badge may have a visual effect of being displayed, not being displayed, and being displayed again, i.e., a flickering visual effect. If the user opens the function of the screen-off of the homeowner and the screen-on of the wrist-lifting when using the smart watch, the probability of appearance of the flickering visual effect is higher.
In view of one or more of the problems described above, the present exemplary embodiment provides a display control method. The display control method may be applied to the server 105, or may be applied to one or more of the terminal devices 101, 102, 103, which is not particularly limited in the present exemplary embodiment. Referring to fig. 3, the display control method may include the following steps S310 and S320:
In step S310, when the target frame is displayed at the first position of the screen, the target frame is transferred to the second position in response to the sleep of the rendering thread corresponding to the target frame.
The first position may be such that the target picture is displayed in the screen when the target picture is located at the first position; the second position may be such that the target picture is not displayed in the screen when the target picture is in the second position. Specifically, the second position may be a position where the target screen is displayed outside the screen by performing panning based on the first position, that is, when the target screen is in the second position, the target screen is present, but the target screen cannot be displayed in the screen because the target screen is located outside the screen.
In an exemplary embodiment, when a target picture displayed on a screen is at a first position, a rendering thread corresponding to the target picture is dormant due to a screen being turned off, and thus a picture residue corresponding to the target picture appears at the first position of the target picture on the screen. At this time, the target picture may be removed from the screen by the main thread. For example, as shown in fig. 4, when a target screen 420 is displayed in a screen 410 of the smart watch and a drawing thread corresponding to the target screen 420 is dormant due to screen shutdown or the like, the target screen 420 is shifted from a first position of the screen 410 to a second position on the right side of the screen 410. By shifting the target picture to the second position, the target picture cannot be displayed in the screen, and therefore even if the rendering thread has been put to sleep by the system, the picture-residual cannot be emptied, and the picture-residual is not displayed in the screen.
In some exemplary embodiments, when the terminal device displays the target screen, a view layout corresponding to the target Activity may be created when the target Activity is started, and then a surface layer view is added in the view layout, so that the target screen is displayed through the surface layer view. The view layout may include various types of view layouts, such as FrameLayout, among others; the skin views may then include various types of skin views, such as SurfaceView, GLSurfaceView, etc.
When the target picture is a 3D picture, the corresponding surface layer view may be set to GLSurfaceView, so as to improve the rendering efficiency. For example, when a model of a 3D space is displayed in a smart watch, when the Activity corresponding to the model of the 3D space is started, a corresponding FrameLayout may be created, and then GLSurfaceView may be added to the FrameLayout, so that the display of the target screen may be realized at the GLSurfaceView.
In an exemplary embodiment, after transferring the target screen to the second position, the display at the first position may be problematic. For example, after GLSurfaceView is moved to the second location, the system may create another SurfaceView that displays the Activity of the next layer of the target Activity. In order to avoid the problem similar to the picture displaying the next-layer Activity, a preset non-main thread view can be added in the view layout corresponding to the target Activity. The preset non-main thread view refers to a view rendered by a thread other than the main thread, for example SurfaceView is a view rendered by a non-main thread.
In addition, since the main thread view (e.g. normal view) cannot cover other non-main thread views created by the system, a problem of displaying a next-layer Activity picture still occurs, and accordingly, the above-mentioned occlusion effect of the preset non-main thread view cannot be achieved by creating the main thread view.
It should be noted that the preset non-main thread view may be set differently according to different target frames, which is not limited in this disclosure. For example, assuming that the target picture is a 3D badge, since the 3D badge is a model displayed in one 3D space, the remaining space is displayed in black except for its own vivid color, at which time the preset non-main thread view may be set to a pure black view according to the background color of the 3D badge. For example, surfaceView, which is displayed in pure black, can be used as a preset non-main thread view when the target picture is a 3D badge.
By setting the preset non-main thread view, on one hand, after the surface layer view corresponding to the target picture is transferred to the second position, the preset non-main thread view is reserved at the first position, so that the system can be prevented from automatically creating other views to a certain extent; on the other hand, by setting the display hierarchy of the preset non-main thread view, even if the system creates other views, the other views can be blocked by the preset non-main thread view.
In addition, in order to ensure that the surface layer view of the target picture is not blocked by the preset non-main thread view, a display level of the surface layer view is required to be set at this time, so that the target picture is displayed on the upper layer of the surface layer view in the preset non-main thread view. For example, setZOrderMediaOverlay methods may be invoked to set GLSurfaceView.
In an exemplary embodiment, when the target picture is displayed through the skin view, the effect of transferring the target picture from the first position to the second position may be achieved by performing a preset transformation on the coordinate position of the skin view. For example, translationX of SurfaceView may be offset such that SurfaceView is shifted left or right in the X-axis direction, thereby shifting the target frame displayed at SurfaceView to the left of the left edge of the screen or to the right of the right edge of the screen. In addition, the coordinate position of the surface layer view can be changed through other forms of preset transformation, so that the target picture displayed by the surface layer view is transferred to a second position which is not displayed in the screen, and the form of the preset transformation is not particularly limited in the disclosure; meanwhile, on the basis that the second position can achieve the effect that the target picture is not displayed in the screen, the specific setting of the second position is not particularly limited.
In step S320, in response to invoking the onResume method corresponding to the target picture, the drawing thread is awakened, and the target picture re-drawn by the drawing thread is transferred to the first position.
In an exemplary embodiment, when the system invokes the onResume method corresponding to the target picture, the previously dormant rendering thread is awakened and the target picture is redrawn. At this time, in order to redisplay the target picture on the screen, the target picture may be shifted to the first position, so that redisplay of the target picture is realized in a scene such as restarting the screen.
In an exemplary embodiment, when the target picture is displayed through the skin view, the effect of transferring the target picture to the first position of the screen may be achieved by performing a preset inverse transformation on the coordinate position of the skin view. It should be noted that, the preset inverse transformation and the preset transformation are inverse transformation processes. That is, assuming that the preset transformation can change the position coordinate from a to B, the corresponding preset inverse transformation can restore the position coordinate from B to a.
For example, as shown in fig. 4, when the preset transformation pair SurfaceView is set to shift translationX in the X-axis direction, so that SurfaceView is shifted to the right, and thus the target frame 420 displayed in SurfaceView is shifted from the first position in the middle of the screen 410 to the second position on the right side of the right edge of the screen 410, correspondingly, as shown in fig. 5, the preset inverse transformation pair SurfaceView may be shifted to the left in the X-axis direction, and thus the target frame 520 displayed in SurfaceView is shifted from the second position on the right side of the right edge to the first position in the middle of the screen 510. In addition, different settings may be adopted for the preset inverse transformation according to different preset transformations, which is not particularly limited in the present disclosure.
Further, in some exemplary embodiments, at least one target object and an entry animation corresponding to the target object may be included in the target screen. At this time, in order to ensure the integrity of the display of the entry animation, after the target frame is transferred to the first position, the entry animation corresponding to the target object included in the target frame may be played. For example, when the target scene is a 3D badge with a black background, the 3D badge includes an entry animation. After the target picture is transferred to the first position, the entry animation corresponding to the 3D badge is played again, so that the problem that the entry animation is incomplete in display because the entry animation is played when the target picture is not transferred to the first position is solved.
The following describes in detail the technical solution of the present disclosure, taking the example of displaying a 3D badge on a smart watch, with reference to fig. 6:
The 3D badge is a model displayed in one 3D space, and the rest of the space is black except that the 3D badge itself has vivid colors in consideration of the display and power consumption problems of combining the appearance of the smart watch. If the user does not exit the display interface of the 3D badge before closing the screen, the screen becomes black and one piece when the screen is closed. Since the drawing thread of the 3D badge after the screen is closed is also dormant, the picture of the 3D badge cannot be completely emptied every time the screen is closed, and when the screen is restarted correspondingly, the residual 3D badge is displayed first. Afterwards, the drawing thread of the 3D badge wakes up again, the screen is emptied, then the 3D badge is drawn again, and then the entry animation corresponding to the 3D badge is played. In this case, a display process of displaying, not displaying, redisplaying, that is, blinking occurs.
To avoid the above, referring to fig. 6, the above blinking process can be avoided by: in step S610, a FrameLayout may be first displayed in a first position on the screen by the Activity of the 3D badge; in step S620, frameLayout adds a SurfaceView to display pure black, and then adds GLSurfaceView to display the 3D badge; in step S630, call setZOrderMediaOverlay method, causing GLSurfaceView to be set to setZOrderMediaOverlay (true); in step S640, in response to the rendering thread corresponding to the 3D badge being dormant, transferring GLSurfaceView from the first position to the second position of the screen by presetting translationX of transition change GLSurfaceView; in step S650, upon invoking onResume method corresponding to the 3D badge, translationX of change GLSurfaceView by preset inverse transformation, transitions GLSurfaceView to GLSurfaceView the first position in the screen.
In summary, in the present exemplary embodiment, by transferring the target frame to the second position that is not displayed in the screen when the drawing thread is dormant, it is avoided that the frame of the target frame before the screen is closed remains on the screen after the screen is restarted, and further, the flickering visual effect that easily occurs when the screen is closed and restarted is avoided.
It is noted that the above-described figures are merely schematic illustrations of processes involved in a method according to exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
Further, referring to fig. 7, in the embodiment of the present example, there is further provided a display control apparatus 700 including a first transfer module 710 and a second transfer module 720. Wherein:
The first transferring module 710 may be configured to transfer, when the target frame is displayed at a first position on the screen, the target frame to a second position, where the first position causes the target frame to be displayed on the screen and the second position causes the target frame not to be displayed on the screen, in response to the rendering thread corresponding to the target frame being dormant.
The second transferring module 720 may be configured to wake up the drawing thread in response to invoking the onResume method corresponding to the target frame, and transfer the target frame re-drawn by the drawing thread to the first position.
In an exemplary embodiment, referring to fig. 8, the display control apparatus 800 further includes a screen display module 810 that may be used to create a view layout corresponding to a target Activity in response to the target Activity being initiated; a skin view is added in the view layout to display the target picture based on the skin view.
In an exemplary embodiment, the screen display module 810 may be used to add a preset non-main thread view in the view layout.
In an exemplary embodiment, the screen display module 810 may be configured to perform display hierarchy setting on the surface layer view, so that the surface layer view is displayed on top of the preset non-main thread view.
In an exemplary embodiment, when the target picture is a 3D picture, the skin view includes GLSurfaceView.
In an exemplary embodiment, the first transferring module 710 may be configured to perform a preset transformation on the corresponding coordinate positions of the layer view, so as to transfer the target frame to the second position.
In an exemplary embodiment, the second transferring module 720 may be configured to perform a preset inverse transformation on the corresponding coordinate positions of the layer view to transfer the target frame to the first position.
In an exemplary embodiment, the second transfer module 720 may be configured to play an entry animation corresponding to a target object included in the target frame.
The specific details of each module in the above apparatus are already described in the method section, and the details that are not disclosed can be referred to the embodiment of the method section, so that they will not be described in detail.
Those skilled in the art will appreciate that the various aspects of the present disclosure may be implemented as a system, method, or program product. Accordingly, various aspects of the disclosure may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
Exemplary embodiments of the present disclosure also provide a computer-readable storage medium having stored thereon a program product capable of implementing the method described above in the present specification. In some possible implementations, various aspects of the disclosure may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the disclosure as described in the "exemplary methods" section of this specification, when the program product is run on the terminal device, e.g. any one or more of the steps of fig. 3 and 6 may be carried out.
It should be noted that the computer readable medium shown in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Furthermore, the program code for carrying out operations of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (8)

1. A display control method, characterized by comprising:
responding to the starting of a target Activity, and creating a view layout corresponding to the target Activity;
Adding a surface layer view in the view layout to display a target picture based on the surface layer view, and adding a preset non-main thread view in the view layout;
Setting a display level of the surface layer view so that the surface layer view is displayed on the upper layer of the preset non-main thread view;
When the target picture is displayed at a first position of a screen, responding to the closing of the screen, enabling a drawing thread corresponding to the target picture to sleep, and transferring the target picture to a second position, wherein the first position enables the target picture to be displayed on the screen, and the second position enables the target picture not to be displayed in the screen;
and responding to the screen restart, calling a onResume method corresponding to the target picture, waking up the drawing thread, and transferring the target picture re-drawn by the drawing thread to the first position.
2. The method of claim 1, wherein the skin view comprises GLSurfaceView when the target picture is a 3D picture.
3. The method of claim 1, wherein the transferring the target frame to the second position comprises:
and carrying out preset transformation on the corresponding coordinate position of the surface layer view so as to transfer the target picture to a second position.
4. A method according to claim 3, wherein said transferring said target picture re-rendered by said rendering thread to said first position comprises:
and carrying out preset inverse transformation on the corresponding coordinate position of the surface layer view so as to transfer the target picture to the first position.
5. The method of claim 1, wherein after the transferring the target picture re-rendered by the rendering thread to the first position, the method further comprises:
And playing the entrance animation corresponding to the target object contained in the target picture.
6. A display control apparatus, comprising:
the first transfer module is used for responding to the starting of the target Activity and creating a view layout corresponding to the target Activity; adding a surface layer view in the view layout to display a target picture based on the surface layer view, and adding a preset non-main thread view in the view layout; setting a display level of the surface layer view so that the surface layer view is displayed on the upper layer of the preset non-main thread view; when the target picture is displayed at a first position of a screen, responding to the closing of the screen, enabling a drawing thread corresponding to the target picture to sleep, and transferring the target picture to a second position, wherein the first position enables the target picture to be displayed on the screen, and the second position enables the target picture not to be displayed in the screen;
and the second transfer module is used for responding to the screen restart, calling a onResume method corresponding to the target picture, waking up the drawing thread, and transferring the target picture re-drawn by the drawing thread to the first position.
7. A computer readable medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the method according to any one of claims 1 to 5.
8. An electronic device, comprising:
A processor; and
A memory for storing executable instructions of the processor;
Wherein the processor is configured to perform the method of any one of claims 1 to 5 via execution of the executable instructions.
CN202110227095.0A 2021-03-01 2021-03-01 Display control method and device, computer readable medium and electronic equipment Active CN112948042B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110227095.0A CN112948042B (en) 2021-03-01 2021-03-01 Display control method and device, computer readable medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110227095.0A CN112948042B (en) 2021-03-01 2021-03-01 Display control method and device, computer readable medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN112948042A CN112948042A (en) 2021-06-11
CN112948042B true CN112948042B (en) 2024-04-30

Family

ID=76247013

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110227095.0A Active CN112948042B (en) 2021-03-01 2021-03-01 Display control method and device, computer readable medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112948042B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105491452A (en) * 2015-11-25 2016-04-13 浙江宇视科技有限公司 Multi-video-window hierarchy switching method and device
CN108595238A (en) * 2018-04-10 2018-09-28 Oppo广东移动通信有限公司 The display control method and device of application interface
CN110096329A (en) * 2019-05-09 2019-08-06 Oppo广东移动通信有限公司 A kind of display contents controlling method, electronic device and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3637225B1 (en) * 2017-06-05 2022-06-08 Huawei Technologies Co., Ltd. Display processing method and apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105491452A (en) * 2015-11-25 2016-04-13 浙江宇视科技有限公司 Multi-video-window hierarchy switching method and device
CN108595238A (en) * 2018-04-10 2018-09-28 Oppo广东移动通信有限公司 The display control method and device of application interface
CN110096329A (en) * 2019-05-09 2019-08-06 Oppo广东移动通信有限公司 A kind of display contents controlling method, electronic device and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于J2SE动画制作中的多线程技术应用研究;苏百兖 等;济宁师范专科学校学报;第28卷(第03期);第22-24页 *
苏百兖 等.基于J2SE动画制作中的多线程技术应用研究.济宁师范专科学校学报.2007,第28卷(第03期),第22-24页. *

Also Published As

Publication number Publication date
CN112948042A (en) 2021-06-11

Similar Documents

Publication Publication Date Title
CN112004086B (en) Video data processing method and device
CN116501210B (en) Display method, electronic equipment and storage medium
AU2021314277B2 (en) Interaction method and apparatus, and electronic device and computer-readable storage medium
CN114661263B (en) Display method, electronic equipment and storage medium
CN113163141B (en) Display control method, display control device, television and computer-readable storage medium
EP3828832A1 (en) Display control method, display control device and computer-readable storage medium
CN111813490A (en) Method and device for processing interpolation frame
CN112905280B (en) Page display method, device, equipment and storage medium
CN115562771B (en) Application window management method, electronic device, and computer-readable storage medium
US20190371039A1 (en) Method and smart terminal for switching expression of smart terminal
CN112948042B (en) Display control method and device, computer readable medium and electronic equipment
CN111710315B (en) Image display method, image display device, storage medium and electronic equipment
CN112114965A (en) Application program running method and device, terminal and storage medium
CN112565883A (en) Video rendering processing system and computer equipment for virtual reality scene
CN110892371B (en) Display control method and terminal
CN115576470A (en) Image processing method and apparatus, augmented reality system, and medium
CN115086888B (en) Message notification method and device and electronic equipment
CN117319725A (en) Subtitle display method, device, equipment and medium
CN113099300A (en) Program playing method and device, display terminal and storage medium
CN107819947B (en) Picture display method and device
GB2600341A (en) Image special effect processing method and apparatus, electronic device and computer-readable storage medium
CN110609599A (en) Display method and device of double-screen terminal, storage medium and terminal
CN114495859B (en) Picture display method, device, display terminal and storage medium
CN112911403B (en) Event analysis method and device, television and computer readable storage medium
CN116501227B (en) Picture display method and device, electronic equipment and storage medium

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