Home
last modified time | relevance | path

Searched refs:drawBounds (Results 1 – 25 of 48) sorted by relevance

12

/external/skia/docs/examples/
DRegion_op_2.cpp13 SkIRect drawBounds = {0, 0, 128, 128};
14 xRegion.setPath(xPath, SkRegion(drawBounds));
15 xRegion.op(drawBounds.fLeft + frame * drawBounds.width(), drawBounds.fTop,
16 drawBounds.fRight, drawBounds.fBottom, SkRegion::kReverseDifference_Op);
DRegion_op_4.cpp14 SkIRect drawBounds = {0, 0, 128, 128};
15 opRegion.setPath(opPath, SkRegion(drawBounds));
16 xRegion.setPath(xPath, SkRegion(drawBounds));
17 drawBounds.inset(frame * drawBounds.width() / 2, 0);
18 rectRegion.op(drawBounds, opRegion, SkRegion::kIntersect_Op);
DRegion_op_5.cpp14 SkIRect drawBounds = {0, 0, 128, 128};
15 opRegion.setPath(opPath, SkRegion(drawBounds));
16 xRegion.setPath(xPath, SkRegion(drawBounds));
17 drawBounds.inset(frame * drawBounds.width() / 2, 0);
18 rectRegion.op(opRegion, drawBounds, SkRegion::kUnion_Op);
DRegion_op_6.cpp16 SkIRect drawBounds = {0, 0, 128, 128};
17 opRegion.setPath(opPath, SkRegion(drawBounds));
18 xRegion.setPath(xPath, SkRegion(drawBounds));
19 drawBounds.inset(frame * drawBounds.width() / 2, 0);
20 rectRegion.setRect(drawBounds);
DRegion_contains_3.cpp14 SkIRect drawBounds = {0, 0, 128, 128};
15 xRegion.setPath(xPath, SkRegion(drawBounds));
16 testRegion.setPath(testPath, SkRegion(drawBounds));
17 xRegion.op(drawBounds, SkRegion::kReverseDifference_Op);
DRegion_op_1.cpp13 SkIRect drawBounds = {0, 0, 128, 128};
14 xRegion.setPath(xPath, SkRegion(drawBounds));
15 xRegion.op(drawBounds, SkRegion::kReverseDifference_Op);
DRegion_op_3.cpp14 SkIRect drawBounds = {0, 0, 128, 128};
15 opRegion.setPath(opPath, SkRegion(drawBounds));
16 xRegion.setPath(xPath, SkRegion(drawBounds));
DRegion_contains_2.cpp13 SkIRect drawBounds = {0, 0, 128, 128};
14 xRegion.setPath(xPath, SkRegion(drawBounds));
15 xRegion.op(drawBounds, SkRegion::kReverseDifference_Op);
DRegion_writeToMemory.cpp12 SkIRect drawBounds = {0, 0, 128, 128};
14 xRegion.setPath(xPath, SkRegion(drawBounds));
/external/skqp/src/gpu/ccpr/
DGrCCPerFlushResources.cpp44 const SkISize& drawBounds) in AtlasOp() argument
47 this->setBounds(SkRect::MakeIWH(drawBounds.width(), drawBounds.height()), in AtlasOp()
62 int endInstance, const SkISize& drawBounds) { in Make() argument
66 baseInstance, endInstance, drawBounds); in Make()
88 int baseInstance, int endInstance, const SkISize& drawBounds) in CopyAtlasOp() argument
89 : AtlasOp(ClassID(), std::move(resources), drawBounds) in CopyAtlasOp()
107 const SkISize& drawBounds) { in Make() argument
111 drawBounds); in Make()
126 StrokeBatchID strokeBatchID, const SkISize& drawBounds) in RenderAtlasOp() argument
127 : AtlasOp(ClassID(), std::move(resources), drawBounds) in RenderAtlasOp()
[all …]
DGrCCStroker.h58 void drawStrokes(GrOpFlushState*, BatchID, const SkIRect& drawBounds) const;
98 int startScissorSubBatch, const SkIRect& drawBounds) const;
100 GrPipeline&, const SkIRect& drawBounds) const;
106 const SkIRect& drawBounds) const;
DGrCCFiller.cpp463 const SkIRect& drawBounds) const { in drawFills()
474 &PrimitiveTallies::fTriangles, drawBounds); in drawFills()
479 &PrimitiveTallies::fWeightedTriangles, drawBounds); in drawFills()
484 &PrimitiveTallies::fQuadratics, drawBounds); in drawFills()
489 &PrimitiveTallies::fCubics, drawBounds); in drawFills()
494 &PrimitiveTallies::fConics, drawBounds); in drawFills()
501 const SkIRect& drawBounds) const { in drawPrimitives()
522 fScissorRectScratchBuffer.push_back().setXYWH(0, 0, drawBounds.width(), in drawPrimitives()
523 drawBounds.height()); in drawPrimitives()
552 SkRect::Make(drawBounds)); in drawPrimitives()
DGrCCStroker.cpp676 const SkIRect& drawBounds) const { in drawStrokes()
695 this->appendStrokeMeshesToBuffers(0, batch, startIndices, startScissorSubBatch, drawBounds); in drawStrokes()
698 this->flushBufferedMeshesAsStrokes(linearProc, flushState, pipeline, drawBounds); in drawStrokes()
703 this->appendStrokeMeshesToBuffers(i, batch, startIndices, startScissorSubBatch, drawBounds); in drawStrokes()
707 this->flushBufferedMeshesAsStrokes(cubicProc, flushState, pipeline, drawBounds); in drawStrokes()
713 flushState, pipeline, triProc, batch, startIndices, startScissorSubBatch, drawBounds); in drawStrokes()
718 flushState, pipeline, conicProc, batch, startIndices, startScissorSubBatch, drawBounds); in drawStrokes()
724 const SkIRect& drawBounds) const { in appendStrokeMeshesToBuffers()
739 fScissorsBuffer.push_back(drawBounds); in appendStrokeMeshesToBuffers()
762 const SkIRect& drawBounds) const { in flushBufferedMeshesAsStrokes()
[all …]
DGrCCFiller.h48 void drawFills(GrOpFlushState*, BatchID, const SkIRect& drawBounds) const;
100 const SkIRect& drawBounds) const;
DGrCCCoverageProcessor.cpp234 const SkRect& drawBounds) const { in draw()
238 cmdBuff->draw(*this, pipeline, nullptr, &dynamicStateArrays, meshes, meshCount, drawBounds); in draw()
245 drawBounds); in draw()
/external/skqp/docs/
DSkRegion_Reference.bmh1101 SkIRect drawBounds = {0, 0, 128, 128};
1102 xRegion.setPath(xPath, SkRegion(drawBounds));
1103 xRegion.op(drawBounds, SkRegion::kReverseDifference_Op);
1130 SkIRect drawBounds = {0, 0, 128, 128};
1131 xRegion.setPath(xPath, SkRegion(drawBounds));
1132 testRegion.setPath(testPath, SkRegion(drawBounds));
1133 xRegion.op(drawBounds, SkRegion::kReverseDifference_Op);
1388 SkIRect drawBounds = {0, 0, 128, 128};
1389 xRegion.setPath(xPath, SkRegion(drawBounds));
1390 xRegion.op(drawBounds, SkRegion::kReverseDifference_Op);
[all …]
/external/skia/src/gpu/
DGrStencilClip.h52 PreClipResult preApply(const SkRect& drawBounds, GrAA aa) const final { in preApply() argument
54 return this->INHERITED::preApply(drawBounds, aa); in preApply()
56 return fFixedClip.preApply(drawBounds, aa); in preApply()
DGrFixedClip.cpp17 GrClip::PreClipResult GrFixedClip::preApply(const SkRect& drawBounds, GrAA aa) const { in preApply() argument
18 SkIRect pixelBounds = GetPixelIBounds(drawBounds, aa); in preApply()
DGrOpFlushState.h195 void bindPipelineAndScissorClip(const GrProgramInfo& programInfo, const SkRect& drawBounds) { in bindPipelineAndScissorClip() argument
198 this->bindPipeline(programInfo, drawBounds); in bindPipelineAndScissorClip()
218 void bindPipeline(const GrProgramInfo& programInfo, const SkRect& drawBounds) { in bindPipeline() argument
219 fOpsRenderPass->bindPipeline(programInfo, drawBounds); in bindPipeline()
DGrOpsRenderPass.h54 void bindPipeline(const GrProgramInfo&, const SkRect& drawBounds);
179 virtual bool onBindPipeline(const GrProgramInfo&, const SkRect& drawBounds) = 0;
DGrClipStack.cpp412 Draw(const SkRect& drawBounds, GrAA aa) in Draw() argument
413 : fBounds(GrClip::GetPixelIBounds(drawBounds, aa, BoundsType::kExterior)) in Draw()
416 fOriginalBounds = drawBounds.makeInset(GrClip::kBoundsTolerance, GrClip::kBoundsTolerance); in Draw()
418 fOriginalBounds = drawBounds; in Draw()
750 GrClipStack::Mask::Mask(const SaveRecord& current, const SkIRect& drawBounds) in Mask() argument
751 : fBounds(drawBounds) in Mask()
762 builder[1] = SkToS16(drawBounds.fLeft) | (SkToS16(drawBounds.fRight) << 16); in Mask()
763 builder[2] = SkToS16(drawBounds.fTop) | (SkToS16(drawBounds.fBottom) << 16); in Mask()
769 bool GrClipStack::Mask::appliesToDraw(const SaveRecord& current, const SkIRect& drawBounds) const { in appliesToDraw()
773 return fGenID == current.genID() && fBounds.contains(drawBounds); in appliesToDraw()
DGrClip.h84 virtual PreClipResult preApply(const SkRect& drawBounds, GrAA aa) const { in preApply() argument
85 SkIRect pixelBounds = GetPixelIBounds(drawBounds, aa); in preApply()
/external/skqp/tools/viewer/
DNIMASlide.cpp168 bool drawBounds = SkToBool(fRenderFlags & kBounds_RenderFlag); in renderGUI() local
170 ImGui::Checkbox("Draw Bounds", &drawBounds); in renderGUI()
171 if (drawBounds) { in renderGUI()
/external/skia/gm/
Dfontmgr.cpp247 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); in onDraw() local
356 x += drawBounds.width() + 20; in onDraw()
/external/skia/src/gpu/ops/
DGrSmallPathRenderer.cpp475 SkRect drawBounds = SkRect::Make(devPathBounds).makeOffset(-translateX, -translateY); in addDFPathToAtlas() local
476 drawBounds.fLeft /= scale; in addDFPathToAtlas()
477 drawBounds.fTop /= scale; in addDFPathToAtlas()
478 drawBounds.fRight /= scale; in addDFPathToAtlas()
479 drawBounds.fBottom /= scale; in addDFPathToAtlas()
483 drawBounds, SK_DistanceFieldPad, shapeData); in addDFPathToAtlas()
546 SkRect drawBounds = SkRect::Make(devPathBounds).makeOffset(-translateX, -translateY); in addBMPathToAtlas() local
550 drawBounds, 0, shapeData); in addBMPathToAtlas()

12