Commit b5a13bec by Jordan Bayles Committed by Commit Bot

Prepare for JsonCpp roll in Chromium

This patch is the first of a multistep process to upgrade JsonCpp from its current legacy version to the latest version. A minor fix to how Json::Value is used is included, as well as properly pulling in the jsoncpp_config where jsoncpp is used, allowing for us to roll Chromium while Angle uses the deprecated Reader/Writer classes. After this patch is landed, the Angle dependency in Chromium can be rolled as part of rolling JsonCpp, then Angle can update to the new StreamWriter/CharReader classes. Bug: 961513 Change-Id: Idd1d61270aa0a7e4a91983b4c22a24e2fdaafe49 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1682815Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent 2afc3398
...@@ -272,6 +272,7 @@ if (is_win || is_linux || is_android || is_mac) { ...@@ -272,6 +272,7 @@ if (is_win || is_linux || is_android || is_mac) {
} }
configs += [ configs += [
"${angle_jsoncpp_dir}:jsoncpp_config",
"${angle_root}:libANGLE_config", "${angle_root}:libANGLE_config",
"${angle_root}:library_name_config", "${angle_root}:library_name_config",
] ]
...@@ -306,6 +307,7 @@ if (is_win || is_linux || is_android || is_mac || is_fuchsia) { ...@@ -306,6 +307,7 @@ if (is_win || is_linux || is_android || is_mac || is_fuchsia) {
] ]
configs += [ configs += [
"${angle_jsoncpp_dir}:jsoncpp_config",
"${angle_root}:libANGLE_config", "${angle_root}:libANGLE_config",
"${angle_root}:library_name_config", "${angle_root}:library_name_config",
] ]
......
...@@ -132,8 +132,8 @@ void DumpTraceEventsToJSONFile(const std::vector<TraceEvent> &traceEvents, ...@@ -132,8 +132,8 @@ void DumpTraceEventsToJSONFile(const std::vector<TraceEvent> &traceEvents,
std::stringstream phaseName; std::stringstream phaseName;
phaseName << traceEvent.phase; phaseName << traceEvent.phase;
unsigned long long microseconds = const auto microseconds =
static_cast<unsigned long long>(traceEvent.timestamp * 1000.0 * 1000.0); static_cast<Json::LargestInt>(traceEvent.timestamp * 1000.0 * 1000.0);
value["name"] = traceEvent.name; value["name"] = traceEvent.name;
value["cat"] = traceEvent.categoryName; value["cat"] = traceEvent.categoryName;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment