forked from xuzhongxing/fuchsia-notes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
term.txt
40 lines (25 loc) · 1.36 KB
/
term.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
baseview里有个parent node, 是个import node, bind到view manager里view state里的top node上。
这个top node就是tiles里child view对应的node.
Tiles::AddChildView时会把上面的child view对应的node添加到view data的host node里。
view stub的host node是个import node. 会bind到host import token对应的node上,就是view data的host node.
cmd line: tiles term
ViewController::ViewController
SkiaFontLoader::LoadFont
callback
ComputeMetrics
StartCommandIfNeeded
pty_.Run
启动另一个进程sh, 设置好回调函数,处理从sh来的输入
Blink();
反转blink_on, 加入下一次Blink()
BaseView::InvalidateScene
BaseView::PresentScene
session()->Present
====>
callback
ViewController::OnSceneInvalidated
AcquireCanvas();
DrawContent(canvas);
ReleaseAndSwapCanvas();
content_material_.SetTexture(*image);
HostCanvasCycler::ReleaseAndSwapCanvas