Capture/Replay: Fix TODO in test utils.

This code is no longer needed.

Bug: angleproject:5133
Change-Id: I06f05b390f36c9d49deaabe8201764968ef3172c
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3360782
Reviewed-by: Cody Northrop <cnorthrop@google.com>
Reviewed-by: Tim Van Patten <timvp@google.com>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
This commit is contained in:
Jamie Madill 2021-12-29 13:06:27 -05:00 коммит произвёл Angle LUCI CQ
Родитель b6399ac94f
Коммит 85de4f81e9
1 изменённых файлов: 5 добавлений и 16 удалений

Просмотреть файл

@ -93,22 +93,11 @@ bool LoadTraceInfoFromJSON(const std::string &traceName,
traceInfoOut->drawSurfaceHeight = meta["DrawSurfaceHeight"].GetInt();
traceInfoOut->drawSurfaceWidth = meta["DrawSurfaceWidth"].GetInt();
// TODO(http://anglebug.com/5133): Drop the GetInt versions after trace update
if (meta["DrawSurfaceColorSpace"].IsString())
{
angle::HexStringToUInt(meta["DrawSurfaceColorSpace"].GetString(),
&traceInfoOut->drawSurfaceColorSpace);
angle::HexStringToUInt(meta["DisplayPlatformType"].GetString(),
&traceInfoOut->displayPlatformType);
angle::HexStringToUInt(meta["DisplayDeviceType"].GetString(),
&traceInfoOut->displayDeviceType);
}
else
{
traceInfoOut->drawSurfaceColorSpace = meta["DrawSurfaceColorSpace"].GetInt();
traceInfoOut->displayPlatformType = meta["DisplayPlatformType"].GetInt();
traceInfoOut->displayDeviceType = meta["DisplayDeviceType"].GetInt();
}
angle::HexStringToUInt(meta["DrawSurfaceColorSpace"].GetString(),
&traceInfoOut->drawSurfaceColorSpace);
angle::HexStringToUInt(meta["DisplayPlatformType"].GetString(),
&traceInfoOut->displayPlatformType);
angle::HexStringToUInt(meta["DisplayDeviceType"].GetString(), &traceInfoOut->displayDeviceType);
traceInfoOut->configRedBits = meta["ConfigRedBits"].GetInt();
traceInfoOut->configGreenBits = meta["ConfigGreenBits"].GetInt();