-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
38 additions
and
35 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
无边框可拖拽窗口 | ||
无边框可拖拽窗口 | ||
macos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
//---------------------------------------- | ||
// | ||
// Copyright © yanghy. All Rights Reserved. | ||
// | ||
// Licensed under Apache License Version 2.0, January 2004 | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
//---------------------------------------- | ||
|
||
package main | ||
|
||
import ( | ||
"github.com/energye/energy/v2/cef" | ||
) | ||
|
||
func main() { | ||
//全局初始化 每个应用都必须调用的 | ||
cef.GlobalInit(nil, nil) | ||
//创建应用 | ||
app := cef.NewApplication() | ||
// 启用GPU加速, 默认 energy 未开启GPU加速 | ||
// 使用测试网址 www.antutu.com/html5 在任务管理器中观察 CPU 和 GPU 使用情况 | ||
app.SetEnableGPU(true) | ||
cef.BrowserWindow.Config.Url = "https://www.antutu.com/html5" | ||
cef.BrowserWindow.Config.Title = "ENERGY GPU Test" | ||
//运行应用 | ||
cef.Run(app) | ||
} |