Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
third_party
skia
include
effects
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
"
9
#include "
include/core/SkRefCnt.h
"
10
#include "
include/core/SkTypes.h
"
11
12
class
SkColorFilter
;
13
14
#ifndef SkOverdrawColorFilter_DEFINED
15
#define SkOverdrawColorFilter_DEFINED
16
17
/**
18
* Uses the value in the src alpha channel to set the dst pixel.
19
* 0 -> colors[0]
20
* 1 -> colors[1]
21
* ...
22
* 5 (or larger) -> colors[5]
23
*
24
*/
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
SK_API
#define SK_API
Definition
SkAPI.h:35
SkColor.h
SkColor
uint32_t SkColor
Definition
SkColor.h:37
SkRefCnt.h
SkTypes.h
SkColorFilter
Definition
SkColorFilter.h:35
SkOverdrawColorFilter
Definition
SkOverdrawColorFilter.h:25
sk_sp
Definition
SkRefCnt.h:220
Generated on Fri Apr 26 2024 06:16:11 for Flutter Engine by
1.9.8