Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
DitherUtils.h
Go to the documentation of this file.
1/*
2 * Copyright 2023 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 skgpu_DitherUtils_DEFINED
9#define skgpu_DitherUtils_DEFINED
10
12
13#ifndef SK_IGNORE_GPU_DITHER
14
15enum SkColorType : int;
16class SkBitmap;
17
18namespace skgpu {
19
20float DitherRangeForConfig(SkColorType dstColorType);
21
23
24} // namespace skgpu
25
26#endif // SK_IGNORE_GPU_DITHER
27
28#endif // skgpu_DitherUtils_DEFINED
SkColorType
Definition SkColorType.h:19
Type::kYUV Type::kRGBA() int(0.7 *637)
float DitherRangeForConfig(SkColorType dstColorType)
SkBitmap MakeDitherLUT()