blob: 144c9685f48c700390540f283842afe207bb810f [file] [log] [blame]
* Copyright 2007 The Android Open Source Project
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
#ifndef SkColorMatrixFilter_DEFINED
#define SkColorMatrixFilter_DEFINED
#include "include/core/SkColorFilter.h"
#include "include/effects/SkColorMatrix.h"
class SK_API SkColorMatrixFilter : public SkColorFilter {
* Create a colorfilter that multiplies the RGB channels by one color, and
* then adds a second color, pinning the result for each component to
* [0..255]. The alpha components of the mul and add arguments
* are ignored.
static sk_sp<SkColorFilter> MakeLightingFilter(SkColor mul, SkColor add);