CN104503564A - Control method and device for picture refreshing of application program - Google Patents

Control method and device for picture refreshing of application program Download PDF

Info

Publication number
CN104503564A
CN104503564A CN201410855712.1A CN201410855712A CN104503564A CN 104503564 A CN104503564 A CN 104503564A CN 201410855712 A CN201410855712 A CN 201410855712A CN 104503564 A CN104503564 A CN 104503564A
Authority
CN
China
Prior art keywords
drafting
application program
picture
interface
preset
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
CN201410855712.1A
Other languages
Chinese (zh)
Other versions
CN104503564B (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.)
Zhongke Chuang Da (Chongqing) Automotive Technology Co., Ltd.
Original Assignee
ThunderSoft 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 ThunderSoft Co Ltd filed Critical ThunderSoft Co Ltd
Priority to CN201410855712.1A priority Critical patent/CN104503564B/en
Publication of CN104503564A publication Critical patent/CN104503564A/en
Application granted granted Critical
Publication of CN104503564B publication Critical patent/CN104503564B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3265Power saving in display device

Landscapes

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

Abstract

The invention provides a control method for picture refreshing of an application program. The method comprises the picture drawing control process and the picture display control process; when in picture drawing, a drawing interface is triggered to be called for drawing a picture only after that a received drawing instruction meets the preset drawing condition; in case of failing to meet the preset drawing condition, the picture can be drawn only after receiving the next drawing instruction from the application program, and thus the picture drawing rate is reduced; in addition, a display interface is triggered to be called for displaying the drawn picture after a received display instruction meets the preset display condition; in case of failing to meet the preset display condition, the drawn picture can be displayed only after receiving the next display instruction from the application program, and thus the picture display rate is reduced. According to the method, the times of drawing and displaying of the application program picture per unit time can be respectively decreased; the electricity quantity of a battery can be saved, and the power consumption of a device can be decreased; in addition, the invention also provides a control device for the picture refreshing of the application program.

Description

