blink tutorial


(1) Blink cannot run alone, and (2) porting to other platforms happens at a different layer   

  Instead of adding platform-specific code to Blink, you should use Chromium’s content layer, which provides an implementation of this virtual platform on a wide variety of operating systems including Windows, Linux, Mac OS X, and Android. A separate project called the Chromium Embedded Framework is probably the easiest way to use Chromium (and thus Blink) on your platform.

form forums


 Get hands on

  step by step

  get codes

  linux build

  linux debug

  clean build

  on CONTENT moduler


 Understand Chromium

top-level hierarchy

page render


 Porting Blink

Blink only supports one abstract platform, Chrome implements support for the actual platforms: Windows, Linux, Android, etc.

WebKit employs support for all the different platforms it works on, Windows, Linux, Android, iOS and so on, at the low level.

Blink, on the other hand, will support an abstract platform and only one. The code that has to be different for the different platforms will be in Chrome and not in Blink.

"Blink runs on an abstract platform inside of a sandbox and therefore has few operating system-specific dependencies. This design has two consequences: (1) Blink cannot run alone and (2) porting to other platforms happens at a different layer," the project's homepage explains.

Chromium's Content module implements the abstract platform and contains the platform-specific code. So the fastest way to port Blink or embed it into another browser is to use this Content module as is.

In turn, this means that anyone wanting to adopt Blink will have to incorporate several components from Chromium as well. This means it will be harder for others to use Blink rather than WebKit.

The upside is that Blink won't have any platform-specific concerns, meaning new features and changes can be done faster and easier.

And since Blink will be its own separate module, Chrome will be able to much better compartmentalize it for all of the processes, i.e. for all of the tabs, it's running. This means it will be faster and more secure than WebKit inside Chrome.

hacking blink

转载于:https://www.cnblogs.com/JosephLiao/p/4414731.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值