chromium/components/headless/test/bitmap_utils.cc

// Copyright 2023 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/bitmap_utils.h"

#include <cstdlib>

#include "base/logging.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size.h"

namespace headless {

namespace {

constexpr int kColorChannelTolerance =;

bool IsDifferentColorChannel(U8CPU channel, U8CPU base_channel) {}

bool IsDifferentColor(SkColor color, SkColor base_color) {}

}  // namespace

bool CheckColoredRect(const SkBitmap& bitmap,
                      SkColor rect_color,
                      SkColor bkgr_color,
                      int margins) {}

bool CheckColoredRect(const SkBitmap& bitmap,
                      SkColor rect_color,
                      SkColor bkgr_color) {}

}  // namespace headless