chromium/third_party/skia/src/core/SkMasks.cpp

/*
 * Copyright 2015 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */
#include "src/core/SkMasks.h"

#include "include/private/base/SkDebug.h"

/*
 *
 * Used to convert 1-7 bit color components into 8-bit color components
 *
 */
static constexpr uint8_t n_bit_to_8_bit_lookup_table[] =;

/*
 *
 * Convert an n bit component to an 8-bit component
 *
 */
static uint8_t convert_to_8(uint8_t component, uint32_t n) {}

static uint8_t get_comp(uint32_t pixel, uint32_t mask, uint32_t shift,
                        uint32_t size) {}

/*
 *
 * Get a color component
 *
 */
uint8_t SkMasks::getRed(uint32_t pixel) const {}
uint8_t SkMasks::getGreen(uint32_t pixel) const {}
uint8_t SkMasks::getBlue(uint32_t pixel) const {}
uint8_t SkMasks::getAlpha(uint32_t pixel) const {}

/*
 *
 * Process an input mask to obtain the necessary information
 *
 */
static SkMasks::MaskInfo process_mask(uint32_t mask) {}

/*
 *
 * Create the masks object
 *
 */
SkMasks* SkMasks::CreateMasks(InputMasks masks, int bytesPerPixel) {}