A kind of control method of application program picture refreshing and device
Technical field
The application relates to picture display technique field, especially a kind of control method of application program picture refreshing and device.
Background technology
Now, the popularity of intelligent terminal as mobile phone etc. is more and more higher, and it has been widely used in daily life and work.About intelligent terminal, an importance of people's common concern is the service time how extending battery, briefly, i.e. and how power saving.
But, intelligent terminal is provided with multiple application program usually, these application programs become the main power consumption aspect outside as the basic function such as to make a phone call, send short messages, and particularly play, browse the application program that webpage, navigation etc. use OpenGLES/EGL technology to drawing picture.Therefore, need to reduce the electricity that this type of application program expends, thus reach economize on electricity object.
Summary of the invention
In view of this, this application provides a kind of control method and device of application program picture refreshing, in order to realize economize on electricity object.For realizing described object, technical scheme provided by the invention is as follows:
A control method for application program picture refreshing, comprising:
When receiving the drafting instruction that application program sends to pattern drafting interface, judge whether described drafting instruction meets and preset drafting condition, drafting condition is preset if meet, trigger pattern drafting interface described in described application call, to obtain the picture drawn, and return when receiving the drafting instruction that application program sends to pattern drafting interface, judge whether described drafting instruction meets and preset drafting condition, if do not meet and preset drafting condition, return when receiving the drafting instruction that application program sends to pattern drafting interface, judge whether described drafting instruction meets and preset drafting condition,
When receiving the idsplay order that described application program sends to picture display interface, judge whether described idsplay order meets and preset display condition, display condition is preset if meet, trigger picture display interface described in described application call, to show the picture of described drafting, and return when receiving the idsplay order that described application program sends to picture display interface, judge whether described idsplay order meets and preset display condition, if do not meet and preset display condition, return when receiving the idsplay order that described application program sends to picture display interface, judge whether described idsplay order meets and preset display condition,
Wherein, described application program sends drafting instruction according to default refresh rate to described pattern drafting interface, and sends idsplay order according to described default refresh rate to described picture display interface.
The control method of above-mentioned application program picture refreshing, preferably, after pattern drafting interface described in the described application call of described triggering, and return when receiving the drafting instruction that application program sends to pattern drafting interface, before judging whether described drafting instruction meets default drafting condition, also comprise: counting mark is preset in initialization first;
Correspondingly, if not meeting default drafting condition, return when receiving the drafting instruction that application program sends to pattern drafting interface, before judging whether described drafting instruction meets default drafting condition, also comprise: upgrade the described first default counting and identify;
Correspondingly, describedly judge that whether described drafting instruction meets and preset drafting condition and comprise:
Judge whether the described first default counting mark identifies identical with the first predetermined number.
The control method of above-mentioned application program picture refreshing, preferably, after picture display interface described in the described application call of described triggering, and return when receiving the idsplay order that described application program sends to picture display interface, before judging whether described idsplay order meets default display condition, also comprise: counting mark is preset in initialization second;
Correspondingly, if do not meeting default display condition, returning when receiving the idsplay order that described application program sends to picture display interface, before judging whether described idsplay order meets default display condition, also comprising: upgrade described second and preset counting mark;
Correspondingly, describedly judge that whether described idsplay order meets and preset display condition and comprise:
Judge whether the described second default counting mark identifies identical with the second predetermined number.
The control method of above-mentioned application program picture refreshing, preferably, described initialization first is preset counting mark and is comprised: preset counting mark by described first and be initialized as 0;
Correspondingly, the described default counting mark of described renewal comprises:
Preset counting mark by described first and add 1.
The control method of above-mentioned application program picture refreshing, preferably, described pattern drafting interface is OpenGLES interface, and described picture display interface is EGL interface.
Present invention also provides a kind of control method of application program picture refreshing, comprising:
When receiving the drafting instruction that application program sends to pattern drafting interface, monitor vertical synchronizing signal, when listening to described vertical synchronizing signal, judge whether described vertical synchronizing signal meets and preset drafting condition, trigger pattern drafting interface described in described application call, to obtain the picture drawn, and return when receiving the drafting instruction that application program sends to pattern drafting interface, monitor vertical synchronizing signal, if do not meet and preset drafting condition, return when receiving the drafting instruction that application program sends to pattern drafting interface, monitor vertical synchronizing signal,
When receiving the idsplay order that described application program sends to picture display interface, monitor vertical synchronizing signal, when listening to described vertical synchronizing signal, judge whether described vertical synchronizing signal meets and preset display condition, display condition is preset if meet, trigger picture display interface described in described application call, to show the picture of described drafting, and return when receiving the idsplay order that described application program sends to picture display interface, monitor vertical synchronizing signal, if do not meet and preset drafting condition, return when receiving the idsplay order that described application program sends to picture display interface, monitor vertical synchronizing signal,
Wherein, described application program sends drafting instruction according to default refresh rate to described pattern drafting interface, and sends idsplay order according to described default refresh rate to described picture display interface.
Present invention also provides a kind of control device of application program picture refreshing, comprising:
First pattern drafting control module, for when receiving the drafting instruction that application program sends to pattern drafting interface, judge whether described drafting instruction meets and preset drafting condition, drafting condition is preset if meet, trigger pattern drafting interface described in described application call, to obtain the picture drawn, and return when receiving the drafting instruction that application program sends to pattern drafting interface, judge whether described drafting instruction meets and preset drafting condition, if do not meet and preset drafting condition, return when receiving the drafting instruction that application program sends to pattern drafting interface, judge whether described drafting instruction meets and preset drafting condition,
First picture display control module, for when receiving the idsplay order that described application program sends to picture display interface, judge whether described idsplay order meets and preset display condition, display condition is preset if meet, trigger picture display interface described in described application call, to show the picture of described drafting, and return when receiving the idsplay order that described application program sends to picture display interface, judge whether described idsplay order meets and preset display condition, if do not meet and preset display condition, return when receiving the idsplay order that described application program sends to picture display interface, judge whether described idsplay order meets and preset display condition,
Wherein, described application program sends drafting instruction according to default refresh rate to described pattern drafting interface, and sends idsplay order according to described default refresh rate to described picture display interface.
Preferably, the control device of above-mentioned application program picture refreshing, also comprises:
First count initialized module, for after pattern drafting interface described in the described application call of described triggering, and return when receiving the drafting instruction that application program sends to pattern drafting interface, before judging whether described drafting instruction meets default drafting condition, counting mark is preset in initialization first;
First upgrades counting module, if for not meeting default drafting condition, returning when receiving the drafting instruction that application program sends to pattern drafting interface, before judging whether described drafting instruction meets default drafting condition, upgrading described first and presetting counting mark;
Correspondingly, described for judging whether described drafting instruction meets the first pattern drafting control module presetting drafting condition, comprising:
Described first pattern drafting control module, for judging whether the described first default counting mark identifies identical with the first predetermined number.
Preferably, the control device of above-mentioned application program picture refreshing, also comprises:
Second count initialized module, for after picture display interface described in the described application call of described triggering, and return when receiving the idsplay order that described application program sends to picture display interface, before judging whether described idsplay order meets default display condition, counting mark is preset in initialization second;
Second upgrades counting module, if for not meeting default display condition, returning when receiving the idsplay order that described application program sends to picture display interface, before judging whether described idsplay order meets default display condition, upgrading described second and presetting counting mark;
Correspondingly, described for judging whether described idsplay order meets the first picture display control module presetting display condition and comprise:
Described first picture display control module, for judging whether the described second default counting mark identifies identical with the second predetermined number.
Present invention also provides a kind of control device of application program picture refreshing, comprising:
Second pattern drafting control module, for when receiving the drafting instruction that application program sends to pattern drafting interface, monitor vertical synchronizing signal, when listening to described vertical synchronizing signal, judge whether described vertical synchronizing signal meets and preset drafting condition, trigger pattern drafting interface described in described application call, to obtain the picture drawn, and return when receiving the drafting instruction that application program sends to pattern drafting interface, monitor vertical synchronizing signal, if do not meet and preset drafting condition, return when receiving the drafting instruction that application program sends to pattern drafting interface, monitor vertical synchronizing signal,
Second picture display control module, for when receiving the idsplay order that described application program sends to picture display interface, monitor vertical synchronizing signal, when listening to described vertical synchronizing signal, judge whether described vertical synchronizing signal meets and preset display condition, display condition is preset if meet, trigger picture display interface described in described application call, to show the picture of described drafting, and return when receiving the idsplay order that described application program sends to picture display interface, monitor vertical synchronizing signal, if do not meet and preset drafting condition, return when receiving the idsplay order that described application program sends to picture display interface, monitor vertical synchronizing signal,
Wherein, described application program sends drafting instruction according to default refresh rate to described pattern drafting interface, and sends idsplay order according to described default refresh rate to described picture display interface.
As known from the above, beneficial effect of the present invention is:
The control method of application program picture refreshing provided by the invention, comprise the control procedure of pattern drafting and the control procedure of picture display, wherein, when drawing picture, when the drafting instruction received meets default drafting condition, just trigger to draw interface call draw picture, next drafting instruction that drafting condition waits for application program transmission is preset when not meeting, thus reduce the speed generating picture, in addition, when the idsplay order received meets default display condition, just trigger and the picture showing drafting is called to display interface, next idsplay order that display condition waits for application program transmission is preset when not meeting, thus reduce the speed of display frame.Visible, the present invention decreases drafting and the display number of times of application program picture in the unit interval respectively, saves battery electric quantity, reduces equipment power dissipation.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
The process flow diagram of the control method of the application program picture refreshing that Fig. 1 provides for the embodiment of the present invention;
The control flow chart of the application program pattern drafting that Fig. 2 A provides for the embodiment of the present invention;
The control flow chart of the application program picture display that Fig. 2 B provides for the embodiment of the present invention;
The control flow chart of the application program pattern drafting that Fig. 3 A provides for another embodiment of the present invention;
The control flow chart of the application program picture display that Fig. 3 B provides for another embodiment of the present invention;
The structural representation of the control device of the application program picture refreshing that Fig. 4 provides for the embodiment of the present invention;
The part-structure schematic diagram of the control device of the application program picture refreshing that Fig. 5 A provides for the embodiment of the present invention;
The part-structure schematic diagram of the control device of the application program picture refreshing that Fig. 5 B provides for the embodiment of the present invention;
The structural representation of the control device of the application program picture refreshing that Fig. 6 provides for another embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Be provided with application program in intelligent terminal, application program, in operational process, needs the electric energy using battery to provide.In order to reduce application program expending battery electric quantity, the functional module that in application program, some is of little use can be closed by force, even directly can be closed when application program does not use for a long time.But, poor with the experience that upper type brings to user, for this reason, the invention provides the control method of application program picture refreshing, when ensureing that application program is normally run, by improvement application program picture refreshing process, realizing object of economizing on electricity.
It should be noted that, application program, in operational process, can generate picture according to certain refresh rate, and is presented on the display screen of intelligent terminal according to this refresh rate by the program picture of generation.Wherein, picture refers to the program picture that application program needs to be shown to user, and picture is drawn out one by one, also shows one by one during display, when the speed of display frame is after to a certain degree, user just can watch smooth picture on a display screen.The speed of display frame can represent with refresh rate, and the refresh rate of some application program is higher, like this, will draw comparatively continually and display frame, thus the electricity used is just more.But inventor is found by research, for user, suitably reduces refresh rate, its viewing experience indifference.Therefore, invention thought of the present invention suitably reduces the drafting of application program picture and the speed of display, reaches and reduce expending of electricity.
See Fig. 1, it illustrates the flow process of the control method of the application program picture refreshing that the embodiment of the present invention provides, specifically comprise two aspects: be i.e. pattern drafting control procedure and picture display and control process.
Wherein, pattern drafting control procedure comprises the following steps:
Step S101: when receiving the drafting instruction that application program sends to pattern drafting interface, judges whether described drafting instruction meets and presets drafting condition, preset drafting condition, perform step S102 if meet; If do not meet and preset drafting condition, return step S101.This control method is used for the refresh rate of controlling application program picture, it should be noted that, application program is in operational process, when needing to show a frame picture on a display screen, first can send to pattern drafting interface and draw instruction, it should be noted that, application program sends the frequency of drawing instruction and sends according to refresh rate, namely whenever needs refreshing one frame picture, then send to pattern drafting interface and draw instruction.
The present embodiment can intercept and capture drafting instruction, specifically, the drafting instruction that application program sends can not directly call drafting interface, but be first sent to the execution module of the present embodiment, therefore, execution module can receive the drafting instruction that application program sends, when receiving drafting instruction, judge whether this drafting instruction meets default drafting condition immediately, if meet, then perform calling of follow-up drafting interface.If do not meet, then need to return step S101, the next one that wait-receiving mode application program sends again draws instruction.
As can be seen from this step, preset drafting condition and be used for controlling the need of drafting present frame picture, if required, draw, otherwise, again monitor the drafting instruction of next frame, namely abandon the drafting of this frame picture, alternatively, skip the drafting of this frame picture.
It should be noted that, what the present embodiment adopted is the drafting instruction receiving application program transmission passively, namely draws instruction whenever receiving one, then performs a step S101, be not the drafting instruction that real-time listening application program sends, which save and monitor the electricity that causes and expend.
Step S102: trigger pattern drafting interface described in described application call, to obtain the picture of drafting, and returns step S101.
Wherein, the process triggering application call pattern drafting interface can be send order to application program, after application program receives this order, namely calls pattern drafting interface; Can also be arrange zone bit, application program can monitor this zone bit, when this zone bit is certain preset value, then can call pattern drafting interface.Call pattern drafting interface to generate the current program picture needing display, the picture of generation is waited for and being shown.
Wherein: picture display and control process comprises the following steps:
Step S201: when receiving the idsplay order that described application program sends to picture display interface, judges whether described idsplay order meets and presets display condition, preset display condition, perform step S202 if meet; If do not meet and preset drafting condition, return step S201.
Step S202: trigger picture display interface described in described application call, to show the picture of described drafting, and returns step S201.
Application program after sending pattern drafting instruction to application program, can send idsplay order to picture display interface, it should be noted that, the frequency that application program sends idsplay order is identical with drafting instruction, namely all sends according to refresh rate.Monitor this picture display interface, when listening to idsplay order, with above-mentioned pattern drafting method in like manner, judge whether this idsplay order meets display condition, satisfied, the picture that display is drawn, otherwise, again monitor the next idsplay order that application program sends.Visible, the idsplay order of a part can be left in the basket, although namely have idsplay order, does not go to call display interface and goes display frame, can avoid calling the electricity that display interface causes and expend.
It should be noted that, above-mentioned pattern drafting control procedure and picture display and control process are independently, but both are non-fully onrelevant also, the picture that the former draws can be presented on screen by the latter, more specifically, often draws a two field picture, then can show this two field picture of drafting, both avoided drawing unnecessary picture and caused the wasting of resources, and avoided again drawing and cause picture imperfect not in time, affect Consumer's Experience.Can reach the setting based on application program self of such effect, namely application program self can send respectively successively and draw instruction and idsplay order, and transmission frequency identical (sending according to refresh rate).Therefore, above-mentioned default drafting condition needs identical with default display condition, and like this, whenever drafting instruction is eligible, when drawing a two field picture, now, idsplay order also can be eligible, thus show this two field picture of drafting immediately.It should be noted that, drafting condition and display condition need to control at zone of reasonableness, make the refresh rate of picture in certain scope, as the numerical value within the scope of 20 frames per second to 30 frames per second, to ensure the viewing experience of user.
From above technical scheme, the control method of the application program picture refreshing that the present embodiment provides, comprise the control procedure of pattern drafting and the control procedure of picture display, reduce respectively and generate the speed of picture and the speed of display frame, in other words, decrease drafting and the display number of times of application program picture in the unit interval respectively, save battery electric quantity, reduce equipment power dissipation.
It should be noted that, above-mentioned application program can be various game application, browser etc., but be not limited to this, can be the application program that other various needs frequently use OpenGLES/EGL technology to drawing picture, namely refresh rate exceedes the application program of predetermined threshold value.
It should be noted that, each in above-described embodiment returns all non-actual action performed, just in order to show the arrival again waiting for next instruction.And, in above-described embodiment, can each return step time, return cue to application program, send successfully with prompting application program instruction, particularly, the cue returned in pattern drafting control procedure, prompting be application program draw instruction send successfully, the cue returned in picture display and control process, prompting be that application program idsplay order sends successfully.
The mode utilizing drafting condition to control drawing process can be the following scheme provided.See shown in Fig. 2 A, it illustrates the control flow of pattern drafting process, specifically comprise:
Step S301: when receiving the drafting instruction that application program sends to pattern drafting interface, judges whether the first default counting mark identifies identical with the first predetermined number, if so, performs step S302; Otherwise, perform step S304.
As can be seen from following step S303 and step S304, default counting is identified at continuous change, namely whenever drafting one subframe, then reinitializes counting mark, when skipping once drafting instruction, then counting mark is upgraded.So, judge whether counting mark identifies identical with predetermined number, if identical, then represent that needs call and draw interface to draw picture.It should be noted that, this predetermined number mark is corresponding with the refresh rate that will change.As needed that the refresh rate of 60 frames per second original for application program is reduced to 20 frames, and be all initialized as 0 during each initialization, then this predetermined number is designated 2, and namely every 3 drafting instructions are just called and once drawn interface generation picture.
Step S302: trigger pattern drafting interface described in described application call.
Step S303: counting mark is preset in initialization first, and returns step S301.
Wherein, be previously provided with counting mark, be equivalent to a counter.This count flag has initial value, as being 0.When application call pattern drafting interface generates a frame picture, need to reinitialize this count flag, as being re-set as 0.
Step S304: upgrade described first and preset counting mark, and return execution step S301.
Wherein, upgrade first and preset counting mark, draw instruction with this time that records application program sends.Alternatively, update mode is: preset count flag by first and add 1.
It should be noted that, other steps in Fig. 2 A see above-mentioned explanation, can not repeat herein.In addition, step S303 can perform with the process returning step S301 simultaneously, or the former performs after the latter.In like manner, step S304 can perform with the process returning step S301 simultaneously, or the former performs after the latter.
The mode utilizing display condition to control procedure for displaying can be the following scheme provided.See shown in Fig. 2 B, it illustrates the control flow of picture procedure for displaying, specifically comprise:
Step S401: when receiving the idsplay order that described application program sends to picture display interface, judges.Whether second presets counting mark identifies identical with the second predetermined number, if so, performs step S402; Otherwise, perform step S404.
Step S402: trigger picture display interface described in described application call.
Step S403: counting mark is preset in initialization second, and returns step S401.
Step S404: upgrade described second and preset counting mark, and return step S401.
Wherein, the control thought of procedure for displaying is identical with the control thought of drawing process, and therefore, the step in Fig. 2 B illustrates and see the above-mentioned explanation about Fig. 2 A, can not repeat.
Need to illustrate, above-mentioned pattern drafting interface is specially OpenGLES interface, and picture display interface is specially EGL interface.The interface for drawing picture that the former provides for Android system, the latter is the interface for display frame.Can think, the former draws picture on drawing board, and the picture on this drawing board is presented on screen by the latter.
It should be noted that, the invention thought of each embodiment above-mentioned is to skip drafting request and the display request of some frames, thus reduces the refresh rate of picture.Based on same invention thought, further embodiment of this invention provides the control method of application program picture refreshing, describes in detail below to the method.The method comprises pattern drafting control procedure and picture display and control process equally.
As shown in Figure 3A, pattern drafting control procedure comprises the following steps:
Step S501: when receiving the drafting instruction that application program sends to pattern drafting interface, monitors vertical synchronizing signal, when listening to described vertical synchronizing signal, performs step S502.
Step S502: judge whether described vertical synchronizing signal meets and preset drafting condition, preset drafting condition if meet, perform step S503, preset drafting condition if do not meet, return step S501.
Step S503: trigger pattern drafting interface described in described application call, and return step S501.
As shown in Figure 3 B, picture display and control process comprises the following steps:
Step S601: when receiving the idsplay order that described application program sends to picture display interface, monitors vertical synchronizing signal, when listening to described vertical synchronizing signal, performs step S602.
Step S602: judge whether described vertical synchronizing signal meets and preset display condition, preset display condition if meet, perform step S603, preset display condition if do not meet, return step S601.
Step S603: trigger picture display interface described in described application call, and return step S601.
It should be noted that, vertical synchronizing signal is bottom hardware CMOS macro cell or the simulation generation also outwards transmission of smart machine, the picture drawn in order to synchronous modules.Particularly, each drafting module is all after listening to this signal, just starts to draw picture.That is, this vertical synchronizing signal is synchronizing signal, is specially Vsync (Vertical synchronization, vertical sync pulse) signal.
In addition, judge whether in the present embodiment to meet default drafting condition and judge whether that meeting the method presetting display condition with reference to above, can not repeat herein.
Due to when the picture of display application program, may the content of not only display application program picture, also need a part of system interface that display system is drawn, as frame etc., that is, need the picture splicing picture of application program drafting and other modules drawn to be complete picture, be presented on screen.Use this synchronizing signal as the foundation judging whether to draw picture and generate picture as judgement in the embodiment of the present invention, object makes the picture synchronization that in the picture of drafting and equipment, other modules are drawn.
Visible, utilize vertical synchronizing signal to the control of refresh rate, can realize reducing on the basis of refresh rate, simultaneously synchronous with the drawing process of other modules, avoid film flicker, the picture of display be more stable, improves Consumer's Experience.
Below the control device of the application program picture refreshing that the embodiment of the present invention provides is introduced, it should be noted that, explanation about the control device of application program picture refreshing can refer to the control method of application program picture refreshing provided above, does not repeat below.
See Fig. 4, it illustrates the structure of the control device of the application program picture refreshing that the embodiment of the present invention provides, comprise the first pattern drafting control module 100 and the first picture display control module 200.Wherein:
First pattern drafting control module 100, for when receiving the drafting instruction that application program sends to pattern drafting interface, judge whether described drafting instruction meets and preset drafting condition, drafting condition is preset if meet, trigger pattern drafting interface described in described application call, to obtain the picture drawn, and return when receiving the drafting instruction that application program sends to pattern drafting interface, judge whether described drafting instruction meets and preset drafting condition, if do not meet and preset drafting condition, return when receiving the drafting instruction that application program sends to pattern drafting interface, judge whether described drafting instruction meets and preset drafting condition,
First picture display control module 200, for when receiving the idsplay order that described application program sends to picture display interface, judge whether described idsplay order meets and preset display condition, display condition is preset if meet, trigger picture display interface described in described application call, to show the picture of described drafting, and return when receiving the idsplay order that described application program sends to picture display interface, judge whether described idsplay order meets and preset display condition, if do not meet and preset display condition, return when receiving the idsplay order that described application program sends to picture display interface, judge whether described idsplay order meets and preset display condition.
Wherein, described application program sends drafting instruction according to default refresh rate to described pattern drafting interface, and sends idsplay order according to described default refresh rate to described picture display interface.
From above technical scheme, the control device of the application program picture refreshing that the present embodiment provides, comprise the control module 100 of pattern drafting and the control module 200 of picture display, reduce respectively and generate the speed of picture and the speed of display frame, in other words, decrease drafting and the display number of times of application program picture in the unit interval respectively, save battery electric quantity, reduce equipment power dissipation.
As shown in Figure 5A, in order to specific implementation is to the judgement whether meeting drafting condition, control device also comprises:
First count initialized module 101, for after pattern drafting interface described in the described application call of described triggering, and return when receiving the drafting instruction that application program sends to pattern drafting interface, before judging whether described drafting instruction meets default drafting condition, counting mark is preset in initialization first;
First upgrades counting module 102, if for not meeting default drafting condition, returning when receiving the drafting instruction that application program sends to pattern drafting interface, before judging whether described drafting instruction meets default drafting condition, upgrading described first and presetting counting mark;
Correspondingly, described for judging whether described drafting instruction meets the first pattern drafting control module 100 presetting drafting condition, comprising:
Described first pattern drafting control module 100, for judging whether the described first default counting mark identifies identical with the first predetermined number.
As shown in Figure 5 B, in order to specific implementation is to the judgement whether meeting display condition, control device also comprises:
Second count initialized module 201, for after picture display interface described in the described application call of described triggering, and return when receiving the idsplay order that described application program sends to picture display interface, before judging whether described idsplay order meets default display condition, counting mark is preset in initialization second;
Second upgrades counting module 202, if for not meeting default display condition, returning when receiving the idsplay order that described application program sends to picture display interface, before judging whether described idsplay order meets default display condition, upgrading described second and presetting counting mark;
Correspondingly, described for judging whether described idsplay order meets the first picture display control module 200 presetting display condition and comprise:
Described first picture display control module 200, for judging whether the described second default counting mark identifies identical with the second predetermined number.
In addition, as shown in Figure 6, further embodiment of this invention provides the control device of application program picture refreshing, comprising: the second pattern drafting control module 300 and the second picture display control module 400, wherein:
Second pattern drafting control module 300, for when receiving the drafting instruction that application program sends to pattern drafting interface, monitor vertical synchronizing signal, when listening to described vertical synchronizing signal, judge whether described vertical synchronizing signal meets and preset drafting condition, trigger pattern drafting interface described in described application call, to obtain the picture drawn, and return when receiving the drafting instruction that application program sends to pattern drafting interface, monitor vertical synchronizing signal, if do not meet and preset drafting condition, return when receiving the drafting instruction that application program sends to pattern drafting interface, monitor vertical synchronizing signal,
Second picture display control module 400, for when receiving the idsplay order that described application program sends to picture display interface, monitor vertical synchronizing signal, when listening to described vertical synchronizing signal, judge whether described vertical synchronizing signal meets and preset display condition, display condition is preset if meet, trigger picture display interface described in described application call, to show the picture of described drafting, and return when receiving the idsplay order that described application program sends to picture display interface, monitor vertical synchronizing signal, if do not meet and preset drafting condition, return when receiving the idsplay order that described application program sends to picture display interface, monitor vertical synchronizing signal.
Wherein, described application program sends drafting instruction according to default refresh rate to described pattern drafting interface, and sends idsplay order according to described default refresh rate to described picture display interface.
It should be noted that, each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.
Also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising above-mentioned key element and also there is other identical element.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (10)

