CN106503159A - A kind of rendering intent of browsing device net page and mobile terminal - Google Patents

A kind of rendering intent of browsing device net page and mobile terminal Download PDF

Info

Publication number
CN106503159A
CN106503159A CN201610927178.XA CN201610927178A CN106503159A CN 106503159 A CN106503159 A CN 106503159A CN 201610927178 A CN201610927178 A CN 201610927178A CN 106503159 A CN106503159 A CN 106503159A
Authority
CN
China
Prior art keywords
webpage
frame
distributed
webpage frame
rendering
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.)
Pending
Application number
CN201610927178.XA
Other languages
Chinese (zh)
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201610927178.XA priority Critical patent/CN106503159A/en
Publication of CN106503159A publication Critical patent/CN106503159A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention discloses a kind of rendering intent of browsing device net page, including step:After browser loading webpage, if satisfaction first is pre-conditioned, starts distributed webpage and render mechanism;Described start distributed webpage and render mechanism include:It is the first webpage frame or the second webpage frame by preset rules by webpage frame flag and is delivered to software rendering module respectively and Hardware Render module is rendered.The present invention also provides a kind of mobile terminal, including:Start unit, loads after webpage for browser, if satisfaction first is pre-conditioned, starts distributed webpage and renders mechanism;Parsing indexing unit, is the first webpage frame or the second webpage frame for pressing preset rules by webpage frame flag;Conveying rendering unit, is rendered for the first webpage frame is delivered to software rendering module;And the second webpage frame is delivered to Hardware Render module is rendered.The present invention can guarantee that the smooth display of browsing device net page by software rendering module and Hardware Render module, distributed collaboration cooperation.

Description

A kind of rendering intent of browsing device net page and mobile terminal
Technical field
The present invention relates to web browsing technology field, more particularly to a kind of rendering intent of browsing device net page and movement are eventually End.
Background technology
In the mobile Internet epoch, with popularizing for intelligent terminal, user follows one's inclinations whenever and wherever possible and can access network, And browser, used as the Web portal for being specifically used to access and browse World Wide Web page, its effect is self-evident and irreplaceable.
Each website can stack the view of a lot of levels to reach very magnificent, dynamic visual effect during webpage design Component, and these complicated hierarchical structures are easy to the performance issue for causing rendering engine.In ARIXTRA (Android) platform, intelligence The refreshing frequency of energy terminal screen is 60Hz/s, if rendering task is not held in 1000/60=16.67ms by a two field picture Row is finished, and the phenomenon that webpage renders frame losing will occur.Webpage renders that slower, frame losing is more, the interim card that user will experience Will be more serious, so as to cause Consumer's Experience extreme difference.
Content of the invention
Present invention is primarily targeted at proposing a kind of rendering intent of browsing device net page and mobile terminal, it is intended to improve net The rendering speed of page, it is ensured that the smooth display of browsing device net page.
For achieving the above object, the present invention proposes a kind of rendering intent of browsing device net page, it is characterised in that including step Suddenly:After browser loading webpage, if satisfaction first is pre-conditioned, starts distributed webpage and render mechanism;The distributed network Page renders mechanism to be included:
It is the first webpage frame or the second webpage frame that preset rules are pressed by webpage frame flag;
The first webpage frame is delivered to software rendering module to be rendered;And the second webpage frame is delivered to firmly Part rendering module is rendered.
Alternatively, described first pre-conditioned including:Detect the webpage frame to be dropped when webpage is rendered;Or it is described Distributed webpage renders the switch of mechanism and is in opening.
Alternatively, described detect when webpage is rendered the webpage frame be dropped including:If having continuous two vertically together When step signal does not complete to render a webpage frame, it is determined that the webpage frame is dropped.
Alternatively, described is that the first webpage frame or the second webpage frame include by preset rules by webpage frame flag:
The webpage frame is numbered, and is the first webpage frame by the webpage frame flag that numbering is mK, remaining Webpage frame flag is the second webpage frame;Wherein, m is 2,4,8 or 16;K=0,1,2..., n, n are positive integer.
Alternatively, if described meet first pre-conditioned, start after distributed webpage renders mechanism, methods described is also Including:If satisfaction second is pre-conditioned, the webpage Distributed Rendering Environment mechanism is exited;Described second is pre-conditioned including described Software rendering module and Hardware Render module complete to render;Or the distributed webpage renders the switch of mechanism in closing shape State.
Additionally, for achieving the above object, the present invention also provides a kind of mobile terminal, it is characterised in that include:
Start unit, loads after webpage for browser, if satisfaction first is pre-conditioned, starts distributed webpage and renders Mechanism;
Parsing indexing unit, is the first webpage frame or the second webpage frame for pressing preset rules by webpage frame flag;
Conveying rendering unit, is rendered for the first webpage frame is delivered to software rendering module;And will be described Second webpage frame is delivered to Hardware Render module and is rendered.
Alternatively, described first pre-conditioned including:Detect the webpage frame to be dropped when webpage is rendered;Or it is described Distributed webpage renders the switch of mechanism and is in opening.
Alternatively, if there are continuous two vertical synchronizing signals not complete to render a webpage frame, judge the net Page frame is dropped.
Alternatively, described parsing indexing unit be additionally operable to be numbered the webpage frame, and by numbering be mK webpage Frame flag is the first webpage frame, and remaining webpage frame flag is the second webpage frame;Wherein, m is 2,4,8 or 16;K= 0,1,2..., n, n are positive integer.
Alternatively, also include exiting unit, if pre-conditioned for meeting second, exit the webpage Distributed Rendering Environment Mechanism;Described second pre-conditioned completes to render including the software rendering module and Hardware Render module;Or it is described distributed Webpage renders the switch of mechanism and is closed.
The rendering intent and mobile terminal of browsing device net page proposed by the present invention, after browser is loaded into webpage, if meet First is pre-conditioned, then distinguish different Web page image frames, is respectively sent to software rendering module and Hardware Render module, distribution Formula cooperative cooperating, to ensure that the smooth of browsing device net page shows.
Description of the drawings
Fig. 1 is the hardware architecture diagram of the mobile terminal for realizing each embodiment of the invention;
Structural representations of the Fig. 2 for the mobile terminal of the embodiment of the present invention;
Structural representations of the Fig. 3 for the mobile terminal of another embodiment of the present invention;
Schematic flow sheets of the Fig. 4 for the rendering intent of the browsing device net page of the embodiment of the present invention;
Schematic flow sheets of the Fig. 5 for the rendering intent of the browsing device net page of another embodiment of the present invention;
Schematic flow sheets of the Fig. 6 for the rendering intent of the browsing device net page of further embodiment of this invention;
The realization of the object of the invention, functional characteristics and advantage will be described further in conjunction with the embodiments referring to the drawings.
Specific embodiment
It should be appreciated that specific embodiment described herein is not intended to limit the present invention only in order to explain the present invention.
Referring now to the mobile terminal that Description of Drawings realizes each embodiment of the invention.In follow-up description, use For representing the suffix of such as " module ", " part " or " unit " of element only for being conducive to the explanation of the present invention, itself Not specific meaning.Therefore, " module " mixedly can be used with " part ".
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as moving Phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP The mobile terminal of (portable media player), guider etc. and such as numeral TV, desk computer etc. are consolidated Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, except being used in particular for moving Outside the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is that the hardware configuration of the mobile terminal for realizing each embodiment of the invention is illustrated.
Mobile terminal 1 00 can include wireless communication unit 110, A/V (audio/video) input block 120, user input Unit 130, sensing unit 140, output unit 150, memorizer 160, interface unit 170, controller 180 and power subsystem 190 Etc..Fig. 1 shows the mobile terminal 1 00 with various assemblies, it should be understood that being not required for implementing all illustrating Component.More or less of component can alternatively be implemented.Will be discussed in more detail below the element of mobile terminal 1 00.
Wireless communication unit 110 generally can include one or more assemblies, and which allows mobile terminal 1 00 and radio communication Radio communication between system or network.For example, wireless communication unit can include broadcasting reception module 111, mobile communication At least one of module 112, wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast via broadcast channel from external broadcast management server Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be generated and sent The broadcast singal generated before the server or reception of broadcast singal and/or broadcast related information and/or broadcast related information And send it to the server of terminal.Broadcast singal can include TV broadcast singals, radio signals, data broadcasting Signal etc..And, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase Pass information can also be provided via mobile communications network, and in this case, broadcast related information can be by mobile communication mould Block 112 is receiving.Broadcast singal can be present in a variety of manners, and for example, which can be with the electronics of DMB (DMB) The form of program guide (EPG), the electronic service guidebooks (ESG) of digital video broadcast-handheld (DVB-H) etc. and exist.Broadcast Receiver module 111 can receive signal broadcast by using various types of broadcast systems.Especially, broadcasting reception module 111 Can be wide by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video Broadcast-hand-held (DVB-H), the Radio Data System of forward link media (MediaFLO@), received terrestrial digital broadcasting integrated service Etc. (ISDB-T) digit broadcasting system receives digital broadcasting.Broadcasting reception module 111 may be constructed such that and be adapted to provide for extensively Broadcast the various broadcast systems and above-mentioned digit broadcasting system of signal.Via broadcasting reception module 111 receive broadcast singal and/ Or broadcast related information can be stored in memorizer 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And at least one of server and/or receive from it radio signal.Such radio signal can be logical including voice Words signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by the module can include WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology include indigo plant Tooth TM, RF identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybee TM etc..
Location information module 115 be for check or obtain mobile terminal positional information module.Location information module 115 typical case is GPS (global positioning system).According to current technology, GPS calculate from three or more satellites away from From information and correct time information and for the Information application triangulation for calculating, so as to according to longitude, latitude and height Degree calculates three-dimensional current location information exactly.Currently, three satellites are used simultaneously for calculating the method for position and temporal information And the error of the position and temporal information for calculating is corrected by using an other satellite.Additionally, GPS can pass through in real time Ground Continuous plus current location information carrys out calculating speed information.
A/V input blocks 120 are used for receiving audio or video signal.A/V input blocks 120 can include 121 He of camera Mike 122,121 pairs of static images obtained by image capture apparatus in Video Capture pattern or image capture mode of camera Or the view data of video is processed.Picture frame after process is may be displayed on display unit 151.Process through camera 121 Picture frame afterwards can be stored in memorizer 160 (or other storage mediums) or carry out sending out via wireless communication unit 110 Send, two or more cameras 121 can be provided according to the construction of mobile terminal 1 00.Mike 122 can be in telephone relation mould Sound (voice data) is received via mike in formula, logging mode, speech recognition mode etc. operational mode, and can be by Such acoustic processing is voice data.Audio frequency (voice) data after process can be changed in the case of telephone calling model For the form output of mobile communication base station can be sent to via mobile communication module 112.Mike 122 can implement all kinds Noise eliminate (or suppress) algorithm with eliminate noise that (or suppression) is produced during receiving and sending audio signal or Person disturbs.
User input unit 130 can generate key input data according to the order of user input to control mobile terminal 1 00 Various operations.User input unit 130 allows the various types of information of user input, and can include keyboard, metal dome, Touch pad (for example, detection is due to the sensitive component of the change of touched and caused resistance, pressure, electric capacity etc.), roller, shake Bar etc..Especially, when touch pad is superimposed upon on display unit 151 as a layer, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 1 00, and (for example, mobile terminal 1 00 opens or closes shape State), the position of mobile terminal 1 00, user is for the presence or absence of contact (that is, touch input), the mobile terminal of mobile terminal 1 00 100 orientation, the acceleration or deceleration movement of mobile terminal 1 00 and direction etc., and generate for controlling mobile terminal 1 00 The order of operation or signal.For example, when mobile terminal 1 00 is embodied as sliding-type mobile phone, sensing unit 140 can be sensed The sliding-type phone is opened or is cut out.In addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or Whether person's interface unit 170 is coupled with external device (ED).Sensing unit 140 can include proximity transducer 141, work as mobile terminal 100 using touch screen when, it is that touch is often encountered by face when user picks up phone with modal posture which has individual defect On screen, encounter on-hook key or Hands-free key, encounter awkwardness.The use of proximity transducer 141 can be locked when answering the call automatically Screen, it is to avoid false triggering.In addition, backlight can also be turned off while screen locking, can effective energy-conservation, extend stand-by time.It is close to sensing Device 141 includes the LED of photodiode and infrared light wavelength;When have object near when, the light of infrared light emission can be by object Reflect, be approached sensor and receive, then just sensed object proximity.
Interface unit 170 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 1 00.For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for being used for device of the connection with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be that storage uses each of mobile terminal 1 00 for verifying user Kind of information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included Etc..In addition, the device (hereinafter referred to as " identifying device ") with identification module can take the form of smart card, therefore, know Other device can be connected with mobile terminal 1 00 via port or other attachment means.Interface unit 170 can be used for receive from The input (for example, data message, electric power etc.) of external device (ED) and the input for receiving is transferred in mobile terminal 1 00 One or more elements can be used for transmission data between mobile terminal 1 00 and external device (ED).
In addition, when mobile terminal 1 00 is connected with external base, interface unit 170 can serve as allowing to pass through which by electricity Power provides the path of mobile terminal 1 00 from base or can serve as allowing the various command signals from base input to pass through which It is transferred to the path of mobile terminal 1 00.The various command signals or electric power being input into from base may serve as recognizing movement eventually Whether end 100 is accurately fitted within the signal on base.Output unit 150 is configured to vision, audio frequency and/or tactile manner Output signal (for example, audio signal, video signal, alarm signal, vibration signal etc.) is provided.Output unit 150 can be wrapped Include display unit 151, dio Output Modules 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information processed in mobile terminal 1 00.For example, when mobile terminal 1 00 is in electricity During words call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia files Download etc.) related user interface (UI) or graphic user interface (GUI).When mobile terminal 1 00 is in video calling pattern Or during image capture mode, display unit 151 can show the image of capture and/or the image of reception, show video or UI or GUI of image and correlation function etc..
Meanwhile, when the display unit 151 and touch pad touch screen with formation superposed on one another as a layer, display unit 151 can serve as input equipment and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least A kind of.Some in these display may be constructed such that transparence to allow user from outside viewing, and this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific The embodiment that wants, mobile terminal 1 00 can include two or more display units (or other display devices), for example, move Dynamic terminal 100 can include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used to detect Touch input pressure and touch input position and touch input area.
Dio Output Modules 152 can be in mobile terminal 1 00 in call signal reception pattern, call mode, record mould When under the isotypes such as formula, speech recognition mode, broadcast reception mode, that wireless communication unit 110 is received or in memorizer In 160 store voice data transducing audio signal and be output as sound.And, dio Output Modules 152 can provide with (for example, call signal receives sound, message sink sound etc. to the audio output of the specific function correlation that mobile terminal 1 00 is executed Deng).Dio Output Modules 152 can include speaker, buzzer etc..
Alarm unit 153 can provide output to notify event to mobile terminal 1 00.Typical event can be with Including calling reception, message sink, key signals input, touch input etc..In addition to audio or video is exported, alarm unit 153 can provide output in a different manner with the generation of notification event.For example, alarm unit 153 can be in the form of vibrating Output is provided, when calling, message or some other entrance communication (incoming communication) are received, alarm list Unit 153 can provide tactile output (that is, vibrating) to notify to user.Tactile output as by providing, even if When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm unit 153 The output of the generation of notification event can be provided via display unit 151 or dio Output Modules 152.
Memorizer 160 can store software program for the process and control operation executed by controller 180 etc., Huo Zheke Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And And, memorizer 160 can be storing the vibration of various modes with regard to exporting and audio signal when touching and being applied to touch screen Data.
Memorizer 160 can include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, many Media card, card-type memorizer (for example, SD or DX memorizeies etc.), random access storage device (RAM), static random-access storage Device (SRAM), read only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..And, mobile terminal 1 00 can execute memorizer with by network connection The network storage device cooperation of 160 store function.
The overall operation of 180 usual control mobile terminal of controller.For example, controller 180 is executed and voice call, data The related control of communication, video calling etc. and process.In addition, controller 180 can include (or playback) many matchmakers for reproducing The multi-media module 181 of volume data, multi-media module 1810 can be constructed in controller 180, or it is so structured that and control Device processed 180 is separated.Controller 180 can be with execution pattern identifying processing, by the handwriting input for executing on the touchscreen or figure Piece is drawn input and is identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each unit Appropriate electric power needed for part and component.
Various embodiments described herein can be with use such as computer software, hardware or its any combination of calculating Machine computer-readable recording medium is implementing.For hardware is implemented, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), processor, controller, microcontroller, microprocessor, it is designed to execute function described herein At least one in electronic unit implementing, in some cases, can be implemented in controller 180 by such embodiment. For software is implemented, the embodiment of such as process or function can with allow to execute the single of at least one function or operation Software module is implementing.Software code can be come by the software application (or program) that is write with any appropriate programming language Implement, software code can be stored in memorizer 160 and be executed by controller 180.
So far, oneself is through describing 100 according to its function.In addition, the mobile terminal 1 00 in the embodiment of the present invention can be all Such as the slide type mobile terminal conduct in folded form, board-type, oscillating-type, sliding-type and other various types of mobile terminals Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal, specifically this Place does not limit.
Based on above-mentioned mobile terminal hardware configuration, the inventive method each embodiment is proposed.
As shown in Fig. 2 first embodiment of the invention proposes a kind of mobile terminal, including start unit 10, parsing labelling list Unit 20, conveying rendering unit 30.
Wherein, after start unit 10 is used for browser loading webpage, if meeting the first pre-conditioned, startup distributed network Page renders mechanism.It is the first webpage frame or the second webpage frame that parsing indexing unit 20 is used for pressing preset rules by webpage frame flag. Conveying rendering unit 30 is rendered for the first webpage frame is delivered to software rendering module;And the second webpage frame is delivered to Hardware Render module is rendered.In the specific implementation, software rendering module is webpage CPU (Central Processing Unit, central processing unit), Hardware Render module is webpage GPU (Graphic Processing Unit, graphic process unit).
In the present embodiment, when browser kernel WebiKit allotments are rendered, it is the first webpage by Web page image frame flag Frame, the second webpage frame, are delivered to software rendering module and Hardware Render module respectively, complete to render net by distributed collaborative Page frame, and then cooperate with smooth output display.
Second embodiment of the invention proposes a kind of mobile terminal, including start unit 10, parsing indexing unit 20, conveying wash with watercolours Dye unit 30.
Start unit 10, parsing indexing unit 20, conveying rendering unit 30 and above-mentioned first embodiment in the present embodiment In start unit 10, parsing indexing unit 20, conveying rendering unit 30 identical, as detailed above, here is omitted.
It should be noted that in the present embodiment, first pre-conditioned including:Detect webpage frame to be lost when webpage is rendered Abandon;Or distributed webpage renders the switch of mechanism in opening.
Third embodiment of the invention proposes a kind of mobile terminal, including start unit 10, parsing indexing unit 20, conveying wash with watercolours Dye unit 30.
Start unit 10, parsing indexing unit 20, conveying rendering unit 30 and above-mentioned first embodiment in the present embodiment In start unit 10, parsing indexing unit 20, conveying rendering unit 30 identical, as detailed above, here is omitted.
It should be noted that in the present embodiment, the first pre-conditioned being included in when webpage is rendered detects webpage frame and is lost Abandon;Specifically, if having continuous two vertical synchronization (VSYNC) signal not complete to render a webpage frame, it is determined that the net Page frame is dropped;When implementing, can be realized by figure layer blender SurfaceFlinger;First pre-conditioned can be with The switch that mechanism is rendered including distributed webpage is in opening;The switch that the distributed webpage renders mechanism passes through WebDistributedRender is arranged, in the specific implementation, usually, when When the value of webcore.distributed.render.enable (webpage Distributed Rendering Environment mechanism switch) is 1, represents and enable net Page Distributed Rendering Environment, i.e., distributed webpage render the switch of mechanism and are in opening;When When the value of webcore.distributed.render.enable is 0, represents and do not enable webpage Distributed Rendering Environment, i.e., distributed Webpage renders the switch of mechanism and is closed.As web interface layout is excessively complicated, such as html topology files exist deep Layer is nested or component is excessive, and webcore cannot be rendered after calculating Parser, Layout, Paint using CPU in time, can be caused , without response, interface operation is not smooth for browser.And starting webpage Distributed Rendering Environment mechanism, fully cooperation CPU and GPU has been able to Smoothness into complex topology shows.But enable webpage Distributed Rendering Environment mechanism for a long time, held as the internal memory of system, electricity can be increased Pin, therefore, it can acquiescence and closes webpage Distributed Rendering Environment mechanism.
Fourth embodiment of the invention proposes a kind of mobile terminal, including start unit 10, parsing indexing unit 20, conveying wash with watercolours Dye unit 30.
Start unit 10, parsing indexing unit 20, conveying rendering unit 30 and above-mentioned first embodiment in the present embodiment In start unit 10, parsing indexing unit 20, conveying rendering unit 30 identical, as detailed above, here is omitted.
It should be noted that in the present embodiment, parsing indexing unit 20 is additionally operable to be numbered webpage frame, and will numbering Webpage frame flag for mK is the first webpage frame, and remaining webpage frame flag is the second webpage frame;Wherein, m be 2, 4th, 8 or 16, e.g. 8;K=0,1,2..., n, n are positive integer.It should be noted that the value of n no maximum, which is according to need The quantity of webpage frame to be processed determines.Conveying rendering unit 30 is entered for the first webpage frame is delivered to software rendering module Row is rendered;And the second webpage frame is delivered to Hardware Render module is rendered.In the specific implementation, software rendering module is net Page CPU, Hardware Render module are webpage GPU.
As shown in figure 3, fifth embodiment of the invention proposes a kind of mobile terminal, including start unit 10, parsing labelling list First 20, convey rendering unit 30, exit unit 40.
Start unit 10, parsing indexing unit 20, conveying rendering unit 30 and above-mentioned first embodiment in the present embodiment In start unit 10, parsing indexing unit 20, conveying rendering unit 30 identical, as detailed above, here is omitted.
If it should be noted that exit unit 40 for meet second pre-conditioned, exit the distributed wash with watercolours of the webpage Dye mechanism;Described second pre-conditioned completes to render including software rendering module and Hardware Render module;Or distributed webpage wash with watercolours The switch of dye mechanism is closed.
In the specific implementation, public dynamic link library can also be generated to repeat to call for multiple platforms, with ARIXTRA (Android), as a example by system, specifically include:
(1) Android.mk files are configured, LOCAL_MODULE=WebDistributedRender is set, quoted and become Amount include $ ((BUILD_SHARED_LIBRARY);
(2), according to configuration attribute, compiling generates public dynamic base libWebDistributedRender.so and supplies Multiple different platforms are used;
(3), the generation path of dynamic base:/ out/target/ entry names/system/lib/ libWebDistributedRender.so.
Now, before using dynamic link library, need first to call the dynamic link library, specifically, be included in WebCore Middle reference header file WebDistributedRender.h;LOCAL_ is quoted in kernel WebCore compiling files Android.mk SHARED_LIBRARIES+=libWebDistributedRender.
When each embodiment of mobile terminal of present invention offer is realized using dynamic link library, specifically:
Start unit 10 is used for calling initWebDistributedRender () to create webpage Distributed Rendering Environment device to open Move distributed webpage and render mechanism;Parsing indexing unit 20 is used for calling pickWebGraphicsFrame () parsings, labelling the One webpage frame and the second webpage frame, conveying rendering unit 30 can be used for calling startWebDistributedRender () to open Dynamic webpage Distributed Rendering Environment device, is additionally operable to call transportToSoftwareRender () to be delivered to the first webpage frame soft Part rendering module carries out rendering while calling transportToHardwareRender () that the second webpage frame is delivered to hardware Rendering module is rendered, so as to complete Distributed Rendering Environment;Exiting unit 40 is used for calling release when browser is exited () discharges and destroys webpage Distributed Rendering Environment device to exit webpage Distributed Rendering Environment mechanism.
Above to the embodiment of the present invention in mobile terminal be described, below to the embodiment of the present invention in browser The rendering intent of webpage is described.
As shown in figure 4, sixth embodiment of the invention provides a kind of rendering intent of browsing device net page, including step:
S11, browser loading webpage;
S12, judge whether to meet first pre-conditioned, if so, then enter step S13;If it is not, then as shown in step S16, End process;
S13, the distributed webpage of startup render mechanism;The distributed webpage renders mechanism includes step S14 and S15;
S14, it is the first webpage frame or the second webpage frame by preset rules by webpage frame flag;
S15, the first webpage frame is delivered to software rendering module is rendered;And the second webpage frame is delivered to hardware wash with watercolours Dye module is rendered.
In the specific implementation, software rendering module is that (Central Processing Unit, central authorities are processed webpage CPU Device), Hardware Render module is webpage GPU (Graphic Processing Unit, graphic process unit).
In the present embodiment, when browser kernel WebKit (browser engine) allotments are rendered, by Web page image frame flag For the first webpage frame, the second webpage frame, software rendering module and Hardware Render module is delivered to respectively, by distributed collaborative Complete to render webpage frame, and then cooperate with smooth output display.
Seventh embodiment of the invention provides a kind of rendering intent of browsing device net page, including the step of with the 6th embodiment in The S11 to S16 for referring to is identical, and as detailed above, here is omitted.
It should be noted that in the present embodiment, first pre-conditioned including:Detect webpage frame to be lost when webpage is rendered Abandon;Or distributed webpage renders the switch of mechanism in opening;
Eighth embodiment of the invention provides a kind of rendering intent of browsing device net page, including the step of with the 6th embodiment in The S11 to S16 for referring to is identical, and as detailed above, here is omitted.
It should be noted that in the present embodiment, the first pre-conditioned being included in when webpage is rendered detects webpage frame and is lost Abandon;In the specific implementation, if having continuous two vertical synchronization (VSYNC) signal not complete to render a webpage frame, really The fixed webpage frame is dropped, and when implementing, can be realized by SurfaceFlinger;First pre-conditioned can also include Distributed webpage renders the switch of mechanism and is in opening;The switch that the distributed webpage renders mechanism passes through WebDistributedRender is arranged, in the specific implementation, usually, when When the value of webcore.distributed.render.enable is 1, represents and enable webpage Distributed Rendering Environment, i.e. distributed network Page renders the switch of mechanism and is in opening;When the value of webcore.distributed.render.enable is 0, table Show, i.e., the switch that distributed webpage renders mechanism is closed.Due to web interface cloth Office is excessively complicated, and such as html topology files have that deep layer is nested or component is excessive, webcore using CPU calculate Parser, Cannot render in time after Layout, Paint, browser can be caused without response, interface operation is not smooth.And it is distributed to start webpage Mechanism is rendered, fully cooperation CPU and GPU, be accomplished the smooth display of complex topology.But enable webpage Distributed Rendering Environment for a long time Mechanism, due to increasing internal memory, the electricity expense of system, therefore, it can acquiescence and closes webpage Distributed Rendering Environment mechanism.
Ninth embodiment of the invention provides a kind of rendering intent of browsing device net page, including the step of with the 6th embodiment in The S11 to S16 for referring to is identical, and as detailed above, here is omitted.
It should be noted that step S14 is specifically included in the present embodiment:Webpage frame is numbered, and is mK by numbering Webpage frame flag be the first webpage frame, remaining webpage frame flag be the second webpage frame;Wherein, m be 2,4,8 or 16, e.g. 8;K=0,1,2..., n, n are positive integer;
As shown in figure 5, tenth embodiment of the invention provides a kind of rendering intent of browsing device net page, including step:
S21, browser loading webpage;
S22, judge whether to meet first pre-conditioned, if so, then enter step S23;If it is not, then as shown in step S28, End process;
In the present embodiment, the first pre-conditioned being included in when webpage is rendered detects webpage frame and is dropped;It is being embodied as When, if having continuous two vertical synchronization (VSYNC) signal not complete to render a webpage frame, it is determined that the webpage frame is lost Abandon, when implementing, can be realized by SurfaceFlinger;First pre-conditioned can also render including distributed webpage The switch of mechanism is in opening;The switch that the distributed webpage renders mechanism is set by WebDistributedRender Put, in the specific implementation, usually, when the value of webcore.distributed.render.enable is 1, expression is enabled Webpage Distributed Rendering Environment, i.e., distributed webpage render the switch of mechanism and are in opening;When When the value of webcore.distributed.render.enable is 0, represents and do not enable webpage Distributed Rendering Environment, i.e., distributed Webpage renders the switch of mechanism and is closed.As web interface layout is excessively complicated, such as html topology files exist deep Layer is nested or component is excessive, and webcore cannot be rendered after calculating Parser, Layout, Paint using CPU in time, can be caused , without response, interface operation is not smooth for browser.And starting webpage Distributed Rendering Environment mechanism, fully cooperation CPU and GPU has been able to Smoothness into complex topology shows.But enable webpage Distributed Rendering Environment mechanism for a long time, held as the internal memory of system, electricity can be increased Pin, therefore, it can acquiescence and closes webpage Distributed Rendering Environment mechanism.
S23, the distributed webpage of startup render mechanism;
S24, it is the first webpage frame or the second webpage frame by preset rules by webpage frame flag;
Specifically, webpage frame is numbered, and is the first webpage frame by the webpage frame flag that numbering is mK, remaining Webpage frame flag be the second webpage frame;Wherein, m is 2,4,8 or 16, e.g. 8;K=0,1,2..., n, n are just whole Number;It should be noted that the value of n no maximum, which is that the quantity of the webpage frame for processing as needed determines.
S25, the first webpage frame is delivered to software rendering module is rendered;And the second webpage frame is delivered to hardware wash with watercolours Dye module is rendered;
In the specific implementation, software rendering module is webpage CPU, and Hardware Render module is webpage GPU;
S26, judge whether to meet second pre-conditioned, if so, then enter step S27;If it is not, then return to step S23;
Above-mentioned second pre-conditioned completes to render including software rendering module and Hardware Render module;Or distributed webpage wash with watercolours The switch of dye mechanism is closed, and now, the value of webcore.distributed.render.enable is 0;
S27, exit webpage Distributed Rendering Environment mechanism.
In the present embodiment, when browser kernel WebiKit allotments are rendered, it is the first webpage by Web page image frame flag Frame, the second webpage frame, are delivered to software rendering module and Hardware Render module respectively, complete to render net by distributed collaborative Page frame, and then cooperate with smooth output display;Exit distributed webpage after completing to render in time and render mechanism, reduce the interior of system Deposit, electricity expense.
As shown in fig. 6, eleventh embodiment of the invention provides a kind of rendering intent of browsing device net page, load in browser Webpage includes step:
S1, the distributed webpage of acquisition webpage render the parameter of the switch of mechanism;Wherein, the distributed webpage of webpage renders mechanism The parameter of switch be exactly webcore.distributed.render.enable;Usually, when When the value of webcore.distributed.render.enable is 1, represents and enable webpage Distributed Rendering Environment, i.e. distributed network Page renders the switch of mechanism and is in opening;When the value of webcore.distributed.render.enable is 0, table Show, i.e., the switch that distributed webpage renders mechanism is closed;
Whether S2, the value of the parameter are 1;If it is not, then as shown in step S3, terminating process, that is, terminating Distributed Rendering Environment; If so, step S4 is then entered;
The webpage frame is simultaneously separated by S4, analyzing web page frame;Webpage frame after separating is numbered again;
S5, the process of software rendering module render the webpage frame that numbering is mK;Hardware Render resume module renders remaining net Page frame;
Wherein, m is 2,4,8 or 16, e.g. 8;K=0,1,2..., n, n are positive integer;The value no maximum of n, which is The quantity of the webpage frame for processing as needed determines.Wherein, via the software rendering module webpage frame that renders of process need through Cross RenderLayerTree (figure layer render tree), Layout (layout), Paint (drafting).
S6, will render after webpage frame mixing after export.
In the specific implementation, public dynamic link library can also be generated to repeat to call for multiple platforms, with ARIXTRA (Android), as a example by system, step is specifically included:
(1) Android.mk files are configured, LOCAL_MODULE=WebDistributedRender is set, quoted and become Amount include $ ((BUILD_SHARED_LIBRARY);
(2), according to configuration attribute, compiling generates public dynamic base libWebDistributedRender.so and supplies Multiple different platforms are used;
(3), the generation path of dynamic base:/ out/target/ entry names/system/lib/ libWebDistributedRender.so.
Now, before using dynamic link library, need first to call the dynamic link library, specifically, be included in WebCore Middle reference header file WebDistributedRender.h;LOCAL_ is quoted in kernel WebCore compiling files Android.mk SHARED_LIBRARIES+=libWebDistributedRender.
When each embodiment of the rendering intent of browsing device net page of present invention offer is realized using dynamic link library, tool Body ground:
In step S13 or step S23, initWebDistributedRender () is called to create webpage Distributed Rendering Environment Device renders mechanism to start distributed webpage;In step S14 or step S24, pickWebGraphicsFrame () is called to solve Analysis, labelling the first webpage frame and the second webpage frame, in step S15 or step S25, call StartWebDistributedRender () starts webpage Distributed Rendering Environment device, then calls First webpage frame is delivered to software rendering module and carries out rendering while calling by transportToSoftwareRender () Second webpage frame is delivered to Hardware Render module and is rendered by transportToHardwareRender (), so as to complete point Cloth is rendered, and in step s 27, calls release () to discharge and destroy webpage Distributed Rendering Environment device when browser is exited finally To exit webpage Distributed Rendering Environment mechanism.
The present invention provide browsing device net page rendering intent and mobile terminal, given full play to the CPU of terminal computing, The image of disposal ability and GPU, graphical rendering capability, collaboration webpage are rendered, to support the smoothness of each web interface of browser Switching, improves the visual experience of user;(as webpage renders frame losing) enables webpage Distributed Rendering Environment mechanism if necessary, fully sends out Waved the advantage of the less advantage of EMS memory occupation that software renders and Hardware Render local updating web page contents, reduce internal memory, Electricity expense, improves the standby time of terminal;Webpage Distributed Rendering Environment module is easy to be transplanted to new platform, reduces and develops into Originally, response speed and the fluency of web page operation are improve.
It should be noted that herein, term " including ", "comprising" or its any other variant are intended to non-row His property includes, so that a series of process, method, article or device including key elements not only includes those key elements, and And also include other key elements being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element for being limited by sentence "including a ...", it is not excluded that including being somebody's turn to do Also there is other identical element in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform by software to realize, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Such understanding is based on, technical scheme is substantially done to prior art in other words The part for going out contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), use so that a station terminal equipment including some instructions (can be mobile phone, computer, clothes Business device, air-conditioner, or network equipment etc.) execute method described in each embodiment of the invention.
The preferred embodiments of the present invention are these are only, the scope of the claims of the present invention is not thereby limited, every using this Equivalent structure or equivalent flow conversion that bright description and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of rendering intent of browsing device net page, it is characterised in that including step:After browser loading webpage, if meeting the One is pre-conditioned, then start distributed webpage and render mechanism;The distributed webpage renders mechanism to be included:
It is the first webpage frame or the second webpage frame that preset rules are pressed by webpage frame flag;
The first webpage frame is delivered to software rendering module to be rendered;And the second webpage frame is delivered to hardware wash with watercolours Dye module is rendered.
2. the rendering intent of browsing device net page according to claim 1, it is characterised in that described first pre-conditioned including:
Detect the webpage frame to be dropped when webpage is rendered;Or
The distributed webpage renders the switch of mechanism and is in opening.
3. the rendering intent of browsing device net page according to claim 2, it is characterised in that described detect when webpage is rendered The webpage frame be dropped including:
If have continuous two vertical synchronizing signals not complete to render a webpage frame, it is determined that the webpage frame is dropped.
4. the rendering intent of browsing device net page according to claim 1, it is characterised in that described by preset rules by webpage frame Being labeled as the first webpage frame or the second webpage frame includes:
The webpage frame is numbered, and is the first webpage frame, remaining webpage by the webpage frame flag that numbering is mK Frame flag is the second webpage frame;Wherein, m is 2,4,8 or 16;K=0,1,2..., n, n are positive integer.
5. the rendering intent of browsing device net page according to claim 1, it is characterised in that if described meet the first default bar Part, then start after distributed webpage renders mechanism, and methods described also includes:
If satisfaction second is pre-conditioned, the webpage Distributed Rendering Environment mechanism is exited;Described second is pre-conditioned including described Software rendering module and Hardware Render module complete to render;Or the distributed webpage renders the switch of mechanism in closing shape State.
6. a kind of mobile terminal, it is characterised in that include:
Start unit, loads after webpage for browser, if satisfaction first is pre-conditioned, starts distributed webpage and renders machine System;
Parsing indexing unit, is the first webpage frame or the second webpage frame for pressing preset rules by webpage frame flag;
Conveying rendering unit, is rendered for the first webpage frame is delivered to software rendering module;And by described second Webpage frame is delivered to Hardware Render module and is rendered.
7. mobile terminal according to claim 6, it is characterised in that described first pre-conditioned including:
Detect the webpage frame to be dropped when webpage is rendered;Or
The distributed webpage renders the switch of mechanism and is in opening.
8. mobile terminal according to claim 7, it is characterised in that if there is continuous two vertical synchronizing signals not complete wash with watercolours When catching a webpage frame, it is determined that the webpage frame is dropped.
9. mobile terminal according to claim 6, it is characterised in that the parsing indexing unit is additionally operable to the webpage frame It is numbered, and is the first webpage frame by the webpage frame flag that numbering is mK, remaining webpage frame flag is described second Webpage frame;Wherein, m is 2,4,8 or 16;K=0,1,2..., n, n are positive integer.
10. mobile terminal according to claim 6, it is characterised in that also include exiting unit, if presetting for meeting second Condition, then exit the webpage Distributed Rendering Environment mechanism;Described second is pre-conditioned including the software rendering module and hardware Rendering module completes to render;Or the switch that the distributed webpage renders mechanism is closed.
CN201610927178.XA 2016-10-31 2016-10-31 A kind of rendering intent of browsing device net page and mobile terminal Pending CN106503159A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610927178.XA CN106503159A (en) 2016-10-31 2016-10-31 A kind of rendering intent of browsing device net page and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610927178.XA CN106503159A (en) 2016-10-31 2016-10-31 A kind of rendering intent of browsing device net page and mobile terminal

Publications (1)

Publication Number Publication Date
CN106503159A true CN106503159A (en) 2017-03-15

Family

ID=58318711

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610927178.XA Pending CN106503159A (en) 2016-10-31 2016-10-31 A kind of rendering intent of browsing device net page and mobile terminal

Country Status (1)

Country Link
CN (1) CN106503159A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110546632A (en) * 2017-09-29 2019-12-06 谷歌有限责任公司 Scanning for bindings in web page markup

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902576A (en) * 2012-09-26 2013-01-30 北京奇虎科技有限公司 Method, server and system for rendering webpages
CN103310475A (en) * 2012-03-16 2013-09-18 腾讯科技(深圳)有限公司 Animation playing method and device
CN103559097A (en) * 2013-10-18 2014-02-05 北京奇虎科技有限公司 Inter-process communication method and device in browser and browser
CN104951287A (en) * 2014-03-26 2015-09-30 可牛网络技术(北京)有限公司 Method and device for generating webpage

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103310475A (en) * 2012-03-16 2013-09-18 腾讯科技(深圳)有限公司 Animation playing method and device
CN102902576A (en) * 2012-09-26 2013-01-30 北京奇虎科技有限公司 Method, server and system for rendering webpages
CN103559097A (en) * 2013-10-18 2014-02-05 北京奇虎科技有限公司 Inter-process communication method and device in browser and browser
CN104951287A (en) * 2014-03-26 2015-09-30 可牛网络技术(北京)有限公司 Method and device for generating webpage

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110546632A (en) * 2017-09-29 2019-12-06 谷歌有限责任公司 Scanning for bindings in web page markup
CN110546632B (en) * 2017-09-29 2023-08-15 谷歌有限责任公司 Scanning of bindings in web page tags

Similar Documents

Publication Publication Date Title
CN106572248B (en) Information display device, mobile terminal and method
KR101801188B1 (en) Mobile device and control method for the same
CN113360238A (en) Message processing method and device, electronic equipment and storage medium
KR20100135075A (en) Operating a mobile terminal
KR101674943B1 (en) Mobile terminal and method for controlling thereof
CN106941443A (en) One population historical record checks terminal and method
CN106506856A (en) A kind of screen-refresh control method and terminal
US20220377157A1 (en) Method for displaying data, and computer device
CN105898069A (en) Information reminding method and device
CN106021557A (en) Image loading method and device
CN106504050A (en) A kind of information comparison device and method
KR20120052584A (en) Mobile terminal and method for applying metadata thereof
CN107256165A (en) One kind application startup method, terminal and computer-readable recording medium
CN106528576A (en) Page search method and system, and terminal
CN106648324A (en) Hidden icon operating method, device and terminal
CN106527799A (en) Method and device for preventing wrong operations of keys
CN106447595A (en) Distributed image and graph rendering method and terminal
CN108829267A (en) A kind of vocabulary recommended method, equipment and computer can storage mediums
CN106445148A (en) Method and device for triggering terminal application
CN107046601A (en) A kind of mobile terminal and screen control method
CN105224647A (en) Image display method and device
CN106384033A (en) Screen off method and apparatus of terminal screen
CN106527685A (en) Control method and device for terminal application
CN106792079A (en) Video access device and method
KR101987463B1 (en) Mobile terminal and method for controlling of the same

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170315