Skia
2D Graphics Library
SkOverdrawColorFilter.h
Go to the documentation of this file.
1 /*
2  * Copyright 2016 Google Inc.
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 #include "include/core/SkColor.h"
10 #include "include/core/SkTypes.h"
11 
12 class SkColorFilter;
13 
14 #ifndef SkOverdrawColorFilter_DEFINED
15 #define SkOverdrawColorFilter_DEFINED
16 
25 class SK_API SkOverdrawColorFilter {
26 public:
27  static constexpr int kNumColors = 6;
28 
29  static sk_sp<SkColorFilter> MakeWithSkColors(const SkColor[kNumColors]);
30 };
31 
32 #endif // SkOverdrawColorFilter_DEFINED
Types, consts, functions, and macros for colors.
uint32_t SkColor
32-bit ARGB color value, unpremultiplied.
Definition: SkColor.h:37
ColorFilters are optional objects in the drawing pipeline.
Definition: SkColorFilter.h:35
Uses the value in the src alpha channel to set the dst pixel.
Definition: SkOverdrawColorFilter.h:25
static sk_sp< SkColorFilter > MakeWithSkColors(const SkColor[kNumColors])