aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/ops/GrRegionOp.h
blob: e9281f86092d04269258c37b66e85cd42611faaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * Copyright 2016 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef GrRegionOp_DEFINED
#define GrRegionOp_DEFINED

#include "GrTypesPriv.h"

class GrContext;
class GrDrawOp;
class SkMatrix;
class SkRegion;
class GrPaint;
struct GrUserStencilSettings;

namespace GrRegionOp {
/** GrAAType must be kNone or kMSAA. */
std::unique_ptr<GrDrawOp> Make(GrContext*,
                               GrPaint&&,
                               const SkMatrix& viewMatrix,
                               const SkRegion&,
                               GrAAType,
                               const GrUserStencilSettings* stencilSettings = nullptr);
}

#endif