未验证 提交 d54ed1f1 编写于 作者: L liyuqian 提交者: GitHub

Add "type" to getDisplayRefreshRate protocol (#12319)

Per kenzieschmoll's request.

Will update https://github.com/flutter/flutter/wiki/Engine-specific-Service-Protocol-extensions once this is merged.
上级 7ab69561
......@@ -1268,6 +1268,7 @@ bool Shell::OnServiceProtocolGetDisplayRefreshRate(
rapidjson::Document& response) {
FML_DCHECK(task_runners_.GetUITaskRunner()->RunsTasksOnCurrentThread());
response.SetObject();
response.AddMember("type", "DisplayRefreshRate", response.GetAllocator());
response.AddMember("fps", engine_->GetDisplayRefreshRate(),
response.GetAllocator());
return true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册