chromium/components/headless/test/pdf_utils.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/headless/test/pdf_utils.h"

#include <optional>

#include "base/logging.h"
#include "components/headless/test/bitmap_utils.h"
#include "pdf/pdf.h"
#include "printing/units.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/skia/include/core/SkColor.h"
#include "third_party/skia/include/core/SkImageInfo.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size_conversions.h"
#include "ui/gfx/geometry/size_f.h"

namespace headless {

PDFPageBitmap::PDFPageBitmap() = default;
PDFPageBitmap::~PDFPageBitmap() = default;

bool PDFPageBitmap::Render(base::span<const uint8_t> pdf_data, int page_index) {}

uint32_t PDFPageBitmap::GetPixelRGB(const gfx::Point& pt) const {}

uint32_t PDFPageBitmap::GetPixelRGB(int x, int y) const {}

bool PDFPageBitmap::CheckColoredRect(SkColor rect_color,
                                     SkColor bkgr_color,
                                     int margins) {}

}  // namespace headless