CN108829392B - Method and device for reducing transitional drawing, electronic equipment and storage medium - Google Patents

Method and device for reducing transitional drawing, electronic equipment and storage medium Download PDF

Info

Publication number
CN108829392B
CN108829392B CN201810489322.5A CN201810489322A CN108829392B CN 108829392 B CN108829392 B CN 108829392B CN 201810489322 A CN201810489322 A CN 201810489322A CN 108829392 B CN108829392 B CN 108829392B
Authority
CN
China
Prior art keywords
target interface
nested control
background color
attribute value
layout file
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
CN201810489322.5A
Other languages
Chinese (zh)
Other versions
CN108829392A (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.)
Beijing 58 Information Technology Co Ltd
Original Assignee
Beijing 58 Information 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 Beijing 58 Information Technology Co Ltd filed Critical Beijing 58 Information Technology Co Ltd
Priority to CN201810489322.5A priority Critical patent/CN108829392B/en
Publication of CN108829392A publication Critical patent/CN108829392A/en
Application granted granted Critical
Publication of CN108829392B publication Critical patent/CN108829392B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing 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/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and a device for reducing transitional drawing, electronic equipment and a storage medium, wherein the method comprises the following steps: monitoring whether a nested control exists in a layout file of a business component of a target interface; deleting the background color attribute value of the nested control under the condition that the nested control is monitored in the layout file of the business component; according to the method, the device, the electronic equipment and the storage medium, the background color attribute value of the nested control in the layout file of the business component of the target interface is deleted, namely when the page layout is complex, the useless background color attribute value in the layout file is removed, so that the client system does not need to draw the background color corresponding to the partially removed background color attribute value, therefore, the running smoothness of the client is improved, and the problem of stagnation of the client is solved.

Description

