Home
last modified time | relevance | path

Searched refs:fShape (Results 1 – 25 of 47) sorted by relevance

12

/external/skia/src/gpu/geometry/
DGrStyledShape.cpp15 fShape = that.fShape; in operator =()
46 bool newIsInverted = is_inverted(original.fShape.inverted(), inversion); in MakeFilled()
47 if (original.style().isSimpleFill() && newIsInverted == original.fShape.inverted()) { in MakeFilled()
58 result.fShape = original.fShape; in MakeFilled()
60 result.fShape.setInverted(newIsInverted); in MakeFilled()
74 SkASSERT((!original.fShape.isLine() && !original.fShape.isPoint()) || result.fShape.isEmpty()); in MakeFilled()
139 switch(fShape.type()) { in unstyledKeySize()
164 int dataKeySize = path_key_from_data_size(fShape.path()); in unstyledKeySize()
173 SkASSERT(fShape.isEmpty()); in unstyledKeySize()
188 SkASSERT((fShape.isRect() || fShape.isRRect()) || in writeUnstyledKey()
[all …]
DGrStyledShape.h72 : fShape(path), fStyle(style) { in fShape() function
80 : fShape(rrect), fStyle(style) { in fShape() function
88 : fShape(rrect) in fShape() function
90 fShape.setPathWindingParams(dir, start); in fShape()
91 fShape.setInverted(inverted); in fShape()
99 : fShape(rect), fStyle(style) { in fShape() function
149 SkASSERT(!fShape.isRRect() || !fShape.rrect().isRect()); in isRect()
150 return fShape.isRect(); in isRect()
167 fShape.asPath(out, fStyle.isSimpleFill()); in asPath()
174 bool isEmpty() const { return fShape.isEmpty(); } in isEmpty()
[all …]
/external/skia/src/gpu/
DGrClipStack.cpp216 if (e.fShape.isRect()) { in analytic_clip_fp()
217 return GrFPSuccess(GrAARectEffect::Make(std::move(fp), edgeType, e.fShape.rect())); in analytic_clip_fp()
218 } else if (e.fShape.isRRect()) { in analytic_clip_fp()
219 return GrRRectEffect::Make(std::move(fp), edgeType, e.fShape.rrect(), caps); in analytic_clip_fp()
225 if (e.fShape.segmentMask() == SkPath::kLine_SegmentMask && e.fShape.convex()) { in analytic_clip_fp()
227 e.fShape.asPath(&devicePath); in analytic_clip_fp()
248 e.fShape.asPath(devicePath); in clip_atlas_fp()
310 SkASSERT(!e.fShape.inverted()); in draw_to_sw_mask()
314 GrShape inverted(e.fShape); in draw_to_sw_mask()
318 helper->drawShape(e.fShape, e.fLocalToDevice, SkRegion::kReplace_Op, e.fAA, alpha); in draw_to_sw_mask()
[all …]
DGrPathRenderer.cpp24 SkASSERT(fShape); in validate()
25 SkASSERT(fShape->style().isSimpleFill()); in validate()
27 fShape->asPath(&path); in validate()
52 canArgs.fShape = args.fShape; in drawPath()
62 args.fShape->asPath(&path); in drawPath()
63 SkASSERT(args.fShape->style().isSimpleFill()); in drawPath()
64 SkASSERT(kNoRestriction_StencilSupport == this->getStencilSupport(*args.fShape)); in drawPath()
117 args.fShape, in onStencilPath()
DGrSoftwarePathRenderer.cpp33 if (!args.fShape->style().applies() && SkToBool(fProxyProvider) && in onCanDrawPath()
206 , fShape(shape) in SoftwarePathData()
211 const GrStyledShape& getShape() const { return fShape; } in getShape()
217 GrStyledShape fShape; member in __anon161d5e3a0111::SoftwarePathData
232 SkASSERT(!args.fShape->style().applies()); in onDrawPath()
235 bool inverseFilled = args.fShape->inverseFilled() && in onDrawPath()
236 !IsStrokeHairlineOrEquivalent(args.fShape->style(), in onDrawPath()
243 args.fShape->hasUnstyledKey() && (GrAAType::kCoverage == args.fAAType); in onDrawPath()
246 args.fClip, *args.fShape, in onDrawPath()
283 GrUniqueKey::Builder builder(&maskKey, kDomain, 7 + args.fShape->unstyledKeySize(), in onDrawPath()
[all …]
DGrPathRenderer.h85 const GrStyledShape* fShape; member
99 SkASSERT(fShape); in validate()
123 const GrStyledShape* fShape; member
133 SkASSERT(fShape); in validate()
154 const GrStyledShape* fShape; member
166 SkASSERT(kNoSupport_StencilSupport != this->getStencilSupport(*args.fShape)); in stencilPath()
/external/skqp/src/gpu/
DGrPathRenderer.cpp23 SkASSERT(fShape); in validate()
24 SkASSERT(fShape->style().isSimpleFill()); in validate()
27 fShape->asPath(&path); in validate()
51 canArgs.fShape = args.fShape; in drawPath()
64 args.fShape->asPath(&path); in drawPath()
65 SkASSERT(args.fShape->style().isSimpleFill()); in drawPath()
66 SkASSERT(kNoRestriction_StencilSupport == this->getStencilSupport(*args.fShape)); in drawPath()
120 args.fShape, in onStencilPath()
DGrSoftwarePathRenderer.cpp32 if (!args.fShape->style().applies() && SkToBool(fProxyProvider) && in onCanDrawPath()
206 , fShape(shape) in SoftwarePathData()
211 const GrShape& getShape() const { return fShape; } in getShape()
217 GrShape fShape; member in __anone24777f10111::SoftwarePathData
246 SkASSERT(!args.fShape->style().applies()); in onDrawPath()
249 bool inverseFilled = args.fShape->inverseFilled() && in onDrawPath()
250 !IsStrokeHairlineOrEquivalent(args.fShape->style(), in onDrawPath()
257 args.fShape->hasUnstyledKey() && GrAAType::kCoverage == args.fAAType; in onDrawPath()
260 *args.fClip, *args.fShape, in onDrawPath()
297 GrUniqueKey::Builder builder(&maskKey, kDomain, 5 + args.fShape->unstyledKeySize(), in onDrawPath()
[all …]
DGrPathRenderer.h81 const GrShape* fShape; member
93 SkASSERT(fShape); in validate()
116 const GrShape* fShape; member
127 SkASSERT(fShape); in validate()
149 const GrShape* fShape; member
160 SkASSERT(kNoSupport_StencilSupport != this->getStencilSupport(*args.fShape)); in stencilPath()
/external/skqp/src/gpu/ops/
DGrDashLinePathRenderer.cpp20 if (args.fShape->style().isDashed() && args.fShape->asLine(pts, &inverted)) { in onCanDrawPath()
26 if (!GrDashOp::CanDrawDashLine(pts, args.fShape->style(), *args.fViewMatrix)) { in onCanDrawPath()
52 SkAssertResult(args.fShape->asLine(pts, nullptr)); in onDrawPath()
55 aaMode, args.fShape->style(), args.fUserStencilSettings); in onDrawPath()
DGrTessellatingPathRenderer.cpp152 if (!args.fShape->style().isSimpleFill() || args.fShape->knownToBeConvex()) { in onCanDrawPath()
157 args.fShape->asPath(&path); in onCanDrawPath()
161 } else if (!args.fShape->hasUnstyledKey()) { in onCanDrawPath()
214 , fShape(shape) in TessellatingPathOp()
239 SkASSERT(!fShape.style().applies()); in getPath()
241 fShape.asPath(&path); in getPath()
248 bool inverseFill = fShape.inverseFilled(); in draw()
253 int shapeKeyDataCnt = fShape.unstyledKeySize(); in draw()
256 fShape.writeUnstyledKey(&builder[0]); in draw()
267 tol = GrPathUtils::scaleToleranceToSrc(tol, fViewMatrix, fShape.bounds()); in draw()
[all …]
DGrAALinearizingConvexPathRenderer.cpp45 if (!args.fShape->knownToBeConvex()) { in onCanDrawPath()
48 if (args.fShape->style().pathEffect()) { in onCanDrawPath()
51 if (args.fShape->inverseFilled()) { in onCanDrawPath()
54 if (args.fShape->bounds().width() <= 0 && args.fShape->bounds().height() <= 0) { in onCanDrawPath()
58 const SkStrokeRec& stroke = args.fShape->style().strokeRec(); in onCanDrawPath()
70 !args.fShape->knownToBeClosed() || in onCanDrawPath()
337 SkASSERT(!args.fShape->isEmpty()); in onDrawPath()
338 SkASSERT(!args.fShape->style().pathEffect()); in onDrawPath()
341 args.fShape->asPath(&path); in onDrawPath()
342 bool fill = args.fShape->style().isSimpleFill(); in onDrawPath()
[all …]
DGrStencilAndCoverPathRenderer.cpp41 if (args.fShape->style().strokeRec().isHairlineStyle() || in onCanDrawPath()
42 args.fShape->style().hasNonDashPathEffect()) { in onCanDrawPath()
83 sk_sp<GrPath> p(get_gr_path(fResourceProvider, *args.fShape)); in onStencilPath()
91 SkASSERT(!args.fShape->style().strokeRec().isHairlineStyle()); in onDrawPath()
96 sk_sp<GrPath> path(get_gr_path(fResourceProvider, *args.fShape)); in onDrawPath()
98 if (args.fShape->inverseFilled()) { in onDrawPath()
DGrSmallPathRenderer.cpp181 if (!args.fShape->hasUnstyledKey()) { in onCanDrawPath()
186 if (!args.fShape->style().isSimpleFill()) { in onCanDrawPath()
194 if (args.fShape->inverseFilled()) { in onCanDrawPath()
205 SkRect bounds = args.fShape->styledBounds(); in onCanDrawPath()
397 const SkRect& bounds = args.fShape.bounds(); in onPrepareDraws()
440 ShapeDataKey key(args.fShape, SkScalarCeilToInt(desiredDimension)); in onPrepareDraws()
456 args.fShape, in onPrepareDraws()
465 ShapeDataKey key(args.fShape, args.fViewMatrix); in onPrepareDraws()
480 args.fShape, in onPrepareDraws()
852 GrShape fShape; member
[all …]
/external/skia/src/gpu/ops/
DGrDashLinePathRenderer.cpp20 if (args.fShape->style().isDashed() && args.fShape->asLine(pts, &inverted)) { in onCanDrawPath()
23 if (!GrDashOp::CanDrawDashLine(pts, args.fShape->style(), *args.fViewMatrix)) { in onCanDrawPath()
55 SkAssertResult(args.fShape->asLine(pts, nullptr)); in onDrawPath()
58 aaMode, args.fShape->style(), args.fUserStencilSettings); in onDrawPath()
DGrTriangulatingPathRenderer.cpp206 if (!args.fShape->style().isSimpleFill() || args.fShape->knownToBeConvex()) { in onCanDrawPath()
215 if (!args.fShape->hasUnstyledKey()) { in onCanDrawPath()
223 args.fShape->asPath(&path); in onCanDrawPath()
273 , fShape(shape) in TriangulatingPathOp()
300 SkASSERT(!fShape.style().applies()); in getPath()
302 fShape.asPath(&path); in getPath()
357 CreateKey(&key, fShape, fDevClipBounds); in createNonAAMesh()
360 fViewMatrix, fShape.bounds()); in createNonAAMesh()
392 int vertexCount = Triangulate(&allocator, fViewMatrix, fShape, fDevClipBounds, tol, in createNonAAMesh()
411 fShape.addGenIDChangeListener( in createNonAAMesh()
[all …]
DGrAALinearizingConvexPathRenderer.cpp46 if (!args.fShape->knownToBeConvex()) { in onCanDrawPath()
49 if (args.fShape->style().pathEffect()) { in onCanDrawPath()
52 if (args.fShape->inverseFilled()) { in onCanDrawPath()
55 if (args.fShape->bounds().width() <= 0 && args.fShape->bounds().height() <= 0) { in onCanDrawPath()
59 const SkStrokeRec& stroke = args.fShape->style().strokeRec(); in onCanDrawPath()
71 !args.fShape->knownToBeClosed() || in onCanDrawPath()
394 SkASSERT(!args.fShape->isEmpty()); in onDrawPath()
395 SkASSERT(!args.fShape->style().pathEffect()); in onDrawPath()
398 args.fShape->asPath(&path); in onDrawPath()
399 bool fill = args.fShape->style().isSimpleFill(); in onDrawPath()
[all …]
DGrSmallPathRenderer.cpp52 if (!args.fShape->hasUnstyledKey()) { in onCanDrawPath()
57 if (!args.fShape->style().isSimpleFill()) { in onCanDrawPath()
65 if (args.fShape->inverseFilled()) { in onCanDrawPath()
81 SkRect bounds = args.fShape->styledBounds(); in onCanDrawPath()
277 const SkRect& bounds = args.fShape.bounds(); in onPrepareDraws()
324 shapeData = atlasMgr->findOrCreate(args.fShape, ceilDesiredDimension); in onPrepareDraws()
332 args.fShape, in onPrepareDraws()
341 shapeData = atlasMgr->findOrCreate(args.fShape, args.fViewMatrix); in onPrepareDraws()
347 args.fShape, in onPrepareDraws()
684 GrStyledShape fShape; member
[all …]
/external/skqp/src/gpu/ccpr/
DGrCCDrawPathsOp.cpp126 , fShape(shape) in SingleDraw()
132 if (fShape.hasUnstyledKey()) { in SingleDraw()
157 !fShape.style().strokeRec().isFillStyle() && fStrokeDevWidth < 1) { in finalize()
161 SkASSERT(SkStrokeRec::kStroke_Style == fShape.style().strokeRec().getStyle()); in finalize()
164 fShape.asPath(&path); in finalize()
167 SkStrokeRec hairlineStroke = fShape.style().strokeRec(); in finalize()
173 fShape = GrShape(path, GrStyle(hairlineStroke, nullptr)); in finalize()
223 fShape.asPath(&path); in accountForOwnPath()
229 pathCache->find(onFlushRP, fShape, fMaskDevIBounds, fMatrix, &fCachedMaskShift); in accountForOwnPath()
240 int idx = (fShape.style().strokeRec().isFillStyle()) in accountForOwnPath()
[all …]
/external/skia/modules/skottie/src/
DPath.cpp23 this->bind(abuilder, jpath, fShape); in PathAdapter()
30 SkPath path = fShape; in onSync()
39 ShapeValue fShape; member in skottie::internal::__anon5d719d5e0111::PathAdapter
/external/skia/modules/skottie/src/effects/
DGradientEffect.cpp52 .bind( kRampShape_Index, fShape ) in GradientRampEffectAdapter()
87 const auto instance_type = (SkScalarRoundToInt(fShape) == kLinearShapeValue) in onSync()
124 fShape = 0; // 1 -> linear, 7 -> radial (?!) member in skottie::internal::__anona84dad1b0111::GradientRampEffectAdapter
/external/skia/gm/
Dxform.cpp21 sk_sp<Shape> fShape; member in XformGM
55 fShape = parent; in XformGM()
91 fShape->draw(ctx.get()); in onDraw()
/external/skia/tests/
DGrClipStackTest.cpp242 bool intersect = (e.fOp == SkClipOp::kIntersect && !e.fShape.inverted()) || in getOptimalBounds()
243 (e.fOp == SkClipOp::kDifference && e.fShape.inverted()); in getOptimalBounds()
250 elementBounds = GrClip::GetPixelIBounds(e.fLocalToDevice.mapRect(e.fShape.bounds()), in getOptimalBounds()
255 if (e.fShape.isRect() && e.fLocalToDevice.isIdentity()) { in getOptimalBounds()
256 elementBounds = GrClip::GetPixelIBounds(e.fShape.rect(), e.fAA, in getOptimalBounds()
258 } else if (e.fShape.isRRect() && e.fLocalToDevice.isIdentity()) { in getOptimalBounds()
259 elementBounds = GrClip::GetPixelIBounds(SkRRectPriv::InnerBounds(e.fShape.rrect()), in getOptimalBounds()
273 a.fShape.type() != b.fShape.type()) { in compare_elements()
276 switch(a.fShape.type()) { in compare_elements()
278 return a.fShape.rect() == b.fShape.rect(); in compare_elements()
[all …]
/external/skia/modules/skottie/src/text/
DRangeSelector.cpp295 if (selector->fShape == Shape::kSquare) { in Make()
306 , fShape(sh) { in RangeSelector()
366 SkASSERT(static_cast<size_t>(fShape) < SK_ARRAY_COUNT(gShapeInfo)); in modulateCoverage()
367 ShapeGenerator gen(gShapeInfo[static_cast<size_t>(fShape)], ease_lo, ease_hi); in modulateCoverage()
369 if (fShape == Shape::kSquare) { in modulateCoverage()
/external/skia/src/gpu/tessellate/
DGrTessellationPathRenderer.cpp130 const GrStyledShape& shape = *args.fShape; in onCanDrawPath()
251 args.fViewMatrix->mapRect(&devBounds, args.fShape->bounds()); in onDrawPath()
261 if (this->tryAddPathToAtlas(*args.fContext->priv().caps(), *args.fViewMatrix, *args.fShape, in onDrawPath()
287 devBounds, *args.fViewMatrix, *args.fShape, std::move(args.fPaint))) { in onDrawPath()
362 args.fViewMatrix->mapRect(&devBounds, args.fShape->bounds()); in onStencilPath()
364 devBounds, *args.fViewMatrix, *args.fShape, GrPaint())) { in onStencilPath()

12