Debian Codegraph @

tools/gpu/CompressedTexture.h

raw
1 /*
2 * Copyright 2025 Google LLC
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef CompressedTexture_DEFINED
9 #define CompressedTexture_DEFINED
10
11 #include "include/core/SkColorType.h"
12 #include "include/core/SkPixmap.h"
13
14 namespace sk_gpu_test {
15 /**
16 * BC1 compress an image that contains only either opaque black or transparent black and one
17 * other color.
18 * opaque pixmaps -> kBC1_RGB8_UNORM
19 * transparent pixmaps -> kBC1_RGBA8_UNORM
20 */
21 void TwoColorBC1Compress(const SkPixmap& pixmap, SkColor otherColor, char* dstPixels);
22 } // namespace sk_gpu_test
23
24 #endif // CompressedTexture_DEFINED