зеркало из https://github.com/AvaloniaUI/angle.git
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:
Родитель
b6399ac94f
Коммит
85de4f81e9
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче