Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
DashOp.h
Go to the documentation of this file.
1/*
2 * Copyright 2014 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 skgpu_ganesh_DashOp_DEFINED
9#define skgpu_ganesh_DashOp_DEFINED
10
11#include "include/gpu/GrTypes.h"
13
14class GrPaint;
16class GrStyle;
18
19namespace skgpu::ganesh::DashOp {
20
21enum class AAMode {
22 kNone,
25};
26
28 GrPaint&&,
29 const SkMatrix& viewMatrix,
30 const SkPoint pts[2],
31 AAMode,
32 const GrStyle& style,
34bool CanDrawDashLine(const SkPoint pts[2], const GrStyle& style, const SkMatrix& viewMatrix);
35
36} // namespace skgpu::ganesh::DashOp
37
38#endif // skgpu_ganesh_DashOp_DEFINED
std::unique_ptr< GrOp > Owner
Definition GrOp.h:72
GrOp::Owner MakeDashLineOp(GrRecordingContext *context, GrPaint &&paint, const SkMatrix &viewMatrix, const SkPoint pts[2], AAMode aaMode, const GrStyle &style, const GrUserStencilSettings *stencilSettings)
Definition DashOp.cpp:1130
bool CanDrawDashLine(const SkPoint pts[2], const GrStyle &style, const SkMatrix &viewMatrix)
Definition DashOp.cpp:1190