aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/ops/GrStencilPathOp.cpp
blob: 01042f6670d65a1e4ca92bc468d80b67f809cb83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * Copyright 2017 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include "GrStencilPathOp.h"

#include "GrGpu.h"
#include "GrOpFlushState.h"

void GrStencilPathOp::onExecute(GrOpFlushState* state) {
    SkASSERT(state->drawOpArgs().fRenderTarget);

    GrPathRendering::StencilPathArgs args(fUseHWAA, state->drawOpArgs().fRenderTarget,
                                          &fViewMatrix, &fScissor, &fStencil);
    state->gpu()->pathRendering()->stencilPath(args, fPath.get());
}