chromium/gpu/command_buffer/service/shared_image/gl_repack_utils_unittest.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 "gpu/command_buffer/service/shared_image/gl_repack_utils.h"

#include "base/strings/stringprintf.h"
#include "cc/test/pixel_comparator.h"
#include "cc/test/pixel_test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/skia/include/core/SkColor.h"

namespace gpu {
namespace {

static SkBitmap MakeSolidColorBitmap(const gfx::Size& size,
                                     SkColorType color_type,
                                     SkColor color) {}

static SkBitmap MakeSolidColorBitmapWithStride(const gfx::Size& size,
                                               SkColorType color_type,
                                               SkColor color,
                                               size_t stride) {}

// Validates `repacked_data` has all red RGB pixels.
static void ValidateRgbPixelsRed(const gfx::Size& size,
                                 size_t expected_stride,
                                 const std::vector<uint8_t>& repacked_data) {}

// Validates `repacked_data` has all red opaque RGBA pixels.
static void ValidateRgbaPixelsRed(const gfx::Size& size,
                                  size_t expected_stride,
                                  const std::vector<uint8_t>& repacked_data) {}

TEST(RepackUtilsTest, BgrxAsRgb) {}

TEST(RepackUtilsTest, BgrxAsRgbWithAlignedStride) {}

TEST(RepackUtilsTest, BgrxAsRgbWithAlpha) {}

TEST(RepackUtilsTest, BgrxAsRgbWithStrideMismatch) {}

TEST(RepackUtilsTest, RgbxAsRgb) {}

TEST(RepackUtilsTest, RepackStride) {}

TEST(RepackUtilsTest, UnpackStride) {}

TEST(RepackUtilsTest, SwizzleRedAndBlue) {}

}  // namespace
}  // namespace gpu