/external/skia/src/gpu/text/ |
D | GrAtlasTextContext.cpp | 28 const SkMatrix& viewMatrix, in canDraw() argument 31 return GrTextUtils::CanDrawAsDistanceFields(skPaint, viewMatrix, props, shaderCaps) || in canDraw() 32 !SkDraw::ShouldDrawTextAsPaths(skPaint, viewMatrix); in canDraw() 71 const SkMatrix& viewMatrix, in drawTextBlob() argument 115 if (!SkPaintToGrPaint(context, skPaint, viewMatrix, &grPaint)) { in drawTextBlob() 120 if (cacheBlob->mustRegenerate(skPaint, grPaint.getColor(), blurRec, viewMatrix, x, y)) { in drawTextBlob() 128 viewMatrix, props, in drawTextBlob() 141 grPaint.getColor(), viewMatrix, props, in drawTextBlob() 154 viewMatrix, props, in drawTextBlob() 159 grPaint, drawFilter, clip, viewMatrix, clipBounds, x, y); in drawTextBlob() [all …]
|
D | GrAtlasTextBlob.cpp | 56 const SkMatrix* viewMatrix) { in setupCache() argument 62 skPaint.getScalerContextDescriptor(desc, props, fakeGamma, viewMatrix); in setupCache() 170 const SkMatrix& viewMatrix, SkScalar x, SkScalar y) { in mustRegenerate() argument 179 if (fInitialViewMatrix.hasPerspective() != viewMatrix.hasPerspective()) { in mustRegenerate() 183 if (fInitialViewMatrix.hasPerspective() && !fInitialViewMatrix.cheapEqualTo(viewMatrix)) { in mustRegenerate() 207 if (fInitialViewMatrix.cheapEqualTo(viewMatrix) && x == fInitialX && y == fInitialY) { in mustRegenerate() 214 if (fInitialViewMatrix.getScaleX() != viewMatrix.getScaleX() || in mustRegenerate() 215 fInitialViewMatrix.getScaleY() != viewMatrix.getScaleY() || in mustRegenerate() 216 fInitialViewMatrix.getSkewX() != viewMatrix.getSkewX() || in mustRegenerate() 217 fInitialViewMatrix.getSkewY() != viewMatrix.getSkewY()) { in mustRegenerate() [all …]
|
D | GrTextUtils.h | 41 GrColor, const SkMatrix& viewMatrix, 47 GrColor, const SkMatrix& viewMatrix, 53 static bool CanDrawAsDistanceFields(const SkPaint& skPaint, const SkMatrix& viewMatrix, 59 const SkMatrix& viewMatrix, 65 GrColor color, const SkMatrix& viewMatrix, 72 const SkPaint& origPaint, const SkMatrix& viewMatrix, 80 const SkPaint& origPaint, const SkMatrix& viewMatrix, 94 const SkMatrix& viewMatrix); 104 SkScalar textRatio, const SkMatrix& viewMatrix);
|
D | GrAtlasTextBlob.h | 153 const SkMatrix* viewMatrix); 177 const SkMatrix& viewMatrix, SkScalar x, SkScalar y); 189 const SkMatrix& viewMatrix, 201 const SkMatrix& viewMatrix, 206 const SkMatrix& viewMatrix, SkScalar x, SkScalar y) { in computeSubRunBounds() argument 219 viewMatrix.mapRect(outBounds); in computeSubRunBounds() 229 boundsMatrix.postConcat(viewMatrix); in computeSubRunBounds() 249 void initReusableBlob(GrColor color, const SkMatrix& viewMatrix, SkScalar x, SkScalar y) { in initReusableBlob() argument 251 this->setupViewMatrix(viewMatrix, x, y); in initReusableBlob() 254 void initThrowawayBlob(const SkMatrix& viewMatrix, SkScalar x, SkScalar y) { in initThrowawayBlob() argument [all …]
|
D | GrAtlasTextContext.h | 34 bool canDraw(const SkPaint&, const SkMatrix& viewMatrix, const SkSurfaceProps&, 37 const SkMatrix& viewMatrix, const SkSurfaceProps&, const char text[], 41 const SkPaint&, const SkMatrix& viewMatrix, const SkSurfaceProps&, 46 const SkMatrix& viewMatrix, const SkSurfaceProps&, const SkTextBlob*, 59 const SkMatrix& viewMatrix, 68 const SkPaint&, const SkMatrix& viewMatrix, 75 const SkPaint&, const SkMatrix& viewMatrix,
|
D | GrTextUtils.cpp | 44 const SkMatrix& viewMatrix, in DrawBmpText() argument 61 skPaint, &viewMatrix); in DrawBmpText() 66 {x, y}, viewMatrix, skPaint.getTextAlign(), in DrawBmpText() 84 const SkMatrix& viewMatrix, in DrawBmpPosText() argument 103 skPaint, &viewMatrix); in DrawBmpPosText() 108 offset, viewMatrix, pos, scalarsPerPosition, in DrawBmpPosText() 156 bool GrTextUtils::CanDrawAsDistanceFields(const SkPaint& skPaint, const SkMatrix& viewMatrix, in CanDrawAsDistanceFields() argument 159 if (viewMatrix.hasPerspective()) { in CanDrawAsDistanceFields() 163 SkScalar maxScale = viewMatrix.getMaxScale(); in CanDrawAsDistanceFields() 198 const SkMatrix& viewMatrix) { in InitDistanceFieldPaint() argument [all …]
|
/external/skia/src/gpu/batches/ |
D | GrRectBatchFactory.h | 28 const SkMatrix& viewMatrix, in CreateNonAAFill() argument 32 if (viewMatrix.hasPerspective() || (localMatrix && localMatrix->hasPerspective())) { in CreateNonAAFill() 33 return GrNonAAFillRectBatch::CreateWithPerspective(color, viewMatrix, rect, localRect, in CreateNonAAFill() 36 return GrNonAAFillRectBatch::Create(color, viewMatrix, rect, localRect, localMatrix); in CreateNonAAFill() 41 const SkMatrix& viewMatrix, in CreateAAFill() argument 44 return GrAAFillRectBatch::Create(color, viewMatrix, rect, devRect); in CreateAAFill() 48 const SkMatrix& viewMatrix, in CreateAAFill() argument 52 return GrAAFillRectBatch::Create(color, viewMatrix, localMatrix, rect, devRect); in CreateAAFill() 56 const SkMatrix& viewMatrix, in CreateNonAAStroke() argument 60 return GrNonAAStrokeRectBatch::Create(color, viewMatrix, rect, strokeWidth, snapToPixelCenters); in CreateNonAAStroke() [all …]
|
D | GrAAFillRectBatch.cpp | 48 const SkMatrix& viewMatrix, in create_fill_rect_gp() argument 72 return CreateForDeviceSpace(color, coverage, localCoords, viewMatrix); in create_fill_rect_gp() 79 const SkMatrix& viewMatrix, in generate_aa_fill_rect_geometry() argument 90 if (viewMatrix.rectStaysRect()) { in generate_aa_fill_rect_geometry() 96 { viewMatrix[SkMatrix::kMScaleX], viewMatrix[SkMatrix::kMSkewY] }, in generate_aa_fill_rect_geometry() 97 { viewMatrix[SkMatrix::kMSkewX], viewMatrix[SkMatrix::kMScaleY] } in generate_aa_fill_rect_geometry() 108 viewMatrix.mapPointsWithStride(fan0Pos, vertexStride, 4); in generate_aa_fill_rect_geometry() 133 if (!viewMatrix.invert(&invViewMatrix)) { in generate_aa_fill_rect_geometry() 310 const SkMatrix& viewMatrix, const SkRect& rect, in append_to_batch() argument 314 geo.fViewMatrix = viewMatrix; in append_to_batch() [all …]
|
D | GrNonAAFillRectBatch.cpp | 54 static const GrGeometryProcessor* create_gp(const SkMatrix& viewMatrix, in create_gp() argument 66 if (viewMatrix.hasPerspective()) { in create_gp() 70 return GrDefaultGeoProcFactory::Create(color, coverage, localCoords, viewMatrix); in create_gp() 77 viewMatrix); in create_gp() 84 const SkMatrix& viewMatrix, in tesselate() argument 92 if (!viewMatrix.hasPerspective()) { in tesselate() 93 viewMatrix.mapPointsWithStride(positions, vertexStride, in tesselate() 217 const SkMatrix& viewMatrix, const SkRect& rect, in append_to_batch() argument 219 SkASSERT(!viewMatrix.hasPerspective() && (!localMatrix || !localMatrix->hasPerspective())); in append_to_batch() 223 geo.fViewMatrix = viewMatrix; in append_to_batch() [all …]
|
D | GrAAFillRectBatch.h | 20 const SkMatrix& viewMatrix, 25 const SkMatrix& viewMatrix, 30 const SkMatrix& viewMatrix, 36 const SkMatrix& viewMatrix, 42 const SkMatrix& viewMatrix, 48 const SkMatrix& viewMatrix,
|
D | GrAAStrokeRectBatch.cpp | 25 const SkMatrix& viewMatrix, in create_stroke_rect_gp() argument 43 return CreateForDeviceSpace(color, coverage, localCoords, viewMatrix); in create_stroke_rect_gp() 59 static AAStrokeRectBatch* Create(const SkMatrix& viewMatrix, bool miterStroke) { in Create() argument 60 return new AAStrokeRectBatch(viewMatrix, miterStroke); in Create() 75 bool canAppend(const SkMatrix& viewMatrix, bool miterStroke) { in canAppend() argument 76 return fViewMatrix.cheapEqualTo(viewMatrix) && fMiterStroke == miterStroke; in canAppend() 112 AAStrokeRectBatch(const SkMatrix& viewMatrix,bool miterStroke) in AAStrokeRectBatch() argument 114 fViewMatrix = viewMatrix; in AAStrokeRectBatch() 135 const SkMatrix& viewMatrix() const { return fViewMatrix; } in viewMatrix() function in AAStrokeRectBatch 188 this->viewMatrix(), in onPrepareDraws() [all …]
|
D | GrDrawPathBatch.h | 34 GrDrawPathBatchBase(uint32_t classID, const SkMatrix& viewMatrix, GrColor initialColor, in GrDrawPathBatchBase() argument 37 , fViewMatrix(viewMatrix) in GrDrawPathBatchBase() 43 const SkMatrix& viewMatrix() const { return fViewMatrix; } in viewMatrix() function 66 static GrDrawPathBatchBase* Create(const SkMatrix& viewMatrix, GrColor color, in Create() argument 68 return new GrDrawPathBatch(viewMatrix, color, fill, path); in Create() 76 GrDrawPathBatch(const SkMatrix& viewMatrix, GrColor color, GrPathRendering::FillType fill, in GrDrawPathBatch() argument 78 : INHERITED(ClassID(), viewMatrix, color, fill) in GrDrawPathBatch() 81 viewMatrix.mapRect(&fBounds); in GrDrawPathBatch() 162 static GrDrawPathBatchBase* Create(const SkMatrix& viewMatrix, SkScalar scale, SkScalar x, in Create() argument 166 return new GrDrawPathRangeBatch(viewMatrix, scale, x, y, color, fill, range, instanceData, in Create() [all …]
|
D | GrStencilAndCoverPathRenderer.cpp | 80 const SkMatrix& viewMatrix = *args.fViewMatrix; in onDrawPath() local 106 args.fTarget->stencilPath(*pipelineBuilder, viewMatrix, p, p->getFillType()); in onDrawPath() 114 if (!viewMatrix.hasPerspective() && viewMatrix.invert(&vmi)) { in onDrawPath() 118 SkScalar bloat = viewMatrix.getMaxScale() * SK_ScalarHalf; in onDrawPath() 121 if (!viewMatrix.invert(&invert)) { in onDrawPath() 125 const SkMatrix& viewM = viewMatrix.hasPerspective() ? SkMatrix::I() : viewMatrix; in onDrawPath() 145 GrDrawPathBatch::Create(viewMatrix, args.fColor, p->getFillType(), p)); in onDrawPath()
|
D | GrRectBatchFactory.cpp | 17 const SkMatrix& viewMatrix, in CreateAAFillNestedRects() argument 19 SkASSERT(viewMatrix.rectStaysRect()); in CreateAAFillNestedRects() 23 viewMatrix.mapRect(&devOutside, rects[0]); in CreateAAFillNestedRects() 24 viewMatrix.mapRect(&devInside, rects[1]); in CreateAAFillNestedRects() 26 return GrAAStrokeRectBatch::Create(color, viewMatrix, devOutside, devOutside, devInside, true, in CreateAAFillNestedRects()
|
D | GrDefaultPathRenderer.cpp | 224 const SkMatrix& viewMatrix, bool isHairline, in Create() argument 226 return new DefaultPathBatch(geometry, coverage, viewMatrix, isHairline, devBounds); in Create() 266 this->viewMatrix())); in onPrepareDraws() 381 DefaultPathBatch(const Geometry& geometry, uint8_t coverage, const SkMatrix& viewMatrix, in DefaultPathBatch() argument 386 fBatch.fViewMatrix = viewMatrix; in DefaultPathBatch() 413 if (!this->viewMatrix().cheapEqualTo(that->viewMatrix())) { in onCombineIfPossible() 526 const SkMatrix& viewMatrix() const { return fBatch.fViewMatrix; } in viewMatrix() function in DefaultPathBatch 549 const SkMatrix& viewMatrix, in internalDrawPath() argument 557 if (IsStrokeHairlineOrEquivalent(*stroke, viewMatrix, &hairlineCoverage)) { in internalDrawPath() 666 SkScalar srcSpaceTol = GrPathUtils::scaleToleranceToSrc(tol, viewMatrix, path.getBounds()); in internalDrawPath() [all …]
|
/external/skia/src/gpu/ |
D | GrDrawContext.cpp | 110 const SkMatrix& viewMatrix, in drawText() argument 122 fAtlasTextContext->drawText(fContext, this, clip, grPaint, skPaint, viewMatrix, fSurfaceProps, in drawText() 128 const SkMatrix& viewMatrix, in drawPosText() argument 141 fAtlasTextContext->drawPosText(fContext, this, clip, grPaint, skPaint, viewMatrix, in drawPosText() 148 const SkMatrix& viewMatrix, const SkTextBlob* blob, in drawTextBlob() argument 160 fAtlasTextContext->drawTextBlob(fContext, this, clip, skPaint, viewMatrix, fSurfaceProps, blob, in drawTextBlob() 189 const SkMatrix& viewMatrix) { in drawPaint() argument 208 bool isPerspective = viewMatrix.hasPerspective(); in drawPaint() 215 if (!viewMatrix.invert(&inverse)) { in drawPaint() 220 this->drawRect(clip, *paint, viewMatrix, r); in drawPaint() [all …]
|
D | GrBlurUtils.cpp | 30 const SkMatrix& viewMatrix, in draw_mask() argument 42 if (!viewMatrix.invert(&inverse)) { in draw_mask() 52 const SkMatrix& viewMatrix, in sw_draw_with_mask_filter() argument 60 if (!SkDraw::DrawToMask(devPath, &clipBounds, filter, &viewMatrix, &srcM, in sw_draw_with_mask_filter() 66 if (!filter->filterMask(&dstM, srcM, viewMatrix, nullptr)) { in sw_draw_with_mask_filter() 92 return draw_mask(drawContext, clipData, viewMatrix, maskRect, grp, texture); in sw_draw_with_mask_filter() 153 const SkMatrix& viewMatrix, in draw_path_with_mask_filter() argument 196 pathPtr->transform(viewMatrix, devPathPtr); in draw_path_with_mask_filter() 201 viewMatrix, in draw_path_with_mask_filter() 214 viewMatrix, in draw_path_with_mask_filter() [all …]
|
D | GrOvalRenderer.cpp | 396 static GrGeometryProcessor* Create(GrColor color, const SkMatrix& viewMatrix, Mode mode, in Create() argument 398 return new DIEllipseEdgeEffect(color, viewMatrix, mode, usesLocalCoords); in Create() 411 const SkMatrix& viewMatrix() const { return fViewMatrix; } in viewMatrix() function in DIEllipseEdgeEffect 451 ee.viewMatrix(), in onEmitCode() 509 key |= ComputePosKey(ellipseEffect.viewMatrix()) << 10; in GenKey() 517 if (!dee.viewMatrix().isIdentity() && !fViewMatrix.cheapEqualTo(dee.viewMatrix())) { in setData() 518 fViewMatrix = dee.viewMatrix(); in setData() 519 float viewMatrix[3 * 3]; in setData() local 520 GrGLSLGetMatrix<3>(viewMatrix, fViewMatrix); in setData() 521 pdman.setMatrix3f(fViewMatrixUniform, viewMatrix); in setData() [all …]
|
D | GrDefaultGeoProcFactory.cpp | 35 const SkMatrix& viewMatrix, in Create() argument 40 return new DefaultGeoProc(gpTypeFlags, color, viewMatrix, localMatrix, coverage, in Create() 53 const SkMatrix& viewMatrix() const { return fViewMatrix; } in viewMatrix() function in DefaultGeoProc 90 gp.viewMatrix(), in onEmitCode() 154 key |= ComputePosKey(def.viewMatrix()) << 25; in GenKey() 162 if (!dgp.viewMatrix().isIdentity() && !fViewMatrix.cheapEqualTo(dgp.viewMatrix())) { in setData() 163 fViewMatrix = dgp.viewMatrix(); in setData() 164 float viewMatrix[3 * 3]; in setData() local 165 GrGLSLGetMatrix<3>(viewMatrix, fViewMatrix); in setData() 166 pdman.setMatrix3f(fViewMatrixUniform, viewMatrix); in setData() [all …]
|
D | SkGpuDevice_drawTexture.cpp | 94 const SkMatrix& viewMatrix, in drawTextureProducer() argument 140 this->drawTextureProducerImpl(producer, clippedSrcRect, clippedDstRect, constraint, viewMatrix, in drawTextureProducer() 148 const SkMatrix& viewMatrix, in drawTextureProducerImpl() argument 164 GrSkFilterQualityToGrFilterMode(paint.getFilterQuality(), viewMatrix, srcToDstMatrix, in drawTextureProducerImpl() 184 combinedMatrix.setConcat(viewMatrix, srcToDstMatrix); in drawTextureProducerImpl() 208 if (!SkPaintToGrPaintWithTexture(fContext, paint, viewMatrix, fp, producer->isAlphaOnly(), in drawTextureProducerImpl() 214 fDrawContext->fillRectToRect(clip, grPaint, viewMatrix, clippedDstRect, clippedSrcRect); in drawTextureProducerImpl() 219 fDrawContext->drawRect(clip, grPaint, viewMatrix, clippedDstRect); in drawTextureProducerImpl() 231 viewMatrix, in drawTextureProducerImpl() 240 rectPath, &grPaint, viewMatrix, mf, paint.getPathEffect(), in drawTextureProducerImpl()
|
/external/skia/src/gpu/effects/ |
D | GrBezierEffect.h | 62 const SkMatrix& viewMatrix, 73 return new GrConicEffect(color, viewMatrix, coverage, kFillAA_GrProcessorEdgeType, 79 return new GrConicEffect(color, viewMatrix, coverage, 83 return new GrConicEffect(color, viewMatrix, coverage, kFillBW_GrProcessorEdgeType, 101 const SkMatrix& viewMatrix() const { return fViewMatrix; } in viewMatrix() function 111 GrConicEffect(GrColor, const SkMatrix& viewMatrix, uint8_t coverage, GrPrimitiveEdgeType, 142 const SkMatrix& viewMatrix, 153 return new GrQuadEffect(color, viewMatrix, coverage, kFillAA_GrProcessorEdgeType, 159 return new GrQuadEffect(color, viewMatrix, coverage, 163 return new GrQuadEffect(color, viewMatrix, coverage, kFillBW_GrProcessorEdgeType, [all …]
|
D | GrDistanceFieldGeoProc.h | 48 static GrGeometryProcessor* Create(GrColor color, const SkMatrix& viewMatrix, in Create() argument 51 return new GrDistanceFieldA8TextGeoProc(color, viewMatrix, tex, params, lum, flags, in Create() 55 static GrGeometryProcessor* Create(GrColor color, const SkMatrix& viewMatrix, 58 return new GrDistanceFieldA8TextGeoProc(color, viewMatrix, tex, params, flags, 72 const SkMatrix& viewMatrix() const { return fViewMatrix; } in viewMatrix() function 84 GrDistanceFieldA8TextGeoProc(GrColor, const SkMatrix& viewMatrix, 117 static GrGeometryProcessor* Create(GrColor color, const SkMatrix& viewMatrix, GrTexture* tex, in Create() argument 120 return new GrDistanceFieldPathGeoProc(color, viewMatrix, tex, params, flags, in Create() 133 const SkMatrix& viewMatrix() const { return fViewMatrix; } in viewMatrix() function 142 GrDistanceFieldPathGeoProc(GrColor, const SkMatrix& viewMatrix, GrTexture* texture, [all …]
|
D | GrDistanceFieldGeoProc.cpp | 67 dfTexEffect.viewMatrix(), in onEmitCode() 162 if (!dfa8gp.viewMatrix().isIdentity() && !fViewMatrix.cheapEqualTo(dfa8gp.viewMatrix())) { in setData() 163 fViewMatrix = dfa8gp.viewMatrix(); in setData() 164 float viewMatrix[3 * 3]; in setData() local 165 GrGLSLGetMatrix<3>(viewMatrix, fViewMatrix); in setData() 166 pdman.setMatrix3f(fViewMatrixUniform, viewMatrix); in setData() 176 key |= ComputePosKey(dfTexEffect.viewMatrix()) << 25; in GenKey() 201 const SkMatrix& viewMatrix, in GrDistanceFieldA8TextGeoProc() argument 210 , fViewMatrix(viewMatrix) in GrDistanceFieldA8TextGeoProc() 304 dfTexEffect.viewMatrix(), in onEmitCode() [all …]
|
D | GrBezierEffect.cpp | 32 if (!ce.viewMatrix().isIdentity() && !fViewMatrix.cheapEqualTo(ce.viewMatrix())) { in setData() 33 fViewMatrix = ce.viewMatrix(); in setData() 34 float viewMatrix[3 * 3]; in setData() local 35 GrGLSLGetMatrix<3>(viewMatrix, fViewMatrix); in setData() 36 pdman.setMatrix3f(fViewMatrixUniform, viewMatrix); in setData() 101 gp.viewMatrix(), in onEmitCode() 238 key |= ComputePosKey(ce.viewMatrix()) << 5; in GenKey() 255 GrConicEffect::GrConicEffect(GrColor color, const SkMatrix& viewMatrix, uint8_t coverage, in GrConicEffect() argument 259 , fViewMatrix(viewMatrix) in GrConicEffect() 260 , fLocalMatrix(viewMatrix) in GrConicEffect() [all …]
|
/external/skia/include/gpu/ |
D | GrDrawContext.h | 56 const SkMatrix& viewMatrix, const char text[], size_t byteLength, 59 const SkMatrix& viewMatrix, const char text[], size_t byteLength, 63 const SkMatrix& viewMatrix, const SkTextBlob*, 85 void drawPaint(const GrClip&, const GrPaint&, const SkMatrix& viewMatrix); 101 const SkMatrix& viewMatrix, 115 const SkMatrix& viewMatrix, 124 const SkMatrix& viewMatrix, 139 const SkMatrix& viewMatrix, 154 const SkMatrix& viewMatrix, 177 const SkMatrix& viewMatrix, [all …]
|