7#include <zircon/assert.h>
9#include "flutter/fml/logging.h"
10#include "rapidjson/document.h"
15 std::string json_string) {
16 rapidjson::Document document;
17 document.Parse(json_string);
19 if (!document.IsObject()) {
20 FML_LOG(
ERROR) <<
"Failed to parse configuration; using defaults: "
26 if (document.HasMember(
"intercept_all_input")) {
27 auto& val = document[
"intercept_all_input"];
29 intercept_all_input_ = val.GetBool();
32 if (document.HasMember(
"software_rendering")) {
33 auto& val = document[
"software_rendering"];
35 software_rendering_ = val.GetBool();
38 if (document.HasMember(
"enable_shader_warmup")) {
39 auto& val = document[
"enable_shader_warmup"];
41 enable_shader_warmup_ = val.GetBool();
44 if (document.HasMember(
"enable_shader_warmup_dart_hooks")) {
45 auto& val = document[
"enable_shader_warmup_dart_hooks"];
47 enable_shader_warmup_dart_hooks_ = val.GetBool();
FlutterRunnerProductConfiguration()
#define FML_LOG(severity)