chromium/third_party/skia/include/core/SkColorTable.h

/*
 * Copyright 2023 Google LLC
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef SkColorTable_DEFINED
#define SkColorTable_DEFINED

#include "include/core/SkBitmap.h"
#include "include/core/SkRefCnt.h"
#include "include/private/base/SkAPI.h"

#include <cstdint>

class SkReadBuffer;
class SkWriteBuffer;

/**
 * SkColorTable holds the lookup tables for each channel (ARGB) used to define the filter behavior
 * of `SkColorFilters::Table`, and provides a way to share the table data between client code and
 * the returned SkColorFilter. Once created, an SkColorTable is immutable.
*/
class SK_API SkColorTable : public SkRefCnt {};

#endif // SkColorTable_DEFINED