CN106502662B - Multizone pattern drawing method and device for intelligent operating system - Google Patents

Multizone pattern drawing method and device for intelligent operating system Download PDF

Info

Publication number
CN106502662B
CN106502662B CN201610902201.XA CN201610902201A CN106502662B CN 106502662 B CN106502662 B CN 106502662B CN 201610902201 A CN201610902201 A CN 201610902201A CN 106502662 B CN106502662 B CN 106502662B
Authority
CN
China
Prior art keywords
rendering
thread
multizone
operating system
tasks
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610902201.XA
Other languages
Chinese (zh)
Other versions
CN106502662A (en
Inventor
张喜
雷宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Rubu Technology Co.,Ltd.
Original Assignee
Beijing Rubo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Rubo Technology Co Ltd filed Critical Beijing Rubo Technology Co Ltd
Priority to CN201610902201.XA priority Critical patent/CN106502662B/en
Publication of CN106502662A publication Critical patent/CN106502662A/en
Application granted granted Critical
Publication of CN106502662B publication Critical patent/CN106502662B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Human Computer Interaction (AREA)
  • Image Generation (AREA)

Abstract

The invention proposes a kind of multizone pattern drawing methods and device for intelligent operating system.Method includes the following steps: multiple rendering threads that the end Java creates and multiple rendering engine examples that the end Native creates are bound;One or more of figure rendering tasks are submitted to the end Native based on corresponding rendering thread;The rendering engine example with rendering thread binding corresponding to one or more of figure rendering tasks is obtained at the end Native to carry out figure rendering;And in screen area corresponding to the rendering engine example that the rendering result of one or more of figure rendering tasks is respectively displayed on and is rendered.The present invention realizes in a process while managing multiple Open GL context environmentals, so that reaching to carry out the technical effect of graphic plotting in multiple regions simultaneously, advantage independent with thread, not limiting memory and multizone while rendering.

Description

Multizone pattern drawing method and device for intelligent operating system
Technical field
The present invention relates to graphic plotting fields, more particularly, to a kind of multizone figure for intelligent operating system Method for drafting and device.
Background technique
Generally, intelligent operating system provides packaged view framework to realize the function such as graphic plotting, transformation, animation Energy.The most apparent defect of this mode is that the rendering of figure is operate in service logic thread, for there is frequent figure brush The scene of new demand can cause stress service logic thread, the Caton refreshed so as to cause figure.On the other hand, this side Under formula, for using the scene of a large amount of pictures, the load of picture will consume a large amount of application layer memory.But for individually answering For, it distribute memory be it is very limited, this scene easily causes the collapse of application.
Usually realize Open GL (Open Graphics Library) as what is rendered to figure in intelligent operating system It supports.This shape library is that direct operation video card is rendered, and on the one hand this library is that primary mode realizes (C, C++), because Occupied memory and it is not belonging to application layer memory when this rendering, so not having the limitation of Memory Allocation;On the other hand, it uses The rendering that this library carries out can be completed in independent thread.
Inventors have found that at present in the solution of the graphics engine of encapsulation Open GL, such as Cocos2d, only allow same One piece of region is rendered in Shi Yi process, this significantly limits usage scenario.Therefore, it is necessary to develop a kind of while shielding The muti-piece region of curtain carries out the method and device of figure rendering.
The information for being disclosed in background of invention part is merely intended to deepen the reason to general background technique of the invention Solution, and it is known to those skilled in the art existing to be not construed as recognizing or imply that the information is constituted in any form Technology.
Summary of the invention
The object of the present invention is to provide a kind of high performance multizone pattern drawing method for intelligent operating system and Device carries out figure rendering in the muti-piece region of screen simultaneously to realize.
According to an aspect of the invention, it is proposed that a kind of multizone pattern drawing method for intelligent operating system.It should Method may comprise steps of: multiple rendering threads that the end Java is created and multiple rendering engines of the end Native creation are real Example is bound;One or more figure rendering tasks that Java termination receives are submitted to respectively in different rendering threads, And one or more of figure rendering tasks are submitted to the end Native based on corresponding rendering thread;At the end Native The rendering engine example with rendering thread binding corresponding to one or more of figure rendering tasks is obtained to carry out figure Rendering;And the rendering engine that the rendering result of one or more of figure rendering tasks is respectively displayed on and is rendered In screen area corresponding to example.
Preferably, it is carried out and the multiple rendering by the way that the multiple rendering engine example is placed in thread private data The binding of thread.
Preferably, Natvie end group obtains and the wash with watercolours respectively in the corresponding thread private data of the figure rendering task Contaminate the rendering engine example of thread binding.
Preferably, the rendering engine carries out figure rendering by Open GL order.
Preferably, the method further includes: figure rendering task completion after, the end Native by rendering state return It is adjusted to the end Java.
According to another aspect of the invention, it is proposed that a kind of multizone graphics rendering device for intelligent operating system. The apparatus may include: multiple rendering engine examples of multiple rendering threads and the creation of the end Native for creating the end Java The unit bound;One or more figure rendering tasks for receiving Java termination are submitted to different renderings respectively In thread, and one or more of figure rendering tasks are submitted to the list at the end Native based on corresponding rendering thread Member;Draw for being obtained at the end Native with the rendering of rendering thread binding corresponding to one or more of figure rendering tasks Example is held up to carry out the unit of figure rendering;And for the rendering result of one or more of figure rendering tasks to be distinguished Unit in screen area corresponding to the rendering engine example for being shown in and being rendered.
Preferably, it is carried out and the multiple rendering by the way that the multiple rendering engine example is placed in thread private data The binding of thread.
Preferably, Natvie end group obtains and the wash with watercolours respectively in the corresponding thread private data of the figure rendering task Contaminate the rendering engine example of thread binding.
Preferably, the rendering engine carries out figure rendering by Open GL order.
Preferably, described device further comprises: for render the end Native will after the completion of figure rendering task State callbacks to the end Java unit.
The present invention is multi-thread in conjunction with java section by the singleton design pattern of the part Native and thread private data TSD The mode of journey, realization manage multiple Open GL context environmentals simultaneously in a process, can be simultaneously multiple to reach The technical effect of region progress graphic plotting.Advantage independent with thread, not limiting memory and multizone while rendering.
Method of the invention has other characteristics and advantages, these characteristics and advantages from the attached drawing being incorporated herein and with Will be apparent in specific embodiment afterwards, or by the attached drawing and subsequent specific embodiment being incorporated herein into Row statement, these the drawings and specific embodiments in detail are used together to explain specific principle of the invention.
Detailed description of the invention
Exemplary embodiment of the present is described in more detail in conjunction with the accompanying drawings, of the invention is above-mentioned and other Purpose, feature and advantage will be apparent, wherein in exemplary embodiments of the present invention, identical reference label is usual Represent same parts.
Fig. 1 is the process according to the multizone drawing practice for intelligent operating system of one embodiment of the present of invention Figure.
Fig. 2 is the screen for including two graphic plotting regions, wherein the picture left above p1, bottom-right graph p2.
Specific embodiment
The present invention will be described in more detail below with reference to accompanying drawings.Although showing the preferred embodiment of the present invention in attached drawing, However, it is to be appreciated that may be realized in various forms the present invention and should not be limited by the embodiments set forth herein.On the contrary, providing These embodiments are and the scope of the present disclosure completely can be communicated to ability to keep the disclosure more thorough and complete The technical staff in domain.
Fig. 1 shows the multizone graphic plotting side according to an embodiment of the invention for intelligent operating system Method.
The intelligent operating system environment of the present embodiment is Android, supports Open GL.Realize that step can generally divide For two parts, difference java section and the part Native.Wherein, java section is realized by Java language program, is run on Android virtual machine;The part Native passes through C/C++ language and realizes, runs on local server.
There are two main features for Open GL tool:
1, it is the software interface unrelated with hardware, can be transplanted between different platforms;
2, it can work in client/server system, that is, there is network function.
The multizone pattern drawing method for intelligent operating system of the present embodiment may comprise steps of:
1) multiple rendering threads that the end Java creates and multiple rendering engine examples that the end Native creates are bound.
Multiple rendering threads can be created simultaneously at the end Java, correspondingly, provide multiple rendering thread rings for the end Native Border, and generate multiple context environmentals.Multiple render view examples are created at the end Java.
Render view is substantially the controller for the rendering at the end the Java control end Native.Render view class can be with Including surface view (GLSurfaceView) example and texture view (GLTexureView) example, they are mentioned for the end Native For rendering thread context.
The end Java generates the context environmental for rendering figure using the library Open GL by Open GL bank interface.
Open GL context environmental, i.e. GLContext, for storing all status informations of Open GL drawing.It is real The default frame buffer (framebuffer) that rendering order is drawn is represented on border, GLContext is destroyed, and Open GL is not also multiple In the presence of.
Multiple threads are created, that is, generate multiple context environmentals for Open GL, and a thread can only possess one Context, correspondingly, a context environmental can only belong to a thread, cannot be shared simultaneously by different threads.
At the end Java, multiple rendering threads of creation are independently of the thread except main thread, this is to guarantee rendering It can not be influenced by service logic thread.
At the end Native, rendering engine example is created based on multiple rendering thread contexts that the end Java is created.Meanwhile it is logical Cross the rendering engine example initialization Open GL rendering contexts.
Initializing Open GL rendering contexts is mainly the important attribute that Open GL window is arranged, including pixel format eases up Punch die formula, color digit and depth digit etc..
Open GL provides two kinds of color modes: RGB (RGBA) mode and color index mode.Own under RGBA mode The definition of color is indicated with tri- values of RGB, sometimes also plus the Alpha value for indicating transparency.It is every under color index mode The color of a pixel is indicated with some color index value in color index table.
Open GL can provide Double buffer and carry out drawing image.I.e. simultaneously, backstage caches the image in platform caching before display Draw the 2nd width image.After completing from the background, the image in the caching of backstage is just shown.Foreground caching original at this time Start to draw the 3rd width image, loop back and forth like this, to increase the output speed of image.
Correspond to one piece of region of screen by each rendering engine example that the end Native is created.
Rendering engine example is actually accomplished all figure rendering work, i.e., the initialization of completion Open GL rendering contexts, Texture generation, changes in coordinates, color setting, figure rendering etc..
The rendering engine example initializes Open GL rendering contexts by Open GL bank interface.
Multiple rendering threads that the end Java creates and multiple rendering engine examples that the end Native creates are bound.? In one illustrative embodiments, by by the multiple rendering engine example merging thread private data (TSD) come carry out with The binding of the multiple rendering thread.
It is well known that under multi-thread environment, due to data space be it is shared, global variable is also all threads It is common.One global variable, all threads can use it, change its value, therefore one of thread becomes the overall situation The modification of amount will affect the access of another thread.Thus it is necessary to provide the overall situations that thread is privately owned in application programming Variable uses the thread related data structures of address of variable of the same name and different.Surface seems it as global variable, and institute is wired Journey can use it, and its value individually stores in each thread.Such data structure is referred to as thread Private data.
Before distributing thread private data, need to create key (key) associated with thread private data, and be arranged The key value of thread private data.Although the key of thread private data TSD be between the multiple threads it is shared, for every A thread key value can be different.
At the end Native, rendering engine is externally singleton pattern, but when carrying out multizone graphic plotting, is actually needed Wanting it is many cases.The many cases mould based on thread is realized by singleton pattern combination thread private data technology in this example Formula, i.e. thread are different, and the example got by singleton pattern is also different, that is, the example got is corresponding with thread.
Specifically, multiple rendering threads can be created at the end Java, thread private data can be shared between multiple threads The key of TSD, that is to say, that the access right of thread private data is shared in multiple rendering cross-threads.At the end Native, each Rendering thread provided by rendering thread context in created rendering engine example respectively, by each rendering engine example merging with In the TSD of its relevant rendering thread.That is, the key value of the thread private data in each rendering thread indicates it Associated rendering engine.The binding for realizing rendering thread and rendering engine in this way, the management for rendering example are logical The rendering thread bound therewith is crossed to complete, and it is also only visible to the thread bound therewith to render example.
The advantages of this mode is that the end Native is designed according to the design pattern of singleton, is eliminated to more The management of a example.Traditional singleton design is current class externally only one example, is in general externally only connect by one Mouth provides the example.And by introducing TSD technology, although still using the design pattern of singleton, i.e., externally also only provides one and connect Mouthful example is obtained, but the example got for the same thread is always identical, and what different threads was got is not Same example.I.e. in the thread, any one place all gets identical example by same interface.In this side Under formula, in the same thread, the management to multiple examples is eliminated.
2) one or more figure rendering tasks that Java termination receives are submitted to respectively in different rendering threads, and And one or more of figure rendering tasks are submitted to the end Native based on corresponding rendering thread.
When Java termination receives multiple figure rendering tasks, different figure rendering tasks is submitted to different renderings In thread, and the end Native is submitted to based on respective rendering thread.
3) wash with watercolours with rendering thread binding corresponding to one or more of figure rendering tasks is obtained at the end Native Engine instance is contaminated to carry out figure rendering.
Natvie end group obtains and the rendering thread respectively in the corresponding thread private data of the figure rendering task The rendering engine example of binding carries out figure rendering.
Rendering engine example carries out figure rendering by Open GL order.
Figure rendering generally includes following several stages:
A) some geometric units such as geometric object, such as point, line, triangle are specified.
B) vertex processing operation.Data received by this stage are the attributive character on each vertex, and output is then Transformed vertex data.
C) pel assembles.After the processing of vertex, whole attributes on vertex have all been determined, in this stage vertex meeting Pel is assembled into according to pel rule.
D) pel is handled, and is mainly cut and is disappeared sunken.
E) rasterizing operates.The primitive data passed over by pel processing stage will be broken down into smaller at this stage Unit and corresponding frame buffer zone each pixel, these units are referred to as piece member.One piece member may comprising the window left side, The attributes such as depth, color, texture coordinate.
F) piece member is handled.It is managed including upper texture, i.e., corresponding color in texture memory is obtained by texture coordinate;Mist Change, color is modified to current view point position by piece member distance;Color summarizes: by texture, the color of main definition, the face of atomization Color, the color that the photostage of secondary color calculates gather.
G) operation of piece member one by one.Including pixel ownership, shearing, Alpha, stencil test, depth test, mixing Deng these operations finally will affect it in the color value of frame buffer zone.
H) frame buffer operation.After figure rendering is completed, rendering engine is exchanged rendering result by Open GL interface To display buffer, display is completed.Since each rendering engine example corresponds to one piece of region of screen, the knot of rendering Fruit will directly display corresponding screen area.
4) rendering that the rendering result of one or more of figure rendering tasks is respectively displayed on and renders is drawn It holds up in screen area corresponding to example.
Since different rendering engine examples corresponds to the different zones of screen, executed by different rendering engine examples Figure rendering task rendering result can simultaneously be shown in the different zones of screen.It is thus achieved that intelligent operation The graphic plotting of the multizone of system.
In the exemplary embodiment, which can further wrap Include: after the completion of figure rendering task, rendering state is pulled back to the end Java by the end Native.
When the rendering engine at the end Native terminates to render, the rendering that rendering state can be returned to the end Java by rendering engine is regarded Figure.I.e. the rendering of the notice end Java is completed or renders failure.
The advantages of multizone pattern drawing method for intelligent operating system of the present embodiment, is:
(1) figure rendering task is executed by the rendering engine example at the end Native, therefore is not limited by memory.
(2) rendering thread is not influenced independently of main thread by service logic thread;
(3) it can be rendered simultaneously in the multiple regions of screen simultaneously;
(4) many cases mode based on thread is realized by the singleton pattern of rendering engine+thread private data technology.
According to another embodiment of the present invention, a kind of multizone graphic plotting dress for intelligent operating system is provided It sets.The apparatus may include: multiple rendering engines of multiple rendering threads and the creation of the end Native for creating the end Java The unit that example is bound;One or more figure rendering tasks for receiving Java termination are submitted to different respectively It renders in thread, and one or more of figure rendering tasks is submitted to the end Native based on corresponding rendering thread Unit;For obtaining the wash with watercolours with rendering thread binding corresponding to one or more of figure rendering tasks at the end Native Engine instance is contaminated to carry out the unit of figure rendering;And for by the rendering result of one or more of figure rendering tasks Unit in screen area corresponding to the rendering engine example for being respectively displayed on and being rendered.
In the exemplary embodiment, by by the multiple rendering engine example be placed in thread private data come carry out with The binding of the multiple rendering thread.
In the exemplary embodiment, Natvie end group is in the corresponding thread private data difference of the figure rendering task Obtain the rendering engine example with the rendering thread binding.
In the exemplary embodiment, the rendering engine carries out figure rendering by Open GL order.
In the exemplary embodiment, described device further comprises: for making after the completion of figure rendering task Rendering state is pulled back to the unit at the end Java by the end Native.
The present embodiment is more in conjunction with java section by the singleton design pattern of the part Native and thread private data TSD The mode of thread, realization manage multiple Open GL context environmentals simultaneously in a process, can be simultaneously more to reach A region carries out the technical effect of graphic plotting.Advantage independent with thread, not limiting memory and multizone while rendering.
Using example
A concrete application example is given below in the scheme and its effect of the embodiment of the present invention for ease of understanding.This field It should be understood to the one skilled in the art that the example is only for the purposes of understanding the present invention, any detail is not intended to be limited in any way The system present invention.
The multizone pattern drawing method and device for intelligent operating system of following example through the invention are in screen In two regions draw two figures, the picture left above p1, bottom-right graph p2 respectively.In this example, intelligent operating system ring Border is Android, supports Open GL 2.0.
Specific step is as follows:
1) in the first rendering thread of the end Java creation and the second rendering process.
Specifically, in the first rendering thread of the end Java creation and the second rendering process, the respectively end Native provides rendering Thread context, and generate two Open GL context environmentals.
2) at the end Native, respectively two render threads provide rendering contexts in create the first rendering engine example and Second rendering engine example.
3) the first rendering engine example and the second rendering engine example are respectively implanted the first rendering thread and the second rendering In the TSD of thread, the first rendering engine example and the first rendering thread are bound, and by the second rendering example and the Two rendering threads are bound.
4) rendering task of p1 is submitted to first rendering engine at the end Native bound with it based on the first rendering thread, The path of task direction p1;Submit p2's to second rendering engine at the end Native bound with it based on the second rendering thread Rendering task, the task are directed toward the path of p2.
5) the first rendering engine and the second rendering engine respectively obtain rendering task, and the type for needing to render is all picture, The first rendering engine and the second rendering engine call Open GL interface to be loaded into memory for p1 and p2 as texture therewith, and lead to It crosses Open GL interface and the memory cache is exchanged into display buffer, complete each in the first rendering engine and the second rendering engine The display of self-corresponding screen area.
Due to by multithreading realize, the display of p1 and p2 be while.
It will be understood by those skilled in the art that above to the purpose of the description of the embodiment of the present invention only for illustratively saying The beneficial effect of bright the embodiment of the present invention is not intended to limit embodiments of the invention to given any example.
The present invention can be device, method and/or computer program product.Computer program product may include computer Readable storage medium storing program for executing, containing for making processor realize the computer-readable program instructions of various aspects of the invention.
Computer readable storage medium, which can be, can keep and store the tangible of the instruction used by instruction execution equipment Equipment.Computer readable storage medium for example can be-- but it is not limited to-- storage device electric, magnetic storage apparatus, optical storage Equipment, electric magnetic storage apparatus, semiconductor memory apparatus or above-mentioned any appropriate combination.Computer readable storage medium More specific example (non exhaustive list) includes: portable computer diskette, hard disk, random access memory (RAM), read-only deposits It is reservoir (ROM), erasable programmable read only memory (EPROM or flash memory), static random access memory (SRAM), portable Compact disk read-only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanical coding equipment, for example thereon It is stored with punch card or groove internal projection structure and the above-mentioned any appropriate combination of instruction.Calculating used herein above Machine readable storage medium storing program for executing is not interpreted that instantaneous signal itself, the electromagnetic wave of such as radio wave or other Free propagations lead to It crosses the electromagnetic wave (for example, the light pulse for passing through fiber optic cables) of waveguide or the propagation of other transmission mediums or is transmitted by electric wire Electric signal.
Computer-readable program instructions as described herein can be downloaded to from computer readable storage medium it is each calculate/ Processing equipment, or outer computer or outer is downloaded to by network, such as internet, local area network, wide area network and/or wireless network Portion stores equipment.Network may include copper transmission cable, optical fiber transmission, wireless transmission, router, firewall, interchanger, gateway Computer and/or Edge Server.Adapter or network interface in each calculating/processing equipment are received from network to be counted Calculation machine readable program instructions, and the computer-readable program instructions are forwarded, for the meter being stored in each calculating/processing equipment In calculation machine readable storage medium storing program for executing.
Computer program instructions for executing operation of the present invention can be assembly instruction, instruction set architecture (ISA) instructs, Machine instruction, machine-dependent instructions, microcode, firmware instructions, condition setup data or with one or more programming languages The source code or object code that any combination is write, the programming language include the programming language-of object-oriented such as Smalltalk, C++ etc., and conventional procedural programming languages-such as " C " language or similar programming language.Computer Readable program instructions can be executed fully on the user computer, partly execute on the user computer, be only as one Vertical software package executes, part executes on the remote computer or completely in remote computer on the user computer for part Or it is executed on server.In situations involving remote computers, remote computer can pass through network-packet of any kind It includes local area network (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as benefit It is connected with ISP by internet).In some embodiments, by utilizing computer-readable program instructions Status information carry out personalized customization electronic circuit, such as programmable logic circuit, field programmable gate array (FPGA) or can Programmed logic array (PLA) (PLA), the electronic circuit can execute computer-readable program instructions, to realize each side of the invention Face.
Referring herein to according to the method for the embodiment of the present invention, the flow chart of device (system) and computer program product and/ Or block diagram describes various aspects of the invention.It should be appreciated that flowchart and or block diagram each box and flow chart and/ Or in block diagram each box combination, can be realized by computer-readable program instructions.
These computer-readable program instructions can be supplied to general purpose computer, special purpose computer or other programmable datas The processor of processing unit, so that a kind of machine is produced, so that these instructions are passing through computer or other programmable datas When the processor of processing unit executes, function specified in one or more boxes in implementation flow chart and/or block diagram is produced The device of energy/movement.These computer-readable program instructions can also be stored in a computer-readable storage medium, these refer to It enables so that computer, programmable data processing unit and/or other equipment work in a specific way, thus, it is stored with instruction Computer-readable medium then includes a manufacture comprising in one or more boxes in implementation flow chart and/or block diagram The instruction of the various aspects of defined function action.
Computer-readable program instructions can also be loaded into computer, other programmable data processing units or other In equipment, so that series of operation steps are executed in computer, other programmable data processing units or other equipment, to produce Raw computer implemented process, so that executed in computer, other programmable data processing units or other equipment Instruct function action specified in one or more boxes in implementation flow chart and/or block diagram.
The flow chart and block diagram in the drawings show the system of multiple embodiments according to the present invention, method and computer journeys The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation One module of table, program segment or a part of instruction, the module, program segment or a part of instruction include one or more use The executable instruction of the logic function as defined in realizing.In some implementations as replacements, function marked in the box It can occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually be held substantially in parallel Row, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that block diagram and/or The combination of each box in flow chart and the box in block diagram and or flow chart, can the function as defined in executing or dynamic The dedicated hardware based system made is realized, or can be realized using a combination of dedicated hardware and computer instructions.
Various embodiments of the present invention are described above, above description is exemplary, and non-exclusive, and It is not limited to disclosed each embodiment.Without departing from the scope and spirit of illustrated each embodiment, for this skill Many modifications and changes are obvious for the those of ordinary skill in art field.The selection of term used herein, purport In the principle, practical application or improvement to the technology in market for best explaining each embodiment, or make the art Other those of ordinary skill can understand each embodiment disclosed herein.

Claims (8)

1. a kind of multizone pattern drawing method for intelligent operating system, which comprises the following steps:
Multiple rendering threads that the end Java creates and multiple rendering engine examples that the end Native creates are bound;
One or more figure rendering tasks for receiving of Java termination are submitted to respectively in different rendering threads, and by institute It states one or more figure rendering tasks and the end Native is submitted to based on corresponding rendering thread;
The rendering engine with rendering thread binding corresponding to one or more of figure rendering tasks is obtained at the end Native Example is to carry out figure rendering;And
The rendering engine example that the rendering result of one or more of figure rendering tasks is respectively displayed on and is rendered In corresponding screen area;
Wherein, it is carried out by the way that the multiple rendering engine example is placed in thread private data and the multiple rendering thread Binding.
2. the multizone pattern drawing method according to claim 1 for intelligent operating system, wherein Natvie end group The rendering engine example with the rendering thread binding is obtained respectively in the corresponding thread private data of the figure rendering task.
3. the multizone pattern drawing method according to claim 1 for intelligent operating system, wherein the rendering is drawn It holds up and figure rendering is carried out by Open GL order.
4. the multizone pattern drawing method according to claim 1 for intelligent operating system, wherein the method into One step includes:
After the completion of figure rendering task, rendering state is pulled back to the end Java by the end Native.
5. a kind of multizone graphics rendering device for intelligent operating system, which is characterized in that described device includes:
What multiple rendering engine examples of multiple rendering threads and the creation of the end Native for creating the end Java were bound Unit;
One or more figure rendering tasks for receiving Java termination are submitted to respectively in different rendering threads, and One or more of figure rendering tasks are submitted to the unit at the end Native based on corresponding rendering thread;
For obtaining the rendering with rendering thread binding corresponding to one or more of figure rendering tasks at the end Native Engine instance is to carry out the unit of figure rendering;And
Rendering engine for the rendering result of one or more of figure rendering tasks to be respectively displayed on and render Unit in screen area corresponding to example;
Wherein, it is carried out by the way that the multiple rendering engine example is placed in thread private data and the multiple rendering thread Binding.
6. the multizone graphics rendering device according to claim 5 for intelligent operating system, wherein Natvie end group The rendering engine example with the rendering thread binding is obtained respectively in the corresponding thread private data of the figure rendering task.
7. the multizone graphics rendering device according to claim 5 for intelligent operating system, wherein the rendering is drawn It holds up and figure rendering is carried out by Open GL order.
8. the multizone graphics rendering device according to claim 5 for intelligent operating system, wherein described device into One step includes:
For making the end Native that rendering state to be pulled back to the unit at the end Java after the completion of figure rendering task.
CN201610902201.XA 2016-10-17 2016-10-17 Multizone pattern drawing method and device for intelligent operating system Active CN106502662B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610902201.XA CN106502662B (en) 2016-10-17 2016-10-17 Multizone pattern drawing method and device for intelligent operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610902201.XA CN106502662B (en) 2016-10-17 2016-10-17 Multizone pattern drawing method and device for intelligent operating system

Publications (2)

Publication Number Publication Date
CN106502662A CN106502662A (en) 2017-03-15
CN106502662B true CN106502662B (en) 2019-06-14

Family

ID=58295058

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610902201.XA Active CN106502662B (en) 2016-10-17 2016-10-17 Multizone pattern drawing method and device for intelligent operating system

Country Status (1)

Country Link
CN (1) CN106502662B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391128B (en) * 2017-07-07 2020-07-28 北京小米移动软件有限公司 Method and device for monitoring virtual file object model vdom
CN109544653B (en) * 2018-10-26 2023-05-16 深圳点猫科技有限公司 WebGL independent process rendering method based on education operating system and electronic equipment
CN109697101A (en) * 2019-01-16 2019-04-30 广州虎牙信息科技有限公司 Image display method, device, computer equipment and storage medium
CN110209447B (en) * 2019-04-28 2023-02-28 五八有限公司 List page data display method and list page data display device
CN110209451A (en) * 2019-05-28 2019-09-06 南京南方电讯有限公司 A kind of horse race lamp display system and method based on the superposition of different display engines
CN111210381B (en) * 2019-12-31 2023-07-25 广州市百果园信息技术有限公司 Data processing method, device, terminal equipment and computer readable medium
CN113837918A (en) * 2020-06-23 2021-12-24 北京字节跳动网络技术有限公司 Method and device for realizing rendering isolation by multiple processes
CN112765128B (en) * 2020-12-31 2023-10-03 北京知因智慧科技有限公司 REPL-based data development method, system and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102469064A (en) * 2010-11-03 2012-05-23 中兴通讯股份有限公司 Method for implementing communication and communication equipment
CN102915375A (en) * 2012-11-08 2013-02-06 山东大学 Webpage loading method based on layout zoning
CN103617027A (en) * 2013-10-29 2014-03-05 合一网络技术(北京)有限公司 Android-based method and system for constructing image rendering engine
CN103761317A (en) * 2014-01-27 2014-04-30 北京京东尚科信息技术有限公司 Multithreading asynchronous rendering system and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030172127A1 (en) * 2002-02-06 2003-09-11 Northrup Charles J. Execution of process by references to directory service

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102469064A (en) * 2010-11-03 2012-05-23 中兴通讯股份有限公司 Method for implementing communication and communication equipment
CN102915375A (en) * 2012-11-08 2013-02-06 山东大学 Webpage loading method based on layout zoning
CN103617027A (en) * 2013-10-29 2014-03-05 合一网络技术(北京)有限公司 Android-based method and system for constructing image rendering engine
CN103761317A (en) * 2014-01-27 2014-04-30 北京京东尚科信息技术有限公司 Multithreading asynchronous rendering system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于Android***的自适应跟踪场景渲染技术;陆兴华 等;《计算机网络》;20150926;第72-75页

Also Published As

Publication number Publication date
CN106502662A (en) 2017-03-15

Similar Documents

Publication Publication Date Title
CN106502662B (en) Multizone pattern drawing method and device for intelligent operating system
CN106575228B (en) Post-processing object order rearrangement in graphics process
JP6947352B2 (en) Graphics processing system, graphics processor and method of operating the system or processor
CN106233338B (en) Start node for the tree traversal in ray trace application determines
KR102122454B1 (en) Apparatus and Method for rendering a current frame using an image of previous tile
CN101506847B (en) Methods and systems for partitioning a spatial index
KR102047615B1 (en) Processing Method and Apparatus for Particle Systems
CN104919494B (en) Show graph data using visibility information
CN103810742B (en) Image rendering method and system
US20170004647A1 (en) Rendering graphics data on demand
CN105518742A (en) Fault-tolerant preemption mechanism at arbitrary control points for graphics processing
CN105912234B (en) The exchange method and device of virtual scene
KR101257849B1 (en) Method and Apparatus for rendering 3D graphic objects, and Method and Apparatus to minimize rendering objects for the same
CN105354872A (en) Rendering engine, implementation method and producing tools for 3D web game
JP5055214B2 (en) Image processing apparatus and image processing method
US20120280991A1 (en) Employing mesh files to animate transitions in client applications
KR20070004878A (en) Integration of three dimensional scene hierarchy into two dimensional compositing system
JP6333840B2 (en) Method for forming shell mesh based on optimized polygons
CN110533753A (en) Three-dimensional based on WebGL repairs scene configuration configuration method
US20230230311A1 (en) Rendering Method and Apparatus, and Device
US11494966B2 (en) Interactive editing of virtual three-dimensional scenes
CN104519339A (en) Image processing apparatus and method
JP2023553507A (en) System and method for obtaining high quality rendered display of synthetic data display of custom specification products
CN111897503A (en) Display control method and display control terminal
Rudomín et al. Fragment shaders for agent animation using finite state machines

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
CB02 Change of applicant information

Address after: Room 508-598, Xitian Gezhuang Town Government Office Building, No. 8 Xitong Road, Miyun District Economic Development Zone, Beijing 101500

Applicant after: Beijing Rubo Technology Co., Ltd.

Address before: Room 508-598, Xitian Gezhuang Town Government Office Building, No. 8 Xitong Road, Miyun County Economic Development Zone, Beijing 101500

Applicant before: BEIJING INTELLIGENT HOUSEKEEPER TECHNOLOGY CO., LTD.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210908

Address after: 301-112, floor 3, building 2, No. 18, YANGFANGDIAN Road, Haidian District, Beijing 100038

Patentee after: Beijing Rubu Technology Co.,Ltd.

Address before: Room 508-598, Xitian Gezhuang Town Government Office Building, No. 8 Xitong Road, Miyun District Economic Development Zone, Beijing 101500

Patentee before: BEIJING ROOBO TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right