xref: /aosp_15_r20/external/skia/include/effects/SkColorMatrixFilter.h (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
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 "include/core/SkColorFilter.h"
12 
13 // (DEPRECATED) This factory function is deprecated. Please use the one in
14 // SkColorFilters (i.e., Lighting).
15 class SK_API SkColorMatrixFilter : public SkColorFilter {
16 public:
MakeLightingFilter(SkColor mul,SkColor add)17     static sk_sp<SkColorFilter> MakeLightingFilter(SkColor mul, SkColor add) {
18         return SkColorFilters::Lighting(mul, add);
19     }
20 };
21 
22 #endif
23