Home
last modified time | relevance | path

Searched refs:GrStyle (Results 1 – 25 of 95) sorted by relevance

1234

/external/skqp/src/gpu/
DGrStyle.h23 class GrStyle {
29 static const GrStyle& SimpleFill() { in SimpleFill()
30 static const GrStyle kFill(SkStrokeRec::kFill_InitStyle); in SimpleFill()
38 static const GrStyle& SimpleHairline() { in SimpleHairline()
39 static const GrStyle kHairline(SkStrokeRec::kHairline_InitStyle); in SimpleHairline()
65 static int KeySize(const GrStyle&, Apply, uint32_t flags = 0);
74 static void WriteKey(uint32_t*, const GrStyle&, Apply, SkScalar scale, uint32_t flags = 0);
76 GrStyle() : GrStyle(SkStrokeRec::kFill_InitStyle) {} in GrStyle() function
78 explicit GrStyle(SkStrokeRec::InitStyle initStyle) : fStrokeRec(initStyle) {} in GrStyle() function
80 GrStyle(const SkStrokeRec& strokeRec, sk_sp<SkPathEffect> pe) : fStrokeRec(strokeRec) { in GrStyle() function
[all …]
DGrPath.cpp11 static inline void write_style_key(uint32_t* key, const GrStyle& style) { in write_style_key()
13 GrStyle::WriteKey(key, style, GrStyle::Apply::kPathEffectAndStrokeRec, SK_Scalar1); in write_style_key()
19 int styleCnt = GrStyle::KeySize(shape.style(), GrStyle::Apply::kPathEffectAndStrokeRec); in ComputeKey()
37 bool GrPath::isEqualTo(const SkPath& path, const GrStyle& style) const { in isEqualTo()
39 int cnt0 = GrStyle::KeySize(fStyle, GrStyle::Apply::kPathEffectAndStrokeRec); in isEqualTo()
40 int cnt1 = GrStyle::KeySize(style, GrStyle::Apply::kPathEffectAndStrokeRec); in isEqualTo()
DGrStyle.cpp11 int GrStyle::KeySize(const GrStyle &style, Apply apply, uint32_t flags) { in KeySize()
33 void GrStyle::WriteKey(uint32_t *key, const GrStyle &style, Apply apply, SkScalar scale, in WriteKey()
106 void GrStyle::initPathEffect(sk_sp<SkPathEffect> pe) { in initPathEffect()
129 bool GrStyle::applyPathEffect(SkPath* dst, SkStrokeRec* strokeRec, const SkPath& src) const { in applyPathEffect()
158 bool GrStyle::applyPathEffectToPath(SkPath *dst, SkStrokeRec *remainingStroke, in applyPathEffectToPath()
170 bool GrStyle::applyToPath(SkPath* dst, SkStrokeRec::InitStyle* style, const SkPath& src, in applyToPath()
DGrShape.h44 explicit GrShape(const SkPath& path) : GrShape(path, GrStyle::SimpleFill()) {} in GrShape()
46 explicit GrShape(const SkRRect& rrect) : GrShape(rrect, GrStyle::SimpleFill()) {} in GrShape()
48 explicit GrShape(const SkRect& rect) : GrShape(rect, GrStyle::SimpleFill()) {} in GrShape()
50 GrShape(const SkPath& path, const GrStyle& style) : fStyle(style) { in GrShape()
55 GrShape(const SkRRect& rrect, const GrStyle& style) : fStyle(style) { in GrShape()
65 const GrStyle& style) in GrShape()
84 GrShape(const SkRect& rect, const GrStyle& style) : fStyle(style) { in GrShape()
117 SkScalar sweepAngleDegrees, bool useCenter, const GrStyle& style);
143 const GrStyle& style() const { return fStyle; } in style()
150 GrShape applyStyle(GrStyle::Apply apply, SkScalar scale) const { in applyStyle()
[all …]
DGrShape.cpp310 void GrShape::setInheritedKey(const GrShape &parent, GrStyle::Apply apply, SkScalar scale) { in setInheritedKey()
332 styleKeyFlags |= GrStyle::kClosed_KeyFlag; in setInheritedKey()
335 styleKeyFlags |= GrStyle::kNoJoins_KeyFlag; in setInheritedKey()
337 int styleCnt = GrStyle::KeySize(parent.fStyle, apply, styleKeyFlags); in setInheritedKey()
354 GrStyle::WriteKey(fInheritedKey.get() + parentCnt, parent.fStyle, apply, scale, in setInheritedKey()
375 bool useCenter, const GrStyle& style) { in MakeArc()
417 GrShape::GrShape(const GrShape& parent, GrStyle::Apply apply, SkScalar scale) { in GrShape()
423 (GrStyle::Apply::kPathEffectOnly == apply && !parent.style().pathEffect())) { in GrShape()
448 tmpParent.init(*srcForPathEffect, GrStyle(strokeRec, nullptr)); in GrShape()
455 if (GrStyle::Apply::kPathEffectAndStrokeRec == apply && strokeRec.needToApply()) { in GrShape()
[all …]
DGrPath.h24 GrPath(GrGpu* gpu, const SkPath& skPath, const GrStyle& style) in GrPath()
41 bool isEqualTo(const SkPath& path, const GrStyle& style) const;
50 GrStyle fStyle;
DGrRenderTargetContext.h35 class GrStyle; variable
102 const GrStyle* style = nullptr);
189 const GrStyle& style);
235 const GrStyle&);
304 const GrStyle& style,
321 const GrStyle& style);
345 const GrStyle& style);
DGrPathRendering.h17 class GrStyle; variable
88 virtual sk_sp<GrPath> createPath(const SkPath&, const GrStyle&) = 0;
/external/skia/src/gpu/
DGrStyle.h23 class GrStyle {
29 static const GrStyle& SimpleFill() { in SimpleFill()
30 static const GrStyle kFill(SkStrokeRec::kFill_InitStyle); in SimpleFill()
38 static const GrStyle& SimpleHairline() { in SimpleHairline()
39 static const GrStyle kHairline(SkStrokeRec::kHairline_InitStyle); in SimpleHairline()
65 static int KeySize(const GrStyle&, Apply, uint32_t flags = 0);
74 static void WriteKey(uint32_t*, const GrStyle&, Apply, SkScalar scale, uint32_t flags = 0);
76 GrStyle() : GrStyle(SkStrokeRec::kFill_InitStyle) {} in GrStyle() function
78 explicit GrStyle(SkStrokeRec::InitStyle initStyle) : fStrokeRec(initStyle) {} in GrStyle() function
80 GrStyle(const SkStrokeRec& strokeRec, sk_sp<SkPathEffect> pe) : fStrokeRec(strokeRec) { in GrStyle() function
[all …]
DGrPath.cpp11 static inline void write_style_key(uint32_t* key, const GrStyle& style) { in write_style_key()
13 GrStyle::WriteKey(key, style, GrStyle::Apply::kPathEffectAndStrokeRec, SK_Scalar1); in write_style_key()
19 int styleCnt = GrStyle::KeySize(shape.style(), GrStyle::Apply::kPathEffectAndStrokeRec); in ComputeKey()
37 bool GrPath::isEqualTo(const SkPath& path, const GrStyle& style) const { in isEqualTo()
39 int cnt0 = GrStyle::KeySize(fStyle, GrStyle::Apply::kPathEffectAndStrokeRec); in isEqualTo()
40 int cnt1 = GrStyle::KeySize(style, GrStyle::Apply::kPathEffectAndStrokeRec); in isEqualTo()
DGrStyle.cpp11 int GrStyle::KeySize(const GrStyle &style, Apply apply, uint32_t flags) { in KeySize()
33 void GrStyle::WriteKey(uint32_t *key, const GrStyle &style, Apply apply, SkScalar scale, in WriteKey()
106 void GrStyle::initPathEffect(sk_sp<SkPathEffect> pe) { in initPathEffect()
129 bool GrStyle::applyPathEffect(SkPath* dst, SkStrokeRec* strokeRec, const SkPath& src) const { in applyPathEffect()
158 bool GrStyle::applyPathEffectToPath(SkPath *dst, SkStrokeRec *remainingStroke, in applyPathEffectToPath()
170 bool GrStyle::applyToPath(SkPath* dst, SkStrokeRec::InitStyle* style, const SkPath& src, in applyToPath()
DGrShape.h44 explicit GrShape(const SkPath& path) : GrShape(path, GrStyle::SimpleFill()) {} in GrShape()
46 explicit GrShape(const SkRRect& rrect) : GrShape(rrect, GrStyle::SimpleFill()) {} in GrShape()
48 explicit GrShape(const SkRect& rect) : GrShape(rect, GrStyle::SimpleFill()) {} in GrShape()
50 GrShape(const SkPath& path, const GrStyle& style) : fStyle(style) { in GrShape()
55 GrShape(const SkRRect& rrect, const GrStyle& style) : fStyle(style) { in GrShape()
65 const GrStyle& style) in GrShape()
84 GrShape(const SkRect& rect, const GrStyle& style) : fStyle(style) { in GrShape()
117 SkScalar sweepAngleDegrees, bool useCenter, const GrStyle& style);
143 const GrStyle& style() const { return fStyle; } in style()
150 GrShape applyStyle(GrStyle::Apply apply, SkScalar scale) const { in applyStyle()
[all …]
DGrShape.cpp310 void GrShape::setInheritedKey(const GrShape &parent, GrStyle::Apply apply, SkScalar scale) { in setInheritedKey()
332 styleKeyFlags |= GrStyle::kClosed_KeyFlag; in setInheritedKey()
335 styleKeyFlags |= GrStyle::kNoJoins_KeyFlag; in setInheritedKey()
337 int styleCnt = GrStyle::KeySize(parent.fStyle, apply, styleKeyFlags); in setInheritedKey()
354 GrStyle::WriteKey(fInheritedKey.get() + parentCnt, parent.fStyle, apply, scale, in setInheritedKey()
375 bool useCenter, const GrStyle& style) { in MakeArc()
417 GrShape::GrShape(const GrShape& parent, GrStyle::Apply apply, SkScalar scale) { in GrShape()
423 (GrStyle::Apply::kPathEffectOnly == apply && !parent.style().pathEffect())) { in GrShape()
448 tmpParent.init(*srcForPathEffect, GrStyle(strokeRec, nullptr)); in GrShape()
455 if (GrStyle::Apply::kPathEffectAndStrokeRec == apply && strokeRec.needToApply()) { in GrShape()
[all …]
DGrPath.h24 GrPath(GrGpu* gpu, const SkPath& skPath, const GrStyle& style) in GrPath()
41 bool isEqualTo(const SkPath& path, const GrStyle& style) const;
50 GrStyle fStyle;
DGrRenderTargetContext.h35 class GrStyle; variable
102 const GrStyle* style = nullptr);
229 const GrStyle& style);
275 const GrStyle&);
344 const GrStyle& style,
361 const GrStyle& style);
385 const GrStyle& style);
/external/skqp/tests/
DGpuDrawPathTest.cpp96 GrStyle styles[] = {
97 GrStyle::SimpleFill(),
98 GrStyle::SimpleHairline(),
99 GrStyle(strokePaint)
102 for (const GrStyle& style : styles) {
114 GrPath::ComputeKey(GrShape(path1, GrStyle::SimpleFill()), &key1, &isVolatile);
117 GrPath::ComputeKey(GrShape(path2, GrStyle::SimpleFill()), &key2, &isVolatile);
132 GrPath::ComputeKey(GrShape(path2, GrStyle::SimpleFill()), &tempKey, &isVolatile);
DPathRendererCacheTests.cpp36 const GrStyle& style) { in draw_path()
45 shape = shape.applyStyle(GrStyle::Apply::kPathEffectAndStrokeRec, 1.0f); in draw_path()
76 GrStyle style = GrStyle(SkStrokeRec::kFill_InitStyle)) { in test_path()
131 GrStyle style(paint);
152 GrStyle style(paint);
/external/skia/tests/
DGpuDrawPathTest.cpp96 GrStyle styles[] = {
97 GrStyle::SimpleFill(),
98 GrStyle::SimpleHairline(),
99 GrStyle(strokePaint)
102 for (const GrStyle& style : styles) {
114 GrPath::ComputeKey(GrShape(path1, GrStyle::SimpleFill()), &key1, &isVolatile);
117 GrPath::ComputeKey(GrShape(path2, GrStyle::SimpleFill()), &key2, &isVolatile);
132 GrPath::ComputeKey(GrShape(path2, GrStyle::SimpleFill()), &tempKey, &isVolatile);
DPathRendererCacheTests.cpp36 const GrStyle& style) { in draw_path()
45 shape = shape.applyStyle(GrStyle::Apply::kPathEffectAndStrokeRec, 1.0f); in draw_path()
76 GrStyle style = GrStyle(SkStrokeRec::kFill_InitStyle)) { in test_path()
131 GrStyle style(paint);
152 GrStyle style(paint);
/external/skia/src/gpu/ops/
DGrDashOp.h17 class GrStyle; variable
33 const GrStyle& style,
35 bool CanDrawDashLine(const SkPoint pts[2], const GrStyle& style, const SkMatrix& viewMatrix);
DGrOvalOpFactory.h18 class GrStyle; variable
33 const GrStyle& style,
50 const GrStyle&,
/external/skqp/src/gpu/ops/
DGrDashOp.h17 class GrStyle; variable
33 const GrStyle& style,
35 bool CanDrawDashLine(const SkPoint pts[2], const GrStyle& style, const SkMatrix& viewMatrix);
DGrOvalOpFactory.h18 class GrStyle; variable
33 const GrStyle& style,
50 const GrStyle&,
/external/skia/src/gpu/gl/
DGrGLPath.h15 class GrStyle; variable
36 GrGLPath(GrGLGpu*, const SkPath&, const GrStyle&);
/external/skqp/src/gpu/gl/
DGrGLPath.h15 class GrStyle; variable
36 GrGLPath(GrGLGpu*, const SkPath&, const GrStyle&);

1234