chromium/third_party/skia/src/shaders/SkColorShader.cpp

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

#include "src/shaders/SkColorShader.h"

#include "include/core/SkAlphaType.h"
#include "include/core/SkColorSpace.h"
#include "include/core/SkData.h"
#include "include/core/SkFlattenable.h"
#include "include/core/SkShader.h"
#include "include/private/base/SkFloatingPoint.h"
#include "include/private/base/SkTPin.h"
#include "src/core/SkColorSpacePriv.h"
#include "src/core/SkColorSpaceXformSteps.h"
#include "src/core/SkEffectPriv.h"
#include "src/core/SkRasterPipeline.h"
#include "src/core/SkReadBuffer.h"
#include "src/core/SkWriteBuffer.h"
#include "src/shaders/SkShaderBase.h"

#include <utility>

SkColorShader::SkColorShader(SkColor c) :{}

bool SkColorShader::isOpaque() const {}

sk_sp<SkFlattenable> SkColorShader::CreateProc(SkReadBuffer& buffer) {}

void SkColorShader::flatten(SkWriteBuffer& buffer) const {}

SkColor4Shader::SkColor4Shader(const SkColor4f& color, sk_sp<SkColorSpace> space)
    :{}

sk_sp<SkFlattenable> SkColor4Shader::CreateProc(SkReadBuffer& buffer) {}

void SkColor4Shader::flatten(SkWriteBuffer& buffer) const {}

bool SkColorShader::appendStages(const SkStageRec& rec, const SkShaders::MatrixRec&) const {}

bool SkColor4Shader::appendStages(const SkStageRec& rec, const SkShaders::MatrixRec&) const {}

bool SkColor4Shader::onAsLuminanceColor(SkColor4f* lum) const {}

/////////////////////////////////////////////////////////////////////////////////////////////////

void SkRegisterColor4ShaderFlattenable() {}

void SkRegisterColorShaderFlattenable() {}

namespace SkShaders {
sk_sp<SkShader> Color(SkColor color) {}

sk_sp<SkShader> Color(const SkColor4f& color, sk_sp<SkColorSpace> space) {}
}  // namespace SkShaders