Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
GrOvalOpFactory.h
Go to the documentation of this file.
1/*
2 * Copyright 2013 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 GrOvalOpFactory_DEFINED
9#define GrOvalOpFactory_DEFINED
10
11#ifndef SK_ENABLE_OPTIMIZE_SIZE
12
16
17class GrDrawOp;
18class GrPaint;
20struct GrShaderCaps;
21class GrStyle;
22class SkMatrix;
23struct SkRect;
24class SkRRect;
25class SkStrokeRec;
26
27/*
28 * This namespace wraps helper functions that draw ovals, rrects, and arcs (filled & stroked)
29 */
31public:
33 GrPaint&&,
34 const SkMatrix&,
35 const SkRect& oval,
36 const GrStyle& style,
37 const GrShaderCaps*);
38
40 GrPaint&&,
41 const SkMatrix&,
42 const SkRect& oval,
43 const GrStyle& style,
44 const GrShaderCaps*);
45
47 GrPaint&&,
48 const SkMatrix&,
49 const SkRRect&,
50 const SkStrokeRec&,
51 const GrShaderCaps*);
52
54 GrPaint&&,
55 const SkMatrix&,
56 const SkRRect&,
57 const SkStrokeRec&,
58 const GrShaderCaps*);
59
61 GrPaint&&,
62 const SkMatrix&,
63 const SkRect& oval,
64 SkScalar startAngle,
65 SkScalar sweepAngle,
66 bool useCenter,
67 const GrStyle&,
68 const GrShaderCaps*);
69};
70
71#endif // SK_ENABLE_OPTIMIZE_SIZE
72
73#endif // GrOvalOpFactory_DEFINED
std::unique_ptr< GrOp > Owner
Definition GrOp.h:72
static GrOp::Owner MakeArcOp(GrRecordingContext *, GrPaint &&, const SkMatrix &, const SkRect &oval, SkScalar startAngle, SkScalar sweepAngle, bool useCenter, const GrStyle &, const GrShaderCaps *)
static GrOp::Owner MakeOvalOp(GrRecordingContext *, GrPaint &&, const SkMatrix &, const SkRect &oval, const GrStyle &style, const GrShaderCaps *)
static GrOp::Owner MakeCircularRRectOp(GrRecordingContext *, GrPaint &&, const SkMatrix &, const SkRRect &, const SkStrokeRec &, const GrShaderCaps *)
static GrOp::Owner MakeCircleOp(GrRecordingContext *, GrPaint &&, const SkMatrix &, const SkRect &oval, const GrStyle &style, const GrShaderCaps *)
static GrOp::Owner MakeRRectOp(GrRecordingContext *, GrPaint &&, const SkMatrix &, const SkRRect &, const SkStrokeRec &, const GrShaderCaps *)
float SkScalar
Definition extension.cpp:12