Method and device for reducing transitional drawing, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for reducing transitional rendering, an electronic device, and a storage medium.
Background
With the development of the internet, the kinds and the number of Applications (APPs) are increasing. Developers meet the needs of users by developing various APPs.
Currently, the display of each interface of APP is realized by a layout file containing tag include and Extensible Markup Language (XML). The include tag can realize that one layout refers to another layout, and is particularly suitable for a scene that the layout of the interface is complex and different interfaces have common layouts, such as a top bar layout, a side bar layout, a bottom bar layout and the like of an APP. For an APP, layout styles corresponding to all interfaces are written in an XML file. And calling parameters such as width, height, position and the like set by the interface in the XML layout file by the include tag, so as to draw the interface and realize the display of the interface.
However, with the increase of layout styles, since all layout styles of the APP are written in one XML layout file, the XML layout file becomes more and more complex, and interface layout styles at the same position overlap, which results in transient drawing of a Graphics Processing Unit (GPU), and also increases the maintenance cost of developers.
Disclosure of Invention
The invention mainly aims to provide a method, a device, electronic equipment and a storage medium for reducing transitional drawing, which solve the problem that a client terminal runs unsmooth due to transitional drawing.
According to a first aspect of the present invention, there is provided a method of reducing transition rendering, the method comprising:
monitoring whether a nested control exists in a layout file of a business component of a target interface; and deleting the background color attribute value of the nested control under the condition that the nested control is monitored to exist in the layout file of the business component.
Optionally, the service component includes: activity and/or Fragment of the service.
Optionally, after deleting the background color attribute value of the nested control, the method further includes: opening a GPU (graphics processing Unit) of an image processor, and judging whether transitional drawing exists in the target interface; and under the condition that the target interface is determined to have transitional drawing, monitoring whether a nested control exists in the layout file of the business component of the target interface again so as to delete the background color attribute value of the nested control.
Optionally, the determining whether the target interface has a transition drawing includes: acquiring a target interface color corresponding to the deleted background color attribute value of the nested control; and determining whether transition drawing exists in the region corresponding to the target interface color based on a preset mapping table, wherein the preset mapping table is used for representing the corresponding relation between the color and the transition drawing times corresponding to the color.
According to a second aspect of the present invention, there is provided an apparatus for reducing transition rendering, the apparatus comprising: the monitoring module is used for monitoring whether a nested control exists in a layout file of a business component of the target interface; and the deleting module is used for deleting the background color attribute value of the nested control under the condition that the nested control is monitored to be in the layout file of the business component.
Optionally, the service component includes: activity and/or Fragment.
Optionally, the apparatus further comprises: the judging module is used for opening the GPU and judging whether transitional drawing exists in the target interface or not after the background color attribute value of the nested control is deleted; and the secondary monitoring module is used for monitoring whether the nested control exists in the layout file of the business component of the target interface again under the condition that the transitional drawing exists in the target interface so as to delete the background color attribute value of the nested control.
Optionally, the determining module includes: the acquisition unit is used for acquiring the target interface color corresponding to the deleted background color attribute value of the nested control; and the determining unit is used for determining whether transition drawing exists in the area corresponding to the target interface color based on a preset mapping table, wherein the preset mapping table is used for representing the corresponding relation between the color and the transition drawing times corresponding to the color.
According to a third aspect of the present invention, there is provided an electronic device comprising a processor and a memory; the memory is used for storing computer instructions, and the processor is used for executing the computer instructions stored by the memory to realize the method for reducing transition rendering.
According to a fourth aspect of the present invention, there is provided a computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement a method of reducing transitional rendering as described above.
The invention has the following beneficial effects: by deleting the background color attribute value of the nested control in the layout file of the business component of the target interface, namely removing the useless background color attribute value in the layout file when the page layout is complex, the client system does not need to draw the background color corresponding to the partially removed background color attribute value, thereby improving the operating smoothness of the client and solving the problem of stagnation of the client.
Drawings
FIG. 1 is a flow chart of a method for reducing transitional rendering according to a first embodiment of the present invention;
FIG. 2 is a flow chart of a method for reducing transient rendering according to a second embodiment of the present invention;
FIG. 3 is a flow chart of a method for reducing transient rendering according to a third embodiment of the present invention;
FIG. 4 is a flow chart of a method for reducing transient rendering according to a fourth embodiment of the present invention;
FIG. 5 is a block flow diagram of a method for reducing transient rendering according to a fifth embodiment of the present invention;
FIG. 6 is a flow chart of a method for reducing transitional rendering according to a sixth embodiment of the present invention;
FIG. 7 is a block flow diagram of a method for reducing transitional rendering according to a seventh embodiment of the present invention;
FIG. 8 is a schematic illustration of colors of a target interface in a seventh embodiment of the present invention;
fig. 9 is a schematic structural diagram of an apparatus for reducing transient rendering according to an eighth embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
In order to facilitate understanding of the embodiments of the present invention, the following detailed description of the embodiments of the present invention is provided.
A first embodiment of the present invention provides a method for reducing transitional rendering, the method including: monitoring whether a nested control exists in a layout file of a business component of a target interface; and deleting the background color attribute value of the nested control under the condition that the nested control is monitored to be in the layout file of the business component.
Therefore, by deleting the background color attribute value of the nested control in the layout file of the business component of the target interface, namely removing the useless background color attribute value in the layout file when the page layout is complicated, the client system does not need to draw the background color corresponding to the partially removed background color attribute value, thereby improving the operation smoothness of the client and solving the problem of stagnation of the client.
Fig. 1 is a flow chart of a method for reducing transient rendering according to a first embodiment of the present invention. According to a first embodiment of the present invention, as shown in fig. 1, a method for reducing transition rendering is provided, the method including:
s11: monitoring whether a nested control exists in a layout file of a business component of a target interface;
in this embodiment, it is necessary to monitor whether a nested control exists in a layout file of a business component of the target interface.
S12: and deleting the background color attribute value of the nested control under the condition that the nested control is monitored to exist in the layout file of the business component.
Deleting the background color attribute value of the nested control under the condition that the nested control is monitored, namely: removal of useless background color attribute values in the layout file is achieved.
Therefore, by deleting the background color attribute value of the nested control in the layout file of the business component of the target interface, namely removing the useless background color attribute value in the layout file when the page layout is complicated, the client system does not need to draw the background color corresponding to the partially removed background color attribute value, thereby improving the operation smoothness of the client and solving the problem of stagnation of the client.
Fig. 2 is a flow chart of a method for reducing transient rendering according to a second embodiment of the present invention. According to a second embodiment of the present invention, as shown in fig. 2, there is provided a method for reducing transition rendering, the method including:
s21: monitoring whether a nested control exists in a layout file of an interface component Activity of a target interface;
in this embodiment, it is necessary to monitor whether a nested control exists in a layout file of an interface component Activity of the target interface.
S22: and deleting the background color attribute value of the nested control under the condition that the nested control is monitored to be in the layout file of the Activity.
Deleting the background color attribute value of the nested control under the condition that the nested control is monitored, namely: removal of useless background color attribute values in the layout file is achieved.
Specifically, when the service component of the target interface is Activity, monitoring whether a nested control exists in a layout file of the Activity; and under the condition that the nested control is monitored in the Activity layout file of the target interface, deleting the background color attribute value of the nested control of the Activity layout file.
Therefore, by deleting the background color attribute value of the nested control in the Activity layout file of the target interface, namely removing the useless background color attribute value in the layout file when the page layout is complicated, the client system does not need to draw the background color corresponding to the partially removed background color attribute value, thereby improving the operating smoothness of the client and solving the problem of stagnation of the client.
Fig. 3 is a flow chart of a method for reducing transient rendering according to a third embodiment of the present invention. According to a third embodiment of the present invention, as shown in fig. 3, there is provided a method for reducing transition rendering, the method including:
s31: monitoring whether a nested control exists in a layout file of the service Fragment of the target interface;
in this embodiment, whether a nested control exists in a layout file of Fragment of the target interface needs to be monitored.
S32: and deleting the background color attribute value of the nested control under the condition that the nested control is monitored to be in the layout file of the Fragment.
Deleting the background color attribute value of the nested control under the condition that the nested control is monitored, namely: removal of useless background color attribute values in the layout file is achieved.
Specifically, when the layout file of the service component of the target interface is the layout file of Fragment, monitoring whether the layout file of Fragment of the target interface has a nested control; and deleting the background color attribute value of the nested control of the Fragment layout file under the condition that the nested control is monitored to exist in the Fragment layout file of the target interface.
In this way, by deleting the background color attribute value of the nested control in the layout file of the Fragment of the target interface, that is, when the page layout is complicated, removing the useless background color attribute value in the layout file, the client system does not need to draw the background color corresponding to the partially removed background color attribute value, thereby improving the operating smoothness of the client and solving the problem of stagnation of the client.
Fig. 4 is a flow chart of a method for reducing transient rendering according to a fourth embodiment of the present invention. According to a fourth embodiment of the present invention, as shown in fig. 4, there is provided a method for reducing transition rendering, the method including:
s41: monitoring whether nested controls exist in the activeness and Fragment layout files of the target interface;
in this embodiment, whether a nested control exists in a layout file of a service Fragment of the target interface needs to be monitored.
S42: deleting the background color attribute value of the nested control under the condition that the nested control is monitored to exist in the layout files of the Activities and fragments, wherein the fragments are nested in the corresponding Activities.
Deleting the background color attribute value of the nested control under the condition that the nested control is monitored, namely: removal of useless background color attribute values in the layout file is achieved.
Specifically, when the layout file of the service component of the target interface is the layout file of Activity and Fragment, monitoring whether the layout file of Activity and Fragment of the target interface has a nested control; and deleting the background color attribute value of the nested control of the Activity and Fragment layout file under the condition that the nested control is monitored in the Activity and Fragment layout file of the target interface.
In this way, by deleting the background color attribute values of the nested controls in the Activity and Fragment layout file of the target interface, that is, removing useless background color attribute values in the layout file when the page layout is complicated, the client system does not need to draw the background color corresponding to the partially removed background color attribute values, thereby improving the operating smoothness of the client and solving the problem of client unsmooth.
Fig. 5 is a flow chart of a method for reducing transient rendering according to a fifth embodiment of the present invention. According to a fifth embodiment of the present invention, as shown in fig. 5, a method for reducing transition rendering is provided, the method comprising:
s51: monitoring whether a nested control exists in a layout file of a business component of a target interface, wherein the business component comprises: activity and/or Fragment;
in this embodiment, it is necessary to monitor whether a nested control exists in a layout file of a business component of the target interface.
S52: and deleting the background color attribute value of the nested control under the condition that the nested control is monitored to exist in the layout file of the business component.
Deleting the background color attribute value of the nested control under the condition that the nested control is monitored, namely: removal of useless background color attribute values in the layout file is achieved.
S53: opening a GPU (graphics processing Unit) of an image processor, and judging whether transitional drawing exists in the target interface; in the case where it is determined to exist, step S54 is executed; otherwise, go to step S55;
s54: and monitoring whether the layout file of the business component of the target interface has the nested control again so as to delete the background color attribute value of the nested control.
Specifically, under the condition that the target interface is determined to have the transitional drawing, whether the nested control exists in the layout file of the business component of the target interface is monitored again to delete the background color attribute value of the nested control, so that the layout file with the business component is prevented from being undetected in the last monitoring process.
Namely: after deleting the background color attribute value of the nested control in the layout file of the business component of the target interface, in order to avoid transitional drawing in the target page, in this embodiment, the target page needs to be continuously detected to delete the background color attribute value of the nested control. Specifically, opening a GPU (graphics processing Unit) of an image processor, and judging whether transitional drawing exists in the target interface; and monitoring whether a nested control exists in a layout file of a business component of the target interface or not under the condition that the target interface is determined to have transition drawing.
S55: no treatment is performed.
Therefore, by deleting the background color attribute value of the nested control in the layout file of the business component of the target interface, namely removing the useless background color attribute value in the layout file when the page layout is complex, the client system does not need to draw the background color corresponding to the partially removed background color attribute value, thereby improving the operation smoothness of the client and solving the problem of client jamming.
Fig. 6 is a flowchart illustrating a method for reducing transient rendering according to a sixth embodiment of the invention. According to a sixth embodiment of the invention, as shown in fig. 6, there is provided a method of reducing transition rendering, the method comprising:
s61: monitoring whether a nested control exists in a layout file of a business component of a target interface, wherein the business component comprises: activity and/or Fragment;
in this embodiment, it is necessary to monitor whether a nested control exists in a layout file of a business component of the target interface.
S62: and deleting the background color attribute value of the nested control under the condition that the nested control is monitored to exist in the layout file of the business component.
Deleting the background color attribute value of the nested control under the condition that the nested control is monitored, namely: removal of useless background color attribute values in the layout file is achieved.
S63: opening a GPU (graphics processing Unit) of an image processor, and acquiring a target interface color corresponding to the deleted background color attribute value of the nested control; determining whether transition drawing exists in a region corresponding to the target interface color based on a preset mapping table, wherein the preset mapping table is used for representing the corresponding relation between the color and the transition drawing times corresponding to the color; in the case where it is determined to exist, step S64 is executed; otherwise, go to step S65;
specifically, the client pre-stores a preset mapping table, and of course, the preset mapping table may also be obtained by the client in real time.
Acquiring the target interface color of the background color attribute value of the deleted nested control by opening a GPU; and determining whether transition drawing exists in the region corresponding to the target interface color or not based on a preset mapping table, wherein the preset mapping table is used for representing the corresponding relation between the target interface color and the transition drawing times corresponding to the target interface color.
S64: and monitoring whether the nested control exists in the layout file of the business component of the target interface again so as to delete the background color attribute value of the nested control.
Specifically, under the condition that the target interface is determined to have the transitional drawing, whether the nested control exists in the layout file of the business component of the target interface is monitored again to delete the background color attribute value of the nested control, so that the layout file with the business component is prevented from being undetected in the last monitoring process.
Namely: after deleting the background color attribute value of the nested control in the layout file of the business component of the target interface, in order to avoid the transitional drawing in the target page, in this embodiment, the target page needs to be continuously detected to delete the background color attribute value of the nested control. Specifically, opening a GPU (graphics processing Unit) of an image processor, and judging whether transitional drawing exists in the target interface; and monitoring whether a nested control exists in a layout file of a business component of the target interface or not under the condition that the target interface is determined to have transition drawing.
S65: no treatment is performed.
Therefore, by deleting the background color attribute value of the nested control in the layout file of the business component of the target interface, namely removing the useless background color attribute value in the layout file when the page layout is complicated, the client system does not need to draw the background color corresponding to the partially removed background color attribute value, thereby improving the operation smoothness of the client and solving the problem of stagnation of the client.
In order to better explain the implementation process of the method in this embodiment, the method in this embodiment is explained below with reference to a specific application example.
Fig. 7 is a flowchart illustrating a method for reducing transient rendering according to a seventh embodiment of the present invention. A seventh embodiment of the present invention provides a method for reducing transitional rendering, including:
s71: and checking the Activity corresponding layout file of the interface component, and removing unnecessary background colors.
Specifically, the control in the XML file corresponding to the Activity is checked, and if the nested control exists in the XML file, the background color attribute value of the nested control in the XML file corresponding to the Activity is deleted.
S72: checking the layout file corresponding to the Fragment of the service, and removing unnecessary background color.
Specifically, the control in the XML file corresponding to Fragment is checked, and if the nested control exists in the XML file, the background color attribute value of the nested control in the XML file corresponding to Fragment is deleted.
Wherein the Fragment is nested with the corresponding Activity.
S73: and opening the debugging GPU for transitional drawing, and checking the page effect.
Specifically, the debugging GPU is turned on to detect whether the rendering effect (Activity and/or Fragment) of the target interface on the terminal is drawn in a transitional manner, specifically, the colors rendered on the target interface are obtained, and each color corresponds to the number of times of drawing in a transitional manner.
FIG. 8 is a schematic diagram of colors of a target interface in a seventh embodiment of the present invention, as shown in FIG. 8: the color of the area marked by 4 × overdraw is red, which is characterized by 4 transition renderings and above, the color of the area marked by 3 × overdraw is pink, which is characterized by 3 transition renderings, the color of the area marked by 2 × overdraw is green, which is characterized by 2 transition renderings, the color of the area marked by 1 × overdraw is blue, which is characterized by 1 transition rendering, and the primary color indicates no transition renderings.
In this embodiment, if the color presented by the target interface is not the primary color, step S71 and/or step S72 are executed again until the process ends when the color presented by the target interface is the primary color.
Of course, the following settings may also be made: the process can be ended only if the color presented is not red.
In addition, the XML file is the layout file in the first to sixth embodiments.
The mobile phone developer can open and display a transition drawing area in options, and the following graph is that when transition drawing occurs, color values correspond to the progression of transition drawing layers:
fig. 9 is a schematic structural diagram of an apparatus for reducing transient rendering according to an eighth embodiment of the present invention. According to an eighth embodiment of the present invention, as shown in fig. 9, there is provided an apparatus for reducing transition rendering, the apparatus comprising:
the monitoring module 110 is configured to monitor whether a nested control exists in a layout file of a business component of a target interface; a deleting module 120, configured to delete the background color attribute value of the nested control when it is monitored that the nested control is present in the layout file of the service component.
Optionally, the service component includes: activity and/or Fragment.
Optionally, the apparatus further comprises: the judging module is used for opening the GPU and judging whether transitional drawing exists in the target interface or not after the background color attribute value of the nested control is deleted; and the secondary monitoring module is used for monitoring whether the nested control exists in the layout file of the business component of the target interface again under the condition that the transitional drawing exists in the target interface so as to delete the background color attribute value of the nested control.
Optionally, the determining module includes: the acquisition unit is used for acquiring the target interface color corresponding to the deleted background color attribute value of the nested control; and the determining unit is used for determining whether transition drawing exists in the area corresponding to the target interface color based on a preset mapping table, wherein the preset mapping table is used for representing the corresponding relation between the color and the transition drawing times corresponding to the color.
A ninth embodiment of the present invention provides an electronic device, comprising a processor and a memory; the memory is used for storing computer instructions, and the processor is used for executing the computer instructions stored by the memory to realize the method for reducing transition rendering.
The terms and implementation principles related to the electronic device in the ninth embodiment of the present invention may specifically refer to a method for reducing transitional rendering in the first to seventh embodiments of the present invention, and are not described herein again.
A tenth embodiment of the present invention provides a computer-readable storage medium storing one or more modules executable by one or more processors to implement a method of reducing transitional rendering as described above.
The terms and implementation principles related to a computer-readable storage medium in the tenth embodiment of the present invention may specifically refer to a method for reducing transitional rendering in the first to seventh embodiments of the present invention, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (8)

1. A method of reducing transient rendering, the method comprising:
monitoring whether a nested control exists in a layout file of a business component of a target interface;
deleting the background color attribute value of the nested control under the condition that the nested control is monitored to be in the layout file of the business component;
opening a GPU (graphics processing Unit) of an image processor, and judging whether transitional drawing exists in the target interface;
and under the condition that the target interface is determined to have transitional drawing, monitoring whether a nested control exists in the layout file of the business component of the target interface again so as to delete the background color attribute value of the nested control.
2. The method of claim 1, wherein the business component comprises: activity and/or Fragment of the service.
3. The method of claim 1, wherein the determining whether the target interface has a transitional rendering comprises:
acquiring a target interface color corresponding to the deleted background color attribute value of the nested control;
and determining whether transition drawing exists in the region corresponding to the target interface color based on a preset mapping table, wherein the preset mapping table is used for representing the corresponding relation between the color and the transition drawing times corresponding to the color.
4. An apparatus for reducing transition rendering, the apparatus comprising:
the monitoring module is used for monitoring whether the layout file of the business component of the target interface has the nested control;
the deleting module is used for deleting the background color attribute value of the nested control under the condition that the nested control is monitored to exist in the layout file of the business component;
the judging module is used for opening the GPU and judging whether transitional drawing exists in the target interface or not after the background color attribute value of the nested control is deleted;
and the secondary monitoring module is used for monitoring whether the nested control exists in the layout file of the business component of the target interface again under the condition that the transitional drawing exists in the target interface so as to delete the background color attribute value of the nested control.
5. The apparatus of claim 4, wherein the business component comprises: activity and/or Fragment.
6. The apparatus of claim 4, wherein the determining module comprises:
the acquisition unit is used for acquiring the target interface color corresponding to the deleted background color attribute value of the nested control;
and the determining unit is used for determining whether transition drawing exists in the area corresponding to the target interface color based on a preset mapping table, wherein the preset mapping table is used for representing the corresponding relation between the color and the transition drawing times corresponding to the color.
7. A computer device comprising a processor and a memory;
the memory is configured to store computer instructions, and the processor is configured to execute the computer instructions stored by the memory to implement a method of reducing transient rendering as claimed in any of claims 1 to 3.
8. A computer readable storage medium, storing one or more programs, the one or more programs being executable by one or more processors for performing the method for reducing transitional rendering of any of claims 1-3.
CN201810489322.5A 2018-05-21 2018-05-21 Method and device for reducing transitional drawing, electronic equipment and storage medium Active CN108829392B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810489322.5A CN108829392B (en) 2018-05-21 2018-05-21 Method and device for reducing transitional drawing, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810489322.5A CN108829392B (en) 2018-05-21 2018-05-21 Method and device for reducing transitional drawing, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108829392A CN108829392A (en) 2018-11-16
CN108829392B true CN108829392B (en) 2022-11-25

Family

ID=64147170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810489322.5A Active CN108829392B (en) 2018-05-21 2018-05-21 Method and device for reducing transitional drawing, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108829392B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078348B (en) * 2019-12-25 2023-06-23 广州市百果园信息技术有限公司 Interface management method, device, equipment and storage medium
CN111538657B (en) * 2020-04-17 2023-05-12 抖音视界有限公司 Page overdrawing detection method and device, electronic equipment and readable medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914314B (en) * 2012-12-31 2017-05-17 北京新媒传信科技有限公司 Method and device for adjusting brightness of display screen
US20170185567A1 (en) * 2015-12-28 2017-06-29 Le Holdings (Beijing) Co., Ltd. User interface control layout method and electronic device
US20170221242A1 (en) * 2016-02-01 2017-08-03 Facebook, Inc. Automatic overdraw reduction before rendering
CN106886418B (en) * 2017-03-27 2020-12-25 湛江市霞山区新软佳科技有限公司 HTML interface control label
CN107450904A (en) * 2017-06-07 2017-12-08 北京五八信息技术有限公司 The method for drafting and device of title bar

Also Published As

Publication number Publication date
CN108829392A (en) 2018-11-16

Similar Documents

Publication Publication Date Title
JP6740373B2 (en) Page component dynamic layout
US10409899B2 (en) Method, device and mobile terminal for processing webpage in night mode
CN105205144B (en) Method and system for data diagnosis optimization
US9459863B2 (en) System for assessing an application for tablet compatibility and quality
CN108197024B (en) Embedded browser debugging method, debugging terminal and computer readable storage medium
CN108829392B (en) Method and device for reducing transitional drawing, electronic equipment and storage medium
CN107291519A (en) A kind of cross-platform image cache implementation method of webview based on mobile terminal
CN110297637B (en) Resource file hot-reloading development tool and method applicable to full-platform client software
CN109582317B (en) Method and apparatus for debugging hosted applications
CN109783309B (en) Abnormality monitoring method and device for webpage loading
CN106296622A (en) The pattern splicing method of a kind of autoplacement and device
CN108446300A (en) The scan method and device of data information
CN114238134A (en) Test result display method, device, equipment and storage medium
KR101689984B1 (en) Programmable controller, programmable controller system, and execute error information creation method
CN117271345A (en) Method, storage medium and apparatus for generating database SQL test cases
KR20160032653A (en) Method and apparatus for ranking candiate character and method and device for inputting character
KR101092019B1 (en) Web browsing system using the mobile web browser and method thereof and mobile terminal in the used the same
KR20150025287A (en) Apparatus and method for managing application storage area of mobile terminal
CN106126415A (en) A kind of application adjustment method in Android system and application debugging apparatus
JP2008033913A (en) Program development support apparatus for plc
CN112286785B (en) Abnormality detection method and device for user interface
CN111399836B (en) Method and device for modifying page attribute
CN112395028B (en) Page checking method, device, terminal and storage medium
CN109544240B (en) Television strategy conflict processing method, system and storage medium
JP2010191483A (en) Operation support device, operation support method and program

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