blob: 1a9b11c3b2f6f45f0d0e47cc1adc51ca63151734 [file] [log] [blame]
/*
* Copyright 2025 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef CompressedTexture_DEFINED
#define CompressedTexture_DEFINED
#include "include/core/SkColorType.h"
#include "include/core/SkPixmap.h"
namespace sk_gpu_test {
/**
* BC1 compress an image that contains only either opaque black or transparent black and one
* other color.
* opaque pixmaps -> kBC1_RGB8_UNORM
* transparent pixmaps -> kBC1_RGBA8_UNORM
*/
void TwoColorBC1Compress(const SkPixmap& pixmap, SkColor otherColor, char* dstPixels);
} // namespace sk_gpu_test
#endif // CompressedTexture_DEFINED