CN107368291A - A kind of Web page rendering device, method and electronic equipment - Google Patents
A kind of Web page rendering device, method and electronic equipment Download PDFInfo
- Publication number
- CN107368291A CN107368291A CN201610320254.0A CN201610320254A CN107368291A CN 107368291 A CN107368291 A CN 107368291A CN 201610320254 A CN201610320254 A CN 201610320254A CN 107368291 A CN107368291 A CN 107368291A
- Authority
- CN
- China
- Prior art keywords
- content
- web page
- painting canvas
- data
- android system
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Abstract
The invention discloses a kind of Web page rendering device, method and electronic equipment, the device is applied to Android system, including:Webpage view standard interface, for receiving web page browsing request;View Drawing module, for responding the web page browsing request, create Android system and be supplied to the painting canvas of developer to substitute the privately owned painting canvas of Android system, and transmit the painting canvas;Rendering module, for when the painting canvas creates, starting the content-data after the process that renders is carried out page parsing and rendered using multi-process mode to webpage corresponding to web page browsing request, and transmit the content-data;Content model, for receiving the painting canvas and the content-data, and web page contents drafting is carried out to the content-data on the painting canvas.Pass through above-mentioned technical proposal, poor reliability when solving Android system web page browsing in the prior art, the technical problem for rendering interim card, the reliability of web page browsing is improved, reduces webpage and renders interim card.
Description
Technical field
The present invention relates to software technology field, more particularly to a kind of Web page rendering device, method and electronic equipment.
Background technology
With the continuous development of mobile Internet, browser plays more and more important role, as user
The master tool of online, the task that internet page is presented to user is carry, unknown generation is sought for us
Boundary provides great convenience.
In Android system, in order to realize the function of browsing pages, the common practice of prior art has two kinds:
A kind of is to use the WebView controls built in Android, the browsing pages embedded in the market major part app
The WebView that is all based on built in this system of functionality controls go what is realized, many browsers are also base
Done in the WebView controls built in Android.WebView controls built in Android only have one when realizing
Process, all pages render and operation is all located in a process, the technical problem of poor reliability be present,
One page collapse then triggers the collapse of whole browser, uses synchronously render in addition, meeting when operation
Interim card is caused to rendering.
It can be seen that in the prior art there is poor reliability in the web page browsing of Android system, the technology that renders interim card is asked
Topic.
The content of the invention
The embodiment of the present invention provides a kind of Web page rendering device, method and electronic equipment, for solving existing skill
The web page browsing poor reliability of Android system in art, the technical problem for rendering interim card, that improves web page browsing can
Interim card is rendered by property, reduction.
The embodiment of the present application provides a kind of Web page rendering device, applied to Android system, including:
Webpage view standard interface, for receiving web page browsing request;
View Drawing module, for responding the web page browsing request, create the Android system and be supplied to out
The painting canvas of originator substitutes the privately owned painting canvas of the Android system, and transmits the painting canvas;
Rendering module, for when the painting canvas creates, startup to render process, using multi-process mode to institute
Webpage corresponding to stating web page browsing request carries out page parsing and rendered, the content number after being parsed and being rendered
According to, and transmit the content-data;
Content model, for receiving the painting canvas and the content-data, and to described interior on the painting canvas
Hold data and carry out web page contents drafting.
Optionally, the webpage view standard interface is connected with the content model, the webpage view standard
Interface calls the content model, by the content model described when receiving web page browsing request
Web page contents drafting is carried out to the content-data on painting canvas.
Optionally, described device also includes:
Webpage view module, it is connected with the webpage view standard interface, for responding the webpage view mark
The calling of quasi- interface receives the painting canvas and the content-data, and calls the content model, by the picture
Cloth and the content-data are transferred to the content model.
The embodiment of the present application also provides a kind of Web page rendering method, applied to Android system, including:
Webpage view standard interface receives web page browsing request, and calls surface view to respond the web page browsing
Request;
Creating the Android system is supplied to the painting canvas of developer to substitute the privately owned painting canvas of the Android system, and
Startup renders process and carries out page parsing to webpage corresponding to web page browsing request using multi-process mode
With render, the content-data after being parsed and being rendered;
The painting canvas and the content-data are transferred to content model;
Web page contents drafting is carried out to the content-data on the painting canvas by the content model.
Optionally, it is described that the painting canvas and the content-data are transferred to content model, including:
The webpage view standard interface invoking web page views module, the picture is received by webpage view module
Cloth and the content-data;
The webpage view module calls the content model, and by the painting canvas and the content-data transmission
To the content model.
Optionally, methods described also includes:It is described that the painting canvas and the content-data are transferred to interior molar
Type, including:
The webpage view standard interface calls the content model, and by the painting canvas and the content-data
It is transferred to the content model.
The embodiment of the present application also provides a kind of mobile terminal, applied to Android system, includes memory, with
And one or more than one program, one of them or more than one program storage in memory, and
It is configured to by one that either more than one computing device is one or more than one program bag is containing using
In the instruction for carrying out following operation:
Webpage view standard interface receives web page browsing request, and calls surface view to respond the web page browsing
Request;
Creating the Android system is supplied to the painting canvas of developer to substitute the privately owned painting canvas of the Android system, and
Startup renders process and carries out page parsing to webpage corresponding to web page browsing request using multi-process mode
With render, the content-data after being parsed and being rendered;
The painting canvas and the content-data are transferred to content model;
Web page contents drafting is carried out to the content-data on the painting canvas by the content model.
Said one or multiple technical schemes in the embodiment of the present application, at least have the following technical effect that:
The embodiment of the present application provides a kind of Web page rendering device and includes webpage view standard interface, View Drawing mould
Block, rendering module and content model, web page browsing is received by webpage view standard interface and asked, improves net
The durability of page drawing apparatus;Web page browsing request is responded by View Drawing module Android system offer is provided
Painting canvas to developer substitutes the privately owned painting canvas of Android system and transmitted, and is painted so as to depart from the bottom of Android system
System avoids being handled using Android one process, while renders process by rendering module startup and use multi-process
Mode carries out page parsing and the content-data after being rendered and transmission, is received by content model and newly created
The painting canvas and rendering module built obtain content-data, and web page contents drafting is carried out to content-data on painting canvas,
Realize multi-process to render and handle, avoid the whole browser collapse caused by collapsing of the single page, and pass through
Multi-process render realize it is asynchronous render, render and operate processing separate, solve Android system in the prior art
Web page browsing poor reliability, render the technical problem of interim card, improve the reliability of web page browsing, reduce
Render interim card.
Brief description of the drawings
Fig. 1 is a kind of structural representation for Web page rendering device that the embodiment of the present application provides;
Fig. 2 is the structural representation for another Web page rendering device that the embodiment of the present application provides;
Fig. 3 is a kind of schematic flow sheet for Web page rendering method that the embodiment of the present application provides;
Fig. 4 is a kind of schematic device for being used to realize Web page rendering method that the embodiment of the present application provides;
Fig. 5 is a kind of structural representation for server that the embodiment of the present application passes through.
Embodiment
In the technical scheme that the embodiment of the present application provides, establish and painted comprising webpage view standard interface, view
The device of molding block, rendering module and content model, Web page rendering is increased by webpage view standard interface
The durability of device, new painting canvas reduction is created by View Drawing module and renders interim card, by rendering mould
Block and content model come realize multi-process loading and render so realize it is asynchronous render, to solve in the prior art
The web page browsing poor reliability of Android system, the technical problem for rendering interim card, the reliability of web page browsing is improved,
Rendering interim card and rendering browser caused by with page parsing etc. in interaction is reduced integrally to collapse.
Below in conjunction with the accompanying drawings to the main realization principle of the embodiment of the present application technical scheme, embodiment and
Beneficial effect that should be able to reach is explained in detail for it.
Embodiment
Fig. 1 is refer to, the embodiment of the present application provides a kind of Web page rendering device, should applied to Android system
Device includes:
Webpage view standard interface 11, for receiving web page browsing request;
View Drawing module 12, for responding the web page browsing request, create Android system and be supplied to exploitation
The painting canvas of person substitutes the privately owned painting canvas of Android system, and transmits the painting canvas;
Rendering module 13, for when the painting canvas creates, startup to render process, using multi-process mode pair
Webpage corresponding to the web page browsing request carries out page parsing and rendered, the content after being parsed and being rendered
Data, and transmit the content-data;
Content model 14, for receiving the painting canvas and the content-data, and to described on the painting canvas
Content-data carries out web page contents drafting.
For Android Android systems, Android officials can be in each version updating API (Application
Programming Interface, application programming interface) the corresponding interface of Standard compilation, subsequent development person
Corresponding interface can be obtained, subsequent development is carried out according to these standard interfaces.There is provided to provide the application
Web page rendering device durability, the embodiment of the present application obtains and employs the net of Android operation system
Page view standard interface 11 i.e. WebView API.Web page browsing is received by webpage view standard interface 11
Ask and subsequent treatment is carried out by View Drawing module 12, rendering module 13 and content model 14.
Surface view SurfaceView is included in View Drawing module 12.SurfaceView is new at one
Picture is repainted in the individual threads risen, without the main line in UI (User Interface, user interface)
Picture is updated in journey, can avoid rendering interim card problem caused by page operation.View Drawing module 12 with
Webpage view standard interface 11 is connected, and it is new that webpage view standard interface 11 can call SurfaceView to create
Painting canvas.Therefore, SurfaceView is called when webpage view standard interface 11 receives web page browsing request,
Web page browsing request can be responded by View Drawing module 12, painting canvas is drawn by surface view SurfaceView
And transmit, that is, create Android system and be supplied to the painting canvas of developer to substitute the privately owned painting canvas of Android system.
Rendering module 13 can be the rendering engines such as WebKit, Blink, for drawing painting canvas in surface view
When, startup renders process and carries out page parsing using multi-process mode and render, after being parsed and being rendered
Content-data simultaneously transmits.Rendered by using multi-process mode, realize it is asynchronous render, will render and grasp
Separated as event handling, avoid rendering interim card.
Content model 14 is Content model, is a chrome comprising modules, there is provided function of browse
Content draws function.Therefore, Content model can be obtained from chrome, pass through content model 14
The content-data that the painting canvas and rendering module 13 of receiving surface View Drawing obtain, and to content on painting canvas
Data carry out web page contents drafting.
As shown in figure 1, the embodiment of the present application provide a kind of Web page rendering device in each several part annexation
For:Webpage view standard interface 11 respectively with View Drawing module 12, rendering module 13, content model 14
It is connected;View Drawing module 12 and rendering module 13 are connected with content model 14.Pass through the Web page rendering
Device draw webpage when, webpage view standard interface 11 can directly invoke surface view SurfaceView,
Rendering module 13 such as Blink and content model 14;Painting canvas and will be drawn is drawn by SurfaceView
Painting canvas passes to content model 14, and rendering module 13 is downloaded the content of the corresponding webpage of web page browsing request and led to
The content-data after multi-process mode is parsed and rendered is crossed, and the content-data of acquisition is passed
Pass content model 14;Content drafting is carried out to content technologies on painting canvas by content model 14.
Fig. 2 is refer to, in specific implementation process, a kind of Web page rendering device of the embodiment of the present application offer
It is android_webview that webpage view module 15, which can also be included, and android_webview can be with webpage
View standard interface 11 is WebView API matching phases, can effectively reduce development amount.Webpage view
Module 15 can be used for the content-data that the painting canvas for receiving SurfaceView draftings and rendering module 13 obtain,
And content model 14 is called, painting canvas and content-data are transferred to content model 14.Content model 14 is entering
Row content can also generate the progress message data for representing drafting progress during drawing, and by progress message
Data transfer is to webpage view module 15.And then webpage view module 15 is additionally operable to receive content model 14
The message data of transmission, Web page rendering progress is carried out according to the message data received and shown.Certainly, webpage
View model android_webview can be also used for clearing up cookie, cleaning caching, sectional drawing etc..
The Web page rendering device that the embodiment of the present application provides provides the standard api interface based on Android system,
Browser can be supplied to use, third party can also be supplied to use.The net that the embodiment of the present application is provided
Page drawing apparatus connection debugging enironment, has multiple processes, the wash with watercolours of the page after the WebView startups of the application
Dye is located in different processes respectively, one of host process, such as sogou.mobile.explore (process names
Do not force, process name is only the process title illustrated, and third party can select the process title of oneself), it is more
Individual rendering with suffix and GPU (Graphic Processing Unit, graphics processor) process, such as
sogou.mobile.explore:Sandboxed_process0, the life cycle of each process is different, mutually
The life cycle of other side is not interfered with mutually, therefore a process is collapsed, other process is unaffected,
Improve reliability.Render and operate simultaneously in different operation flows, therefore will not cause to operate page
The stopping of the interim card of the page and animation during face.
A kind of Web page rendering device provided based on the embodiment of the present application, the application implement also to provide a kind of webpage
Method for drafting, applied to Android system, Fig. 3 is refer to, this method includes:
S301:Webpage view standard interface 11 receives web page browsing request, and calls surface view to respond institute
State web page browsing request;
S302:Creating Android system is supplied to the painting canvas of developer to substitute the privately owned painting canvas of Android system, and opens
The dynamic process that renders carries out page parsing using multi-process mode and rendered, the content number after being parsed and being rendered
According to;
S303:The painting canvas and the content-data are transferred to content model 14;
S304:Web page contents are carried out to the content-data on the painting canvas by the content model 14
Draw.
In specific implementation process, user, can be by clicking on corresponding webpage when needing to browse a certain webpage
URL (Uniform Resoure Locator, URL) come trigger electronic equipment production simultaneously
Send web page browsing request.S301 receives web page browsing by webpage view standard interface WebView API
Request, and surface view SurfaceView is called to respond web page browsing request, and then perform S302
Creating Android system is supplied to the painting canvas of developer to substitute the privately owned painting canvas of Android system.Table can specifically be passed through
Face view SurfaceView draws new painting canvas, to depart from the drafting of Android bottom.
In the Booting sequence of Web page rendering device, painting canvas is drawn starting surface view SurfaceView
Meanwhile start the process that renders and page parsing is carried out to webpage corresponding to web page browsing request and rendered.Specifically,
Can be handled in host process url request, download webpage, web data is passed into the process of rendering, render into
Journey carries out page parsing based on the web data for downloading acquisition and rendered, the content number after being parsed and being rendered
According to.
Painting canvas and content-data are transferred to content model 14 by S303.Wherein, surface view surfaceview
Painting canvas can be transferred directly to content model Content model after having drawn painting canvas, can also be by painting canvas through net
Page views module android_webview is transferred to content model Content model.Likewise, render mould
Content-data directly can also be transferred to content model 14 by type after the content-data of acquisition, will can also be drawn
Cloth is transferred to content model 14 through webpage view module android_webview.
, can be respectively by surface view when webpage view standard interface 11 directly invokes content model 14
Painting canvas and content-data are directly transferred to content model 14 with rending model.When webpage view standard interface
11 invoking web page view models, when calling content model 14 by webpage view model, surface view and wash with watercolours
Painting canvas and content-data can be transferred to webpage view model by dye model respectively, be called in webpage view model
During content model 14, painting canvas and content-data are transferred to content model 14.
S304 carries out web page contents drafting on painting canvas by content model Content model to content-data.
Substantial amounts of interface is also included in the content model Content model that Chrome is provided, and different manufacturers can be with
Gone to realize some interfaces according to the demand of oneself, so that upper strata is called.For example, the embodiment of the present application can be with
It is transmitted to webpage view module android_webview by the interface of content model 14 and carries out content drafting
During progress message data, by webpage view according to the progress message data carry out Web page rendering enter
Degree display.
By the above method, web page browsing request is received by webpage view standard interface, improves Web page rendering dress
The durability put;Android system is created by the response web page browsing request of View Drawing module and is supplied to developer's
Painting canvas substitutes the privately owned painting canvas of Android system and transmitted, and avoids using so as to depart from the drafting of the bottom of Android system
Android one process is handled, while is rendered process by rendering module startup and carried out the page using multi-process mode
Content-data and transmission after parsing and being rendered, the painting canvas and wash with watercolours that newly create are received by content model
Contaminate module and obtain content-data, web page contents drafting is carried out to content-data on painting canvas, realizes multi-process
Render and handle, avoid the whole browser collapse caused by collapsing of the single page, and reality is rendered by multi-process
It is now asynchronous to render, render and operate processing and separate, the web page browsing for solving Android system in the prior art can
By property it is poor, render the technical problem of interim card, improve web page browsing reliability, reduce render interim card.
Fig. 4 is refer to, is a kind of for realizing Web page rendering method according to an exemplary embodiment
The block diagram of device.For example, device 800 can be mobile phone, and computer, digital broadcast terminal, message
The bases such as transceiver, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant
In the equipment of Android system.
Reference picture 4, device 800 can include following one or more assemblies:Processing component 802, storage
Device 804, power supply module 806, multimedia groupware 808, audio-frequency assembly 810, input/output (I/O)
Interface 812, sensor cluster 814, and communication component 816.
The integrated operation of the usual control device 800 of processing component 802, such as with display, call, count
According to communication, camera operation and record operate associated operation.Treatment element 802 can include one or more
Individual processor 820 carrys out execute instruction, to complete all or part of step of above-mentioned method.In addition, processing
Component 802 can include one or more modules, the interaction being easy between processing component 802 and other assemblies.
For example, processing component 802 can include multi-media module, to facilitate multimedia groupware 808 and processing component
Interaction between 802.
Memory 804 is configured as storing various types of data to support the operation in equipment 800.These
The example of data includes the instruction of any application program or method for being operated on device 800, contact person
Data, telephone book data, message, picture, video etc..Memory 804 can be by any kind of volatile
Property or non-volatile memory device or combinations thereof realize, such as static RAM (SRAM),
Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM),
Programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash memory,
Disk or CD.
Electric power assembly 806 provides electric power for the various assemblies of device 800.Electric power assembly 806 can include electricity
Management system, one or more power supplys, and other are for device 800 with generating, managing and distributing electric power phase
The component of association.
Multimedia groupware 808 is included in the screen of one output interface of offer between described device 800 and user
Curtain.In certain embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).
If screen includes touch panel, screen may be implemented as touch-screen, be believed with receiving the input from user
Number.Touch panel includes one or more touch sensors with the hand on sensing touch, slip and touch panel
Gesture.The touch sensor can the not only border of sensing touch or sliding action, but also detect with it is described
Touch or the duration and pressure of slide correlation.In certain embodiments, multimedia groupware 808 wraps
Include a front camera and/or rear camera.When equipment 800 is in operator scheme, such as screening-mode or
During video mode, front camera and/or rear camera can receive outside multi-medium data.Before each
Putting camera and rear camera can be a fixed optical lens system or become with focal length and optics
Burnt ability.
Audio-frequency assembly 810 is configured as output and/or input audio signal.For example, audio-frequency assembly 810 includes
One microphone (MIC), when device 800 is in operator scheme, such as call model, logging mode and language
During sound recognition mode, microphone is configured as receiving external audio signal.The audio signal received can be by
It is further stored in memory 804 or is sent via communication component 816.In certain embodiments, audio group
Part 810 also includes a loudspeaker, for exports audio signal.
I/O interfaces 812 provide interface between processing component 802 and peripheral interface module, and above-mentioned periphery connects
Mouth mold block can be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button,
Volume button, start button and locking press button.
Sensor cluster 814 includes one or more sensors, for providing various aspects for device 800
State estimation.For example, sensor cluster 814 can detect opening/closed mode of equipment 800, component
Relative positioning, such as the component be device 800 display and keypad, sensor cluster 814 also
It can be changed with the position of 800 1 components of detection means 800 or device, user deposits with what device 800 contacted
Or be not present, the orientation of device 800 or acceleration/deceleration and the temperature change of device 800.Sensor cluster
814 can include proximity transducer, be configured to detect object nearby in no any physical contact
Presence.Sensor cluster 814 can also include optical sensor, such as CMOS or ccd image sensor,
For being used in imaging applications.In certain embodiments, the sensor cluster 814 can also include accelerating
Spend sensor, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the logical of wired or wireless way between device 800 and other equipment
Letter.Device 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or they
Combination.In one exemplary embodiment, communication component 816 is received from outside wide via broadcast channel
The broadcast singal or broadcast related information of broadcast management system.In one exemplary embodiment, the communication unit
Part 816 also includes near-field communication (NFC) module, to promote junction service.For example, in NFC module
Radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) can be based on
Technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can by one or more application specific integrated circuits (ASIC),
Digital signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD),
Field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are real
It is existing, for performing the above method.
In the exemplary embodiment, a kind of non-transitory computer-readable storage medium including instructing is additionally provided
Matter, such as the memory 804 including instruction, above-mentioned instruction can be performed by the processor 820 of device 800 with
Complete the above method.For example, the non-transitorycomputer readable storage medium can be ROM, it is random
Access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by mobile terminal
Computing device when so that mobile terminal is able to carry out a kind of Web page rendering method, and methods described includes:
Webpage view standard interface receives web page browsing request, and calls surface view to respond the web page browsing request;
Creating the Android system is supplied to the painting canvas of developer to substitute the privately owned painting canvas of the Android system, and starts
Render process and page parsing and wash with watercolours are carried out to webpage corresponding to web page browsing request using multi-process mode
Dye, the content-data after being parsed and being rendered;The painting canvas and the content-data are transferred to interior molar
Type;Web page contents drafting is carried out to the content-data on the painting canvas by the content model.
Fig. 5 is the structural representation of server in the embodiment of the present invention.The server 1900 can because configuration or
Performance is different and produces bigger difference, can include one or more central processing units (central
Processing units, CPU) 1922 (for example, one or more processors) and memory 1932,
One or more storage application programs 1942 or data 1944 storage medium 1930 (such as one or
More than one mass memory unit).Wherein, memory 1932 and storage medium 1930 can be of short duration deposit
Storage or persistently storage.One or more module (figures can be included by being stored in the program of storage medium 1930
Show and do not mark), each module can include operating the series of instructions in server.Further,
Central processing unit 1922 could be arranged to communicate with storage medium 1930, performs and deposits on server 1900
Series of instructions operation in storage media 1930.
Server 1900 can also include one or more power supplys 1926, and one or more are wired
Or radio network interface 1950, one or more input/output interfaces 1958, one or more
Keyboard 1956, and/or, one or more operating systems 1941, such as Windows ServerTM,
Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
Those skilled in the art will readily occur to this hair after considering specification and putting into practice invention disclosed herein
Bright other embodiments.The application is intended to any modification, purposes or the adaptations of the present invention,
These modifications, purposes or adaptations follow the general principle of the present invention and are not disclosed including the disclosure
Common knowledge or conventional techniques in the art.Description and embodiments are considered only as exemplary
, true scope and spirit of the invention are pointed out by following claim.
It should be appreciated that the invention is not limited in the accurate knot for being described above and being shown in the drawings
Structure, and various modifications and changes can be being carried out without departing from the scope.The scope of the present invention is only by appended
Claim limits
Presently preferred embodiments of the present invention is the foregoing is only, is not intended to limit the invention, it is all the present invention's
Within spirit and principle, any modification, equivalent substitution and improvements made etc., it should be included in the present invention's
Within protection domain.
Claims (7)
- A kind of 1. Web page rendering device, applied to Android system, it is characterised in that including:Webpage view standard interface, for receiving web page browsing request;View Drawing module, for responding the web page browsing request, create the Android system and be supplied to the painting canvas of developer to substitute the privately owned painting canvas of the Android system, and transmit the painting canvas;Rendering module, for when the painting canvas creates, starting and rendering process, page parsing is carried out to webpage corresponding to web page browsing request using multi-process mode and rendered, the content-data after being parsed and being rendered, and transmits the content-data;Content model, for receiving the painting canvas and the content-data, and web page contents drafting is carried out to the content-data on the painting canvas.
- 2. device as claimed in claim 1, it is characterized in that, the webpage view standard interface is connected with the content model, the webpage view standard interface is when receiving web page browsing request, the content model is called, web page contents drafting is carried out to the content-data on the painting canvas by the content model.
- 3. device as claimed in claim 1, it is characterised in that described device also includes:Webpage view module, it is connected with the webpage view standard interface, calling for responding the webpage view standard interface receives the painting canvas and the content-data, and calls the content model, and the painting canvas and the content-data are transferred into the content model.
- A kind of 4. Web page rendering method, applied to Android system, it is characterised in that including:Webpage view standard interface receives web page browsing request, and calls surface view to respond the web page browsing request;Creating the Android system is supplied to the painting canvas of developer to substitute the privately owned painting canvas of the Android system, and start the process that renders and page parsing is carried out to webpage corresponding to web page browsing request using multi-process mode and rendered, the content-data after being parsed and being rendered;The painting canvas and the content-data are transferred to content model;Web page contents drafting is carried out to the content-data on the painting canvas by the content model.
- 5. method as claimed in claim 4, it is characterised in that it is described that the painting canvas and the content-data are transferred to content model, including:The webpage view standard interface invoking web page views module, the painting canvas and the content-data are received by webpage view module;The webpage view module calls the content model, and the painting canvas and the content-data are passed into the content model.
- 6. method as claimed in claim 4, it is characterised in that methods described also includes:It is described that the painting canvas and the content-data are transferred to content model, including:The webpage view standard interface calls the content model, and the painting canvas and the content-data are transferred into the content model.
- A kind of 7. mobile terminal, applied to Android system, it is characterized in that, include memory, and one or more than one program, one of them or more than one program storage is configured to by one that either more than one computing device is one or more than one program bag contains the instruction for being used for being operated below in memory:Webpage view standard interface receives web page browsing request, and calls surface view to respond the web page browsing request;Creating the Android system is supplied to the painting canvas of developer to substitute the privately owned painting canvas of the Android system, and start the process that renders and page parsing is carried out to webpage corresponding to web page browsing request using multi-process mode and rendered, the content-data after being parsed and being rendered;The painting canvas and the content-data are transferred to content model;Web page contents drafting is carried out to the content-data on the painting canvas by the content model.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610320254.0A CN107368291A (en) | 2016-05-13 | 2016-05-13 | A kind of Web page rendering device, method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610320254.0A CN107368291A (en) | 2016-05-13 | 2016-05-13 | A kind of Web page rendering device, method and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107368291A true CN107368291A (en) | 2017-11-21 |
Family
ID=60304513
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610320254.0A Pending CN107368291A (en) | 2016-05-13 | 2016-05-13 | A kind of Web page rendering device, method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107368291A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109614565A (en) * | 2018-04-04 | 2019-04-12 | 北京京东金融科技控股有限公司 | Webpage generating method and device |
CN109918598A (en) * | 2019-03-07 | 2019-06-21 | 四川长虹电器股份有限公司 | A kind of web page rendering method based on Android TV browser |
CN110083348A (en) * | 2019-04-04 | 2019-08-02 | 广州视源电子科技股份有限公司 | Drawing practice, device, equipment and storage medium based on multi-process browser |
CN112684962A (en) * | 2021-01-19 | 2021-04-20 | 广州视源电子科技股份有限公司 | Canvas extension method, device, storage medium and terminal |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103324684A (en) * | 2013-05-31 | 2013-09-25 | 贝壳网际(北京)安全技术有限公司 | Control method and device for browser kernel in mobile terminal and mobile terminal |
CN103455571A (en) * | 2013-08-19 | 2013-12-18 | 小米科技有限责任公司 | Method and device for displaying picture in webpage, and terminal |
CN103713891A (en) * | 2012-10-09 | 2014-04-09 | 阿里巴巴集团控股有限公司 | Method and device for graphic rendering on mobile device |
CN104516885A (en) * | 2013-09-26 | 2015-04-15 | 腾讯科技(深圳)有限公司 | Implementation method and device of browse program double-kernel assembly |
CN102654885B (en) * | 2012-04-28 | 2015-07-15 | 北京华胜天成科技股份有限公司 | Mobile terminal webpage adaptation system and method |
-
2016
- 2016-05-13 CN CN201610320254.0A patent/CN107368291A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102654885B (en) * | 2012-04-28 | 2015-07-15 | 北京华胜天成科技股份有限公司 | Mobile terminal webpage adaptation system and method |
CN103713891A (en) * | 2012-10-09 | 2014-04-09 | 阿里巴巴集团控股有限公司 | Method and device for graphic rendering on mobile device |
CN103324684A (en) * | 2013-05-31 | 2013-09-25 | 贝壳网际(北京)安全技术有限公司 | Control method and device for browser kernel in mobile terminal and mobile terminal |
CN103455571A (en) * | 2013-08-19 | 2013-12-18 | 小米科技有限责任公司 | Method and device for displaying picture in webpage, and terminal |
CN104516885A (en) * | 2013-09-26 | 2015-04-15 | 腾讯科技(深圳)有限公司 | Implementation method and device of browse program double-kernel assembly |
Non-Patent Citations (1)
Title |
---|
刘剑卓: "《Android手机游戏开发从入门到精通》", 31 May 2012, 中国铁道出版社 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109614565A (en) * | 2018-04-04 | 2019-04-12 | 北京京东金融科技控股有限公司 | Webpage generating method and device |
CN109614565B (en) * | 2018-04-04 | 2020-06-23 | 京东数字科技控股有限公司 | Webpage generation method and device |
CN109918598A (en) * | 2019-03-07 | 2019-06-21 | 四川长虹电器股份有限公司 | A kind of web page rendering method based on Android TV browser |
CN110083348A (en) * | 2019-04-04 | 2019-08-02 | 广州视源电子科技股份有限公司 | Drawing practice, device, equipment and storage medium based on multi-process browser |
CN110083348B (en) * | 2019-04-04 | 2023-09-26 | 广州视源电子科技股份有限公司 | Drawing method, device, equipment and storage medium based on multi-process browser |
CN112684962A (en) * | 2021-01-19 | 2021-04-20 | 广州视源电子科技股份有限公司 | Canvas extension method, device, storage medium and terminal |
CN112684962B (en) * | 2021-01-19 | 2022-03-29 | 广州视源电子科技股份有限公司 | Canvas extension method, device, storage medium and terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106933526B (en) | A kind of method, device and mobile terminal of dynamic regulation screen refresh rate | |
US9013426B2 (en) | Providing a sense of touch in a mobile device using vibration | |
CN107688370A (en) | For controlling display, storage medium and the method for electronic equipment | |
CN107329743A (en) | Methods of exhibiting, device and the storage medium of five application page | |
CN108476257A (en) | Electronic equipment and the method for managing its application program | |
CN101960485A (en) | Multi-context graphics processing | |
CN110933511B (en) | Video sharing method, electronic device and medium | |
TW201243716A (en) | Customized launching of applications | |
WO2015096741A1 (en) | Interactive method and apparatus based on web picture | |
CN108605100A (en) | Method for handling image and the electronic device for supporting this method | |
CN107368291A (en) | A kind of Web page rendering device, method and electronic equipment | |
CN103927081A (en) | Method and device for processing notification events | |
CN106294609A (en) | page loading method and device | |
CN109429102A (en) | For showing the electronic device and its operating method of application | |
CN108351688A (en) | The grasping of combination and mobility sensing | |
JP2018523202A (en) | Information acquisition method and device | |
WO2018107941A1 (en) | Multi-screen linking method and system utilized in ar scenario | |
CN110866038A (en) | Information recommendation method and terminal equipment | |
CN105677314B (en) | Processing method, device and the equipment of rolling event | |
CN108463799A (en) | The flexible display and its operating method of electronic equipment | |
CN107422977A (en) | Trigger action processing method, device and computer-readable recording medium | |
CN108900407B (en) | Method and device for managing session record and storage medium | |
CN107526591A (en) | Switch the method and apparatus of direct broadcasting room type | |
WO2022089272A1 (en) | Image processing method and apparatus | |
WO2017186177A1 (en) | Resource numerical value transfer request generating method, device and system, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171121 |
|
RJ01 | Rejection of invention patent application after publication |