#include "frame_capture_test_utils.h"
#include "common/frame_capture_utils.h"
#include "common/string_utils.h"
#include <rapidjson/document.h>
#include <rapidjson/istreamwrapper.h>
#include <fstream>
namespace angle
{
namespace
{
bool LoadJSONFromFile(const std::string &fileName, rapidjson::Document *doc)
{ … }
int GzipUncompressHelperPatched(Bytef *dest,
uLongf *dest_length,
const Bytef *source,
uLong source_length,
z_stream &stream)
{ … }
bool UncompressData(const std::vector<uint8_t> &compressedData,
std::vector<uint8_t> *uncompressedData)
{ … }
void SaveDebugFile(const std::string &outputDir,
const char *baseFileName,
const char *suffix,
const std::vector<uint8_t> data)
{ … }
}
bool LoadTraceNamesFromJSON(const std::string jsonFilePath, std::vector<std::string> *namesOut)
{ … }
bool LoadTraceInfoFromJSON(const std::string &traceName,
const std::string &traceJsonPath,
TraceInfo *traceInfoOut)
{ … }
TraceLibrary::TraceLibrary(const std::string &traceName, const TraceInfo &traceInfo)
{ … }
uint8_t *TraceLibrary::LoadBinaryData(const char *fileName)
{ … }
}