Skia
2D Graphics Library
SkShaderMaskFilter.h
Go to the documentation of this file.
1 /*
2  * Copyright 2018 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 #ifndef SkShaderMaskFilter_DEFINED
9 #define SkShaderMaskFilter_DEFINED
10 
11 #include "include/core/SkRefCnt.h"
12 #include "include/core/SkTypes.h"
13 
14 class SkMaskFilter;
15 class SkShader;
16 
17 class SK_API SkShaderMaskFilter {
18 public:
20 
21 private:
22  static void RegisterFlattenables();
23  friend class SkFlattenable;
24 };
25 
26 #endif
SkFlattenable is the base class for objects that need to be flattened into a data stream for either t...
Definition: SkFlattenable.h:28
SkMaskFilter is the base class for object that perform transformations on the mask before drawing it.
Definition: SkMaskFilter.h:27
Definition: SkShaderMaskFilter.h:17
static sk_sp< SkMaskFilter > Make(sk_sp< SkShader > shader)
Shaders specify the source color(s) for what is being drawn.
Definition: SkShader.h:35