Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
11
12class 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 */
26public:
27 static constexpr int kNumColors = 6;
28
29 static sk_sp<SkColorFilter> MakeWithSkColors(const SkColor[kNumColors]);
30};
31
32#endif // SkOverdrawColorFilter_DEFINED
#define SK_API
Definition SkAPI.h:35
uint32_t SkColor
Definition SkColor.h:37