/third_party/skia/docs/examples/ |
H A D | Region_op_2.cpp | 13 SkIRect drawBounds = {0, 0, 128, 128}; in REG_FIDDLE() local 14 xRegion.setPath(xPath, SkRegion(drawBounds)); in REG_FIDDLE() 15 xRegion.op(drawBounds.fLeft + frame * drawBounds.width(), drawBounds.fTop, in REG_FIDDLE() 16 drawBounds.fRight, drawBounds.fBottom, SkRegion::kReverseDifference_Op); in REG_FIDDLE()
|
H A D | Region_op_4.cpp | 14 SkIRect drawBounds = {0, 0, 128, 128}; in REG_FIDDLE() local 15 opRegion.setPath(opPath, SkRegion(drawBounds)); in REG_FIDDLE() 16 xRegion.setPath(xPath, SkRegion(drawBounds)); in REG_FIDDLE() 17 drawBounds.inset(frame * drawBounds.width() / 2, 0); in REG_FIDDLE() 18 rectRegion.op(drawBounds, opRegion, SkRegion::kIntersect_Op); in REG_FIDDLE()
|
H A D | Region_op_5.cpp | 14 SkIRect drawBounds = {0, 0, 128, 128}; in REG_FIDDLE() local 15 opRegion.setPath(opPath, SkRegion(drawBounds)); in REG_FIDDLE() 16 xRegion.setPath(xPath, SkRegion(drawBounds)); in REG_FIDDLE() 17 drawBounds.inset(frame * drawBounds.width() / 2, 0); in REG_FIDDLE() 18 rectRegion.op(opRegion, drawBounds, SkRegion::kUnion_Op); in REG_FIDDLE()
|
H A D | Region_op_6.cpp | 16 SkIRect drawBounds = {0, 0, 128, 128}; in REG_FIDDLE() local 17 opRegion.setPath(opPath, SkRegion(drawBounds)); in REG_FIDDLE() 18 xRegion.setPath(xPath, SkRegion(drawBounds)); in REG_FIDDLE() 19 drawBounds.inset(frame * drawBounds.width() / 2, 0); in REG_FIDDLE() 20 rectRegion.setRect(drawBounds); in REG_FIDDLE()
|
H A D | Region_contains_3.cpp | 14 SkIRect drawBounds = {0, 0, 128, 128}; in REG_FIDDLE() local 15 xRegion.setPath(xPath, SkRegion(drawBounds)); in REG_FIDDLE() 16 testRegion.setPath(testPath, SkRegion(drawBounds)); in REG_FIDDLE() 17 xRegion.op(drawBounds, SkRegion::kReverseDifference_Op); in REG_FIDDLE()
|
H A D | Region_op_1.cpp | 13 SkIRect drawBounds = {0, 0, 128, 128}; in REG_FIDDLE() local 14 xRegion.setPath(xPath, SkRegion(drawBounds)); in REG_FIDDLE() 15 xRegion.op(drawBounds, SkRegion::kReverseDifference_Op); in REG_FIDDLE()
|
H A D | Region_op_3.cpp | 14 SkIRect drawBounds = {0, 0, 128, 128}; in REG_FIDDLE() local 15 opRegion.setPath(opPath, SkRegion(drawBounds)); in REG_FIDDLE() 16 xRegion.setPath(xPath, SkRegion(drawBounds)); in REG_FIDDLE()
|
H A D | Region_contains_2.cpp | 13 SkIRect drawBounds = {0, 0, 128, 128}; in REG_FIDDLE() local 14 xRegion.setPath(xPath, SkRegion(drawBounds)); in REG_FIDDLE() 15 xRegion.op(drawBounds, SkRegion::kReverseDifference_Op); in REG_FIDDLE()
|
H A D | Region_writeToMemory.cpp | 12 SkIRect drawBounds = {0, 0, 128, 128}; in REG_FIDDLE() local 14 xRegion.setPath(xPath, SkRegion(drawBounds)); in REG_FIDDLE()
|
/third_party/skia/src/gpu/ops/ |
H A D | PathStencilCoverOp.h | 27 // If the path is inverse filled, drawBounds must be the entire backing store dimensions of the 35 const SkRect& drawBounds) in PathStencilCoverOp() 44 this->setBounds(drawBounds, HasAABloat::kNo, IsHairline::kNo); in PathStencilCoverOp() 45 SkDEBUGCODE(fOriginalDrawBounds = drawBounds;) in PathStencilCoverOp() 57 const SkRect& drawBounds) in PathStencilCoverOp() 66 this->setBounds(drawBounds, HasAABloat::kNo, IsHairline::kNo); in PathStencilCoverOp() 67 SkDEBUGCODE(fOriginalDrawBounds = drawBounds;) in PathStencilCoverOp() 29 PathStencilCoverOp(SkArenaAlloc* arena, const SkMatrix& viewMatrix, const SkPath& path, GrPaint&& paint, GrAAType aaType, FillPathFlags pathFlags, const SkRect& drawBounds) PathStencilCoverOp() argument 51 PathStencilCoverOp(const PathDrawList* pathDrawList, int totalCombinedVerbCnt, int pathCount, GrPaint&& paint, GrAAType aaType, FillPathFlags pathFlags, const SkRect& drawBounds) PathStencilCoverOp() argument
|
H A D | TessellationPathRenderer.cpp | 32 const SkRect& drawBounds, in make_non_convex_fill_op() 43 float gpuFragmentWork = drawBounds.height() * drawBounds.width(); in make_non_convex_fill_op() 54 drawBounds); in make_non_convex_fill_op() 64 drawBounds); in make_non_convex_fill_op() 181 const SkRect& drawBounds = path.isInverseFillType() in onDrawPath() local 188 drawBounds, in onDrawPath() 28 make_non_convex_fill_op(GrRecordingContext* rContext, SkArenaAlloc* arena, skgpu::v1::FillPathFlags fillPathFlags, GrAAType aaType, const SkRect& drawBounds, const SkMatrix& viewMatrix, const SkPath& path, GrPaint&& paint) make_non_convex_fill_op() argument
|
H A D | PathInnerTriangulateOp.h | 41 const SkRect& drawBounds) in PathInnerTriangulateOp() 50 this->setBounds(drawBounds, HasAABloat::kNo, IsHairline::kNo); in PathInnerTriangulateOp() 36 PathInnerTriangulateOp(const SkMatrix& viewMatrix, const SkPath& path, GrPaint&& paint, GrAAType aaType, FillPathFlags pathFlags, const SkRect& drawBounds) PathInnerTriangulateOp() argument
|
H A D | PathTessellateOp.h | 32 const SkRect& drawBounds) in PathTessellateOp() 45 this->setBounds(drawBounds, HasAABloat::kNo, IsHairline::kNo); in PathTessellateOp() 26 PathTessellateOp(SkArenaAlloc* arena, GrAAType aaType, const GrUserStencilSettings* stencil, const SkMatrix& viewMatrix, const SkPath& path, GrPaint&& paint, const SkRect& drawBounds) PathTessellateOp() argument
|
H A D | SmallPathRenderer.cpp | 434 SkRect drawBounds = SkRect::Make(devPathBounds).makeOffset(-translateX, -translateY); in addDFPathToAtlas() local 435 drawBounds.fLeft /= scale; in addDFPathToAtlas() 436 drawBounds.fTop /= scale; in addDFPathToAtlas() 437 drawBounds.fRight /= scale; in addDFPathToAtlas() 438 drawBounds.fBottom /= scale; in addDFPathToAtlas() 442 drawBounds, SK_DistanceFieldPad, shapeData); in addDFPathToAtlas() 508 SkRect drawBounds = SkRect::Make(devPathBounds).makeOffset(-translateX, -translateY); in addBMPathToAtlas() local 512 drawBounds, 0, shapeData); in addBMPathToAtlas()
|
/third_party/skia/src/gpu/ |
H A D | GrClip.h | 86 virtual PreClipResult preApply(const SkRect& drawBounds, GrAA aa) const { in preApply() argument 87 SkIRect pixelBounds = GetPixelIBounds(drawBounds, aa); in preApply() 115 * @param drawBounds device-space bounds of the query region. 117 static bool IsInsideClip(const SkIRect& innerClipBounds, const SkRect& drawBounds, GrAA aa) { in IsInsideClip() argument 118 return innerClipBounds.contains(GetPixelIBounds(drawBounds, aa)); in IsInsideClip() 125 * @param drawBounds device-space bounds of the query region. 128 static bool IsOutsideClip(const SkIRect& outerClipBounds, const SkRect& drawBounds, GrAA aa) { in IsOutsideClip() argument 129 return !SkIRect::Intersects(outerClipBounds, GetPixelIBounds(drawBounds, aa)); in IsOutsideClip()
|
H A D | GrFixedClip.cpp | 16 GrClip::PreClipResult GrFixedClip::preApply(const SkRect& drawBounds, GrAA aa) const { in preApply() argument 17 SkIRect pixelBounds = GetPixelIBounds(drawBounds, aa); in preApply()
|
H A D | GrOpFlushState.h | 194 void bindPipelineAndScissorClip(const GrProgramInfo& programInfo, const SkRect& drawBounds) { in bindPipelineAndScissorClip() argument 197 this->bindPipeline(programInfo, drawBounds); in bindPipelineAndScissorClip() 217 void bindPipeline(const GrProgramInfo& programInfo, const SkRect& drawBounds) { in bindPipeline() argument 218 fOpsRenderPass->bindPipeline(programInfo, drawBounds); in bindPipeline()
|
H A D | GrOpsRenderPass.h | 55 void bindPipeline(const GrProgramInfo&, const SkRect& drawBounds); 182 virtual bool onBindPipeline(const GrProgramInfo&, const SkRect& drawBounds) = 0;
|
/third_party/skia/experimental/graphite/src/ |
H A D | Device.cpp | 273 if (clip.drawBounds().isEmptyNegativeOrNaN()) { in drawShape() 291 fColorDepthBoundsManager->getMostRecentDraw(clip.drawBounds()); in drawShape() 338 Rect drawBounds = shape.bounds(); in applyClipToDraw() local 341 drawBounds.outset(localStyleOutset); in applyClipToDraw() 343 drawBounds = localToDevice.mapRect(drawBounds); in applyClipToDraw() 347 drawBounds.outset(0.5f); in applyClipToDraw() 350 drawBounds.intersect(SkRect::Make(scissor)); in applyClipToDraw() 351 if (drawBounds.isEmptyNegativeOrNaN()) { in applyClipToDraw() 353 return {{drawBounds, scisso in applyClipToDraw() [all...] |
H A D | DrawList.cpp | 54 SkASSERT(!shape.isEmpty() && !clip.drawBounds().isEmptyNegativeOrNaN()); in stencilAndFillPath() 67 SkASSERT(!shape.isEmpty() && !clip.drawBounds().isEmptyNegativeOrNaN()); in fillConvexPath() 83 SkASSERT(!shape.isEmpty() && !clip.drawBounds().isEmptyNegativeOrNaN()); in strokePath()
|
H A D | DrawList.h | 99 Clip(const Rect& drawBounds, const SkIRect& scissor) in Clip() argument 100 : fDrawBounds(drawBounds) in Clip() 103 const Rect& drawBounds() const { return fDrawBounds; } in drawBounds() function in skgpu::Clip
|
/third_party/skia/bench/graphite/ |
H A D | IntersectionTreeBench.cpp | 137 SkRect drawBounds = matrix.mapRect(path.getBounds()); 138 float gpuFragmentWork = drawBounds.height() * drawBounds.width(); 145 rects->push_back(drawBounds);
|
/third_party/skia/src/gpu/v1/ |
H A D | StencilClip.h | 55 PreClipResult preApply(const SkRect& drawBounds, GrAA aa) const final { 57 return this->INHERITED::preApply(drawBounds, aa); 59 return fFixedClip.preApply(drawBounds, aa);
|
H A D | SurfaceDrawContext.cpp | 491 SkRect drawBounds = quad->fDevice.bounds(); in attemptQuadOptimization() local 492 if (!quad->fDevice.isFinite() || drawBounds.isEmpty() || in attemptQuadOptimization() 493 GrClip::IsOutsideClip(SkIRect::MakeSize(this->dimensions()), drawBounds, GrAA::kYes)) { in attemptQuadOptimization() 505 if (drawBounds.width() > kLargeDrawLimit || drawBounds.height() > kLargeDrawLimit) { in attemptQuadOptimization() 511 GrClip::PreClipResult result = clip ? clip->preApply(drawBounds, *aa) in attemptQuadOptimization() 543 if (!drawBounds.intersect(clippedBounds)) { in attemptQuadOptimization() 549 if (drawBounds.width() < 1.f || drawBounds.height() < 1.f) { in attemptQuadOptimization() 560 drawBounds in attemptQuadOptimization() [all...] |
/third_party/skia/gm/ |
H A D | fontmgr.cpp | 247 SkRect drawBounds = min; in show_bounds() local 248 drawBounds.join(fontBounds); in show_bounds() 251 canvas->translate(x - drawBounds.left(), y); in show_bounds() 323 return drawBounds; in show_bounds() 355 SkRect drawBounds = show_bounds(canvas, font, x, y, color, fLabelBounds); variable 356 x += drawBounds.width() + 20;
|