Skia
2D Graphics Library
SkBlender.h
Go to the documentation of this file.
1 /*
2  * Copyright 2021 Google LLC
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 SkBlender_DEFINED
9 #define SkBlender_DEFINED
10 
13 
19 class SK_API SkBlender : public SkFlattenable {
20 public:
25 
26 private:
27  SkBlender() = default;
28  friend class SkBlenderBase;
29 };
30 
31 #endif
SkBlendMode
Blends are operators that take in two colors (source, destination) and return a new color.
Definition: SkBlendMode.h:38
SkBlender represents a custom blend function in the Skia pipeline.
Definition: SkBlender.h:19
static sk_sp< SkBlender > Mode(SkBlendMode mode)
Create a blender that implements the specified BlendMode.
SkFlattenable is the base class for objects that need to be flattened into a data stream for either t...
Definition: SkFlattenable.h:28