#include "components/lens/lens_metadata.h"
#include <map>
#include "base/base64.h"
#include "base/time/time.h"
#include "components/lens/lens_entrypoints.h"
#include "components/lens/proto/v1/lens_latencies_metadata.pb.h"
namespace {
void AddDownscaleData(lens::proto::lens_latencies_metadata::
ChromeSpecificPhaseLatenciesMetadata::Phase* phase,
gfx::Size original_size,
gfx::Size downscaled_size) { … }
void AddEncodeData(lens::proto::lens_latencies_metadata::
ChromeSpecificPhaseLatenciesMetadata::Phase* phase,
lens::mojom::ImageFormat image_format,
size_t encoded_image_size_bytes) { … }
}
namespace LensMetadata {
std::string CreateProto(
const std::vector<lens::mojom::LatencyLogPtr>& log_data) { … }
}