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 11 #include "include/core/SkTypes.h" 12 13 #ifndef SK_IGNORE_GPU_DITHER 14 15 enum SkColorType : int; 16 class SkBitmap; 17 18 namespace skgpu { 19 20 float DitherRangeForConfig(SkColorType dstColorType); 21 22 SkBitmap MakeDitherLUT(); 23 24 } // namespace skgpu 25 26 #endif // SK_IGNORE_GPU_DITHER 27 28 #endif // skgpu_DitherUtils_DEFINED 29