1. a control method for application program picture refreshing, is characterized in that, comprising:
When receiving the drafting instruction that application program sends to pattern drafting interface, judge whether described drafting instruction meets and preset drafting condition, drafting condition is preset if meet, trigger pattern drafting interface described in described application call, to obtain the picture drawn, and return when receiving the drafting instruction that application program sends to pattern drafting interface, judge whether described drafting instruction meets and preset drafting condition, if do not meet and preset drafting condition, return when receiving the drafting instruction that application program sends to pattern drafting interface, judge whether described drafting instruction meets and preset drafting condition,
When receiving the idsplay order that described application program sends to picture display interface, judge whether described idsplay order meets and preset display condition, display condition is preset if meet, trigger picture display interface described in described application call, to show the picture of described drafting, and return when receiving the idsplay order that described application program sends to picture display interface, judge whether described idsplay order meets and preset display condition, if do not meet and preset display condition, return when receiving the idsplay order that described application program sends to picture display interface, judge whether described idsplay order meets and preset display condition,
Wherein, described application program sends drafting instruction according to default refresh rate to described pattern drafting interface, and sends idsplay order according to described default refresh rate to described picture display interface.
2. the control method of application program picture refreshing according to claim 1, it is characterized in that, after pattern drafting interface described in the described application call of described triggering, and return when receiving the drafting instruction that application program sends to pattern drafting interface, before judging whether described drafting instruction meets default drafting condition, also comprise: counting mark is preset in initialization first;
Correspondingly, if not meeting default drafting condition, return when receiving the drafting instruction that application program sends to pattern drafting interface, before judging whether described drafting instruction meets default drafting condition, also comprise: upgrade the described first default counting and identify;
Correspondingly, describedly judge that whether described drafting instruction meets and preset drafting condition and comprise:
Judge whether the described first default counting mark identifies identical with the first predetermined number.
3. the control method of application program picture refreshing according to claim 1, it is characterized in that, after picture display interface described in the described application call of described triggering, and return when receiving the idsplay order that described application program sends to picture display interface, before judging whether described idsplay order meets default display condition, also comprise: counting mark is preset in initialization second;
Correspondingly, if do not meeting default display condition, returning when receiving the idsplay order that described application program sends to picture display interface, before judging whether described idsplay order meets default display condition, also comprising: upgrade described second and preset counting mark;
Correspondingly, describedly judge that whether described idsplay order meets and preset display condition and comprise:
Judge whether the described second default counting mark identifies identical with the second predetermined number.
4. the control method of application program picture refreshing according to claim 2, is characterized in that, described initialization first is preset counting mark and comprised: preset counting mark by described first and be initialized as 0;
Correspondingly, the described default counting mark of described renewal comprises:
Preset counting mark by described first and add 1.
5. the control method of application program picture refreshing according to claim 1, is characterized in that, described pattern drafting interface is OpenGLES interface, and described picture display interface is EGL interface.
6. a control method for application program picture refreshing, is characterized in that, comprising:
When receiving the drafting instruction that application program sends to pattern drafting interface, monitor vertical synchronizing signal, when listening to described vertical synchronizing signal, judge whether described vertical synchronizing signal meets and preset drafting condition, trigger pattern drafting interface described in described application call, to obtain the picture drawn, and return when receiving the drafting instruction that application program sends to pattern drafting interface, monitor vertical synchronizing signal, if do not meet and preset drafting condition, return when receiving the drafting instruction that application program sends to pattern drafting interface, monitor vertical synchronizing signal,
When receiving the idsplay order that described application program sends to picture display interface, monitor vertical synchronizing signal, when listening to described vertical synchronizing signal, judge whether described vertical synchronizing signal meets and preset display condition, display condition is preset if meet, trigger picture display interface described in described application call, to show the picture of described drafting, and return when receiving the idsplay order that described application program sends to picture display interface, monitor vertical synchronizing signal, if do not meet and preset drafting condition, return when receiving the idsplay order that described application program sends to picture display interface, monitor vertical synchronizing signal,
Wherein, described application program sends drafting instruction according to default refresh rate to described pattern drafting interface, and sends idsplay order according to described default refresh rate to described picture display interface.
7. a control device for application program picture refreshing, is characterized in that, comprising:
First pattern drafting control module, for when receiving the drafting instruction that application program sends to pattern drafting interface, judge whether described drafting instruction meets and preset drafting condition, drafting condition is preset if meet, trigger pattern drafting interface described in described application call, to obtain the picture drawn, and return when receiving the drafting instruction that application program sends to pattern drafting interface, judge whether described drafting instruction meets and preset drafting condition, if do not meet and preset drafting condition, return when receiving the drafting instruction that application program sends to pattern drafting interface, judge whether described drafting instruction meets and preset drafting condition,
First picture display control module, for when receiving the idsplay order that described application program sends to picture display interface, judge whether described idsplay order meets and preset display condition, display condition is preset if meet, trigger picture display interface described in described application call, to show the picture of described drafting, and return when receiving the idsplay order that described application program sends to picture display interface, judge whether described idsplay order meets and preset display condition, if do not meet and preset display condition, return when receiving the idsplay order that described application program sends to picture display interface, judge whether described idsplay order meets and preset display condition,
Wherein, described application program sends drafting instruction according to default refresh rate to described pattern drafting interface, and sends idsplay order according to described default refresh rate to described picture display interface.
8. the control device of application program picture refreshing according to claim 7, is characterized in that, also comprise:
First count initialized module, for after pattern drafting interface described in the described application call of described triggering, and return when receiving the drafting instruction that application program sends to pattern drafting interface, before judging whether described drafting instruction meets default drafting condition, counting mark is preset in initialization first;
First upgrades counting module, if for not meeting default drafting condition, returning when receiving the drafting instruction that application program sends to pattern drafting interface, before judging whether described drafting instruction meets default drafting condition, upgrading described first and presetting counting mark;
Correspondingly, described for judging whether described drafting instruction meets the first pattern drafting control module presetting drafting condition, comprising:
Described first pattern drafting control module, for judging whether the described first default counting mark identifies identical with the first predetermined number.
9. the control device of application program picture refreshing according to claim 7, is characterized in that, also comprise:
Second count initialized module, for after picture display interface described in the described application call of described triggering, and return when receiving the idsplay order that described application program sends to picture display interface, before judging whether described idsplay order meets default display condition, counting mark is preset in initialization second;
Second upgrades counting module, if for not meeting default display condition, returning when receiving the idsplay order that described application program sends to picture display interface, before judging whether described idsplay order meets default display condition, upgrading described second and presetting counting mark;
Correspondingly, described for judging whether described idsplay order meets the first picture display control module presetting display condition and comprise:
Described first picture display control module, for judging whether the described second default counting mark identifies identical with the second predetermined number.
10. a control device for application program picture refreshing, is characterized in that, comprising:
Second pattern drafting control module, for when receiving the drafting instruction that application program sends to pattern drafting interface, monitor vertical synchronizing signal, when listening to described vertical synchronizing signal, judge whether described vertical synchronizing signal meets and preset drafting condition, trigger pattern drafting interface described in described application call, to obtain the picture drawn, and return when receiving the drafting instruction that application program sends to pattern drafting interface, monitor vertical synchronizing signal, if do not meet and preset drafting condition, return when receiving the drafting instruction that application program sends to pattern drafting interface, monitor vertical synchronizing signal,
Second picture display control module, for when receiving the idsplay order that described application program sends to picture display interface, monitor vertical synchronizing signal, when listening to described vertical synchronizing signal, judge whether described vertical synchronizing signal meets and preset display condition, display condition is preset if meet, trigger picture display interface described in described application call, to show the picture of described drafting, and return when receiving the idsplay order that described application program sends to picture display interface, monitor vertical synchronizing signal, if do not meet and preset drafting condition, return when receiving the idsplay order that described application program sends to picture display interface, monitor vertical synchronizing signal,
Wherein, described application program sends drafting instruction according to default refresh rate to described pattern drafting interface, and sends idsplay order according to described default refresh rate to described picture display interface.
CN201410855712.1A 2014-12-31 2014-12-31 Control method and device for picture refreshing of application program Active CN104503564B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410855712.1A CN104503564B (en) 2014-12-31 2014-12-31 Control method and device for picture refreshing of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410855712.1A CN104503564B (en) 2014-12-31 2014-12-31 Control method and device for picture refreshing of application program

Publications (2)

Publication Number Publication Date
CN104503564A true CN104503564A (en) 2015-04-08
CN104503564B CN104503564B (en) 2017-05-03

Family

ID=52944967

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410855712.1A Active CN104503564B (en) 2014-12-31 2014-12-31 Control method and device for picture refreshing of application program

Country Status (1)

Country Link
CN (1) CN104503564B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104749944A (en) * 2015-04-13 2015-07-01 深圳市欧珀通信软件有限公司 Time display method and time display device for smart watch
CN105867576A (en) * 2015-11-24 2016-08-17 乐视移动智能信息技术(北京)有限公司 Method for prolonging battery life of terminal device and terminal device
CN106484348A (en) * 2016-09-20 2017-03-08 Tcl集团股份有限公司 A kind of animation method for drafting based on synchronizing signal and system
WO2017075987A1 (en) * 2015-11-06 2017-05-11 乐视控股(北京)有限公司 Method for improving smoothness of picture, and terminal device
CN108427726A (en) * 2018-02-12 2018-08-21 北京达佳互联信息技术有限公司 A kind of method for refreshing and device
WO2018161603A1 (en) * 2017-03-10 2018-09-13 广东欧珀移动通信有限公司 Method and apparatus for controlling image drawing of mobile terminal, medium, electronic device
CN109725978A (en) * 2019-01-22 2019-05-07 Oppo广东移动通信有限公司 Window refreshing method, device, electronic equipment and storage medium
US10460643B2 (en) 2017-03-10 2019-10-29 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method, device and non-transitory computer-readable storage medium for controlling frame rate of mobile terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6509911B1 (en) * 1998-11-26 2003-01-21 International Business Machines Corporation Power management method and device for display devices
CN102004620A (en) * 2010-11-09 2011-04-06 广东威创视讯科技股份有限公司 Image updating method and device
CN102103511A (en) * 2011-02-25 2011-06-22 北京经纬恒润科技有限公司 Method and system for refreshing application program
CN102375526A (en) * 2010-08-19 2012-03-14 英华达(上海)科技有限公司 Electronic device and power-saving control method thereof
CN103869926A (en) * 2012-12-13 2014-06-18 联想(北京)有限公司 Power saving method and electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6509911B1 (en) * 1998-11-26 2003-01-21 International Business Machines Corporation Power management method and device for display devices
CN102375526A (en) * 2010-08-19 2012-03-14 英华达(上海)科技有限公司 Electronic device and power-saving control method thereof
CN102004620A (en) * 2010-11-09 2011-04-06 广东威创视讯科技股份有限公司 Image updating method and device
CN102103511A (en) * 2011-02-25 2011-06-22 北京经纬恒润科技有限公司 Method and system for refreshing application program
CN103869926A (en) * 2012-12-13 2014-06-18 联想(北京)有限公司 Power saving method and electronic device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104749944A (en) * 2015-04-13 2015-07-01 深圳市欧珀通信软件有限公司 Time display method and time display device for smart watch
CN104749944B (en) * 2015-04-13 2017-11-10 广东欧珀移动通信有限公司 The time display method and device of a kind of intelligent watch
WO2017075987A1 (en) * 2015-11-06 2017-05-11 乐视控股(北京)有限公司 Method for improving smoothness of picture, and terminal device
CN105867576A (en) * 2015-11-24 2016-08-17 乐视移动智能信息技术(北京)有限公司 Method for prolonging battery life of terminal device and terminal device
CN106484348A (en) * 2016-09-20 2017-03-08 Tcl集团股份有限公司 A kind of animation method for drafting based on synchronizing signal and system
WO2018161603A1 (en) * 2017-03-10 2018-09-13 广东欧珀移动通信有限公司 Method and apparatus for controlling image drawing of mobile terminal, medium, electronic device
US10460643B2 (en) 2017-03-10 2019-10-29 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method, device and non-transitory computer-readable storage medium for controlling frame rate of mobile terminal
US11145238B2 (en) 2017-03-10 2021-10-12 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for controlling image graphing of terminal, nontransitory computer-readable storage medium, and terminal
CN108427726A (en) * 2018-02-12 2018-08-21 北京达佳互联信息技术有限公司 A kind of method for refreshing and device
CN108427726B (en) * 2018-02-12 2020-10-02 北京达佳互联信息技术有限公司 Brushing method and device
CN109725978A (en) * 2019-01-22 2019-05-07 Oppo广东移动通信有限公司 Window refreshing method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN104503564B (en) 2017-05-03

Similar Documents

Publication Publication Date Title
CN104503564A (en) Control method and device for picture refreshing of application program
US20210272566A1 (en) Communication Method, Server, and Device
US20180261143A1 (en) Method, device and non-transitory computer-readable storage medium for controlling frame rate of mobile terminal
WO2015117361A1 (en) Data display method and device, and mobile terminal
CN104133610B (en) The split screen exchange method of mobile terminal and mobile terminal
CN106528028B (en) Information processing method, system, device and terminal
JP2015511321A (en) Receiving apparatus, video refresh frequency control method, apparatus and system
CN107809793A (en) The wake-up control method and device of intelligent terminal
CN104778022B (en) A kind of data processing method and electronic equipment
CN103067585A (en) Multiparty call display controlling method, device and mobile terminal
CN103491409A (en) Multi-screen control system, realizing method of multi-screen control system and remote controllers
CN104298484A (en) Multi-screen interaction method and device
WO2014082297A1 (en) Methods for supporting multiple calls simultaneously in door entry system and system thereof
CN103108232A (en) Method and system based on interaction control of mobile phone and television
CN103914204A (en) Method and device for displaying and switching views
CN102833405A (en) Method and device for displaying static wallpaper and mobile terminal
CN103514837B (en) Terminal screen backlight control method and apparatus
CN112367203A (en) Network distribution method and device, smart television and computer readable storage medium
CN104966520A (en) Play control method, intelligent terminal and vehicle-mounted play system
CN102890595A (en) Interactive control method and system for main screen and extension screen
CN105872701A (en) Method and mobile terminal for realizing video playing control
CN109176537B (en) Content display method and device for robot
CN103677702A (en) Display method and electronic device
CN105657531A (en) Hibernation control method and system for mobile terminal
CN101155276A (en) Display device for function menu dynamic switch and its implementing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20180425

Address after: 401120 data of Xiantao street, Yubei District, Chongqing 19

Patentee after: Zhongke Chuang Da (Chongqing) Automotive Technology Co., Ltd.

Address before: 100191 Beijing Haidian District Longxiang Road 1, Tai Xiang business building 4 floor 401-409

Patentee before: Thunder Software Technology Co., Ltd.

TR01 Transfer of patent right