Little rookie with a dream to learn chromium

Source: Internet
Author: User

The wind and rain send spring to return,

Flying Snow spring to.

is already a cliff hundred feet ice,

There is a squid qiao.

Qiao also does not dispute the spring,

only the spring will be reported.

Until Yamahana,

She laughed in the bushes.

This song "Mao Zedong Poetry" • BU operator • Plum blossom But I was in the mood. Recently changed work, suffered frequent blows, the interview process found all over the chromium, the interviewer seems to be fast, but alitily, chromium chat up a set of, what GPU acceleration, what multi-process multithreading free switch, I asked pour countless back. After countless failures, I even went to Lao Luo's hammer interview confidence is gone, lost to be a person with feelings of opportunity. A bitter lesson, determined to learn chromium, no further study it, may completely keep up with the times, will be directly knocked out.

OK, the digression is over. Chromium so many things, from there to start? Now that GPU acceleration is blown by Google, let's start with the GPU-dependent OpenGL. What is GPU acceleration for chromium? What good is it?

GPU acceleration is the use of the graphics card's ultra-strong 3D computing ability to do layers and layers of the composition, or even part of the drawing. Take a look at the following chromium compositing architecture diagram:

On the left is the rendering process, which calls the Skia, then calls the synthesizer, the right side is the browser process, there is a window, the middle red box is the GPU process, inside the synthesizer context, the synthesis of the work entrusted to the GL/D3D module, GL/D3D output to the window HWND

Developers can hand over the rendering of the page to a powerful GPU (a graphics card on a computer, a graphics image processing unit that implements the OpenGL API on the embedded chip). This is in fact the trend of modern browsers, Microsoft's IE10 has supported GPU hardware acceleration, and Firefox has enabled the support of this feature.

So what's this yellow one that says Gl/d3d? It is the well-known OpenGL and Microsoft's DirectX 3D Standard, then there are two big standards of the Battle of the past, to SGI and other companies led by the open standard OpenGL applicability more and more widely, from PC to workstation, and then to the embedded everywhere. Microsoft's DirectX 3D can only be used in Microsoft's own products, it seems that the world still like the open standards, far away.

Engage in chromium development, do not understand this OpenGL is not justified, side dishes today with everyone to play with OpenGL. First prepare the environment, due to Microsoft vs200n's motionless several G's big head, as well as the internal conflict of the Microsoft package, the individual prefers open source, not big development IDE, open source IDE Of course have many, fame very big have eclipse, fame small name What I also forget. Side dishes like an IDE called Codeblock, she is in my taste-open source, small also across multiple operating systems, whether you are in Windows or Linux, is a consistent experience, think of a little excitement. Below is her interface, isn't it very good and powerful?

The following is its official website: http://www.codeblocks.org/

To play OpenGL, we need to create a new glut project:

A variety of OpenGL support libraries, such as Glew and their header files, I put it here: http://d.download.csdn.net/down/2560229/ssagnn23

You can put a. dll file into the Windows/system32 directory, and. Lib and. A are all placed under the Codeblock/mingw/lib directory, and the header files are placed in the CODEBLOCK/MINGW/INCLUDE/GL directory.

Next article I started playing with one of the simplest polygons

The first time to get blog update reminders, as well as more technical information sharing, welcome to the personal public platform: Programmer Interaction Alliance (Coder_online), sweep the QR code below or search number Coder_online can pay attention to, We can communicate online.

Little rookie with a dream to learn chromium

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.