1/*
2 * Copyright 2007 The Android Open Source Project
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 SkColorMatrixFilter_DEFINED
9#define SkColorMatrixFilter_DEFINED
10
11#include "SkColorFilter.h"
12#include "SkColorMatrix.h"
13
14class SK_API SkColorMatrixFilter : public SkColorFilter {
15public:
16    /**
17     *  Create a colorfilter that multiplies the RGB channels by one color, and
18     *  then adds a second color, pinning the result for each component to
19     *  [0..255]. The alpha components of the mul and add arguments
20     *  are ignored.
21     */
22    static sk_sp<SkColorFilter> MakeLightingFilter(SkColor mul, SkColor add);
23};
24
25#endif
26