随笔分类 -  electron与chromium内核

摘要:谷歌官方的“合成器变迁”。一定要看,是个 eye opening 目前最新技术就是在瓦片都被光栅化后,生成render pass。然后变成 CompositorFrame,发往在gpu进程 display compositor绘制。发送这些层合成的CompositorFrame利用的是Composi 阅读全文
posted @ 2021-03-17 19:43 Bigben 阅读(2474) 评论(0) 推荐(0) 编辑
摘要:下载:git clone https://github.com/google/gumbo-parser.git 预先安装gcc等sudo apt-get install libtool $cd gumbo-parser/ $ ./autogen.sh $ ./configure $ make $ s 阅读全文
posted @ 2020-11-24 17:53 Bigben 阅读(272) 评论(0) 推荐(0) 编辑
摘要:转自:Chromium学习笔记:程序启动入口分析(Windows) 以下笔记内容均为Windows版本。 本篇笔记跟踪记录了Chromium的启动过程,主要关注 Browser 进程和 Renderer 进程。根据 Chromium 项目的分层设计,我们把 Content API 称作为 Conte 阅读全文
posted @ 2020-11-18 19:51 Bigben 阅读(2146) 评论(0) 推荐(0) 编辑
摘要:多进程架构,有一个浏览器进程和N个沙盒渲染器进程,Blink在沙盒渲染中运行。浏览器选项卡、iframe可共享同个渲染器进程。 沙箱运行:在沙箱中,须通过父浏览器进程来调度使用资源(文件访问、网络、音视频播放、用户配置文件读取(cookie,密码)等。Blink将浏览器进程抽象为一组服务,使用Moj 阅读全文
posted @ 2020-11-10 15:34 Bigben 阅读(570) 评论(0) 推荐(0) 编辑
摘要:具体参考gn的说明。 1,在全局里面设置编译参数的值:electron/build/args/testing.gn里面设置开关: enable_desktop_capturer=false 会覆盖调定义时的值也可使直接使用:gn --args="enable_doom_melon=true enab 阅读全文
posted @ 2020-11-05 13:52 Bigben 阅读(1083) 评论(0) 推荐(0) 编辑
摘要:Getting Started with Headless Chrome By Eric Bidelman Engineer @ Google working on web tooling: Headless Chrome, Puppeteer, Lighthouse TL;DR Headless 阅读全文
posted @ 2020-11-02 19:29 Bigben 阅读(172) 评论(0) 推荐(0) 编辑
摘要:electron加入headless包。打印到pdf:-print-to-pdf 打印到png图片: --screenshot chrome的启动main:src\chrome\app\chrome_main.cc 用electron执行headless: e run --headless --en 阅读全文
posted @ 2020-10-28 17:35 Bigben 阅读(941) 评论(2) 推荐(0) 编辑
摘要:Skip to main content CHROME CHROME OS CHROME APIS <webview> Tag Description: Use the webview tag to actively load live content from the web over the n 阅读全文
posted @ 2020-10-28 09:41 Bigben 阅读(1183) 评论(0) 推荐(0) 编辑
摘要:SwiftShader 是个基于cpu软解码实现OpenGL ES and Direct3D 9 graphics APIs12。提供硬解码独立的3D图形。 在electron上,替换调ANGLE库,即用SwiftShader编译出的 libegl.dll 和 libglesv2.dll覆盖ANGL 阅读全文
posted @ 2020-10-26 19:29 Bigben 阅读(526) 评论(0) 推荐(0) 编辑
摘要:Headless Chrome architecture skyostil@ February 17th, 2016 go/ghost-rider (internal link), crbug.com/546953 Introduction Goals Non-Goals Architecture 阅读全文
posted @ 2020-10-26 19:02 Bigben 阅读(290) 评论(0) 推荐(0) 编辑
摘要:安装 puppeteer插件npm install puppeteer -S 引入puppeteer这个插件 const puppeteer = require('puppeteer'); 两种方式抓取网页快照 用browserless.io国外网站提供的服务。这个服务对测试demo免费。无需注册。 阅读全文
posted @ 2020-10-26 15:26 Bigben 阅读(689) 评论(0) 推荐(0) 编辑
摘要:1, 创建窗口时必须打开nodeIntegration: win = new BrowserWindow({ width: 800, height: 600, sandbox: true, webPreferences: { nodeIntegration: true }, }) 2,示例 html 阅读全文
posted @ 2020-10-23 10:18 Bigben 阅读(2613) 评论(0) 推荐(0) 编辑
摘要:1,在D:\dev\electron9\src\content\public\browser\content_browser_client.h 中,放着对外可以覆盖的接口 如,强制下载而不是用plugin打开: // Called on IO or UI thread to determine wh 阅读全文
posted @ 2020-10-21 14:36 Bigben 阅读(497) 评论(0) 推荐(0) 编辑
摘要:http://www.chromium.org/developers/how-tos/ 阅读全文
posted @ 2020-10-19 11:42 Bigben 阅读(88) 评论(0) 推荐(0) 编辑
摘要:在提交github代码时会自动lint检测。对c++代码,可以使用clang-format自动格式化,不符合格式的会自动调整。 在electron目录下,执行 npm run lint Using clang-format on C++ Code clang-format is a tool to 阅读全文
posted @ 2020-10-16 10:37 Bigben 阅读(1237) 评论(0) 推荐(0) 编辑
摘要:编码 utf8 gbk Unicode 阅读全文
posted @ 2020-09-25 10:25 Bigben 阅读(10390) 评论(0) 推荐(0) 编辑
摘要:https://blog.logrocket.com/how-to-set-up-a-headless-chrome-node-js-server-in-docker/ January 10, 2020 4 min read Headless browsers have become very po 阅读全文
posted @ 2020-09-22 16:57 Bigben 阅读(419) 评论(0) 推荐(0) 编辑
摘要:ozone chromium headless 阅读全文
posted @ 2020-09-21 19:34 Bigben 阅读(398) 评论(0) 推荐(0) 编辑
摘要:D:\dev\electron7\src>ninja -C out/Testing net_unittestsout\Testing\net_unittests.exe --gtest_filter=*HttpContentDispositionTest.Filename*运行:out/Debug/ 阅读全文
posted @ 2020-09-21 10:40 Bigben 阅读(1598) 评论(1) 推荐(0) 编辑

点击右上角即可分享
微信分享提示