#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include <chrono>
#include <fstream>
#include "base/command_line.h"
#include "base/files/file_util.h"
#include "base/memory/scoped_refptr.h"
#include "base/task/single_thread_task_executor.h"
#include "mojo/core/embedder/embedder.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/renderer/platform/image-decoders/image_decoder.h"
#include "third_party/blink/renderer/platform/wtf/shared_buffer.h"
namespace blink {
namespace {
scoped_refptr<SharedBuffer> ReadFile(const char* name) { … }
struct ImageMeta { … };
void DecodeFailure(ImageMeta* image) { … }
void DecodeImageData(SharedBuffer* data, ImageMeta* image) { … }
}
void ImageDecodeBenchMain(int argc, char* argv[]) { … }
}
int main(int argc, char* argv[]) { … }