/third_party/skia/src/shaders/ |
D | SkTransformShader.cpp | 41 fProcessingAsPerspective = matrix.hasPerspective() || fShader.getLocalMatrix().hasPerspective(); in applyMatrix() 51 fProcessingAsPerspective = matrix.hasPerspective() || fShader.getLocalMatrix().hasPerspective(); in appendMatrix() 62 SkASSERT(!matrix.hasPerspective()); in update() 63 if (matrix.hasPerspective()) { in update()
|
D | SkShader.cpp | 82 if (rec.fMatrix->hasPerspective() || in makeContext() 83 fLocalMatrix.hasPerspective() || in makeContext() 84 (rec.fLocalMatrix && rec.fLocalMatrix->hasPerspective()) || in makeContext() 99 SkASSERT(!rec.fMatrix->hasPerspective()); in Context() 100 SkASSERT(!rec.fLocalMatrix || !rec.fLocalMatrix->hasPerspective()); in Context() 101 SkASSERT(!shader.getLocalMatrix().hasPerspective()); in Context() 270 if (m.hasPerspective()) { in ApplyMatrix()
|
/third_party/skia/include/private/ |
D | SkSLSampleUsage.h | 38 SampleUsage(Kind kind, bool hasPerspective) : fKind(kind), fHasPerspective(hasPerspective) { in SampleUsage() argument 45 static SampleUsage UniformMatrix(bool hasPerspective) { in UniformMatrix() argument 46 return SampleUsage(Kind::kUniformMatrix, hasPerspective); in UniformMatrix() 72 bool hasPerspective() const { return fHasPerspective; } in hasPerspective() function
|
/third_party/flutter/skia/src/shaders/ |
D | SkShader.cpp | 83 if (rec.fMatrix->hasPerspective() || in makeContext() 84 fLocalMatrix.hasPerspective() || in makeContext() 85 (rec.fLocalMatrix && rec.fLocalMatrix->hasPerspective()) || in makeContext() 100 SkASSERT(!rec.fMatrix->hasPerspective()); in Context() 101 SkASSERT(!rec.fLocalMatrix || !rec.fLocalMatrix->hasPerspective()); in Context() 102 SkASSERT(!shader.getLocalMatrix().hasPerspective()); in Context()
|
/third_party/skia/src/gpu/ |
D | GrGeometryProcessor.cpp | 30 if (fp.sampleUsage().hasPerspective()) { in ComputeCoordTransformsKey() 135 bool hasPerspective, in collectTransforms() 149 hasPerspective |= fp.sampleUsage().hasPerspective(); in collectTransforms() 154 hasPerspective = positionVar.getType() == kFloat3_GrSLType; in collectTransforms() 184 varying = GrGLSLVarying(hasPerspective ? kFloat3_GrSLType : kFloat2_GrSLType); in collectTransforms() 202 hasPerspective, in collectTransforms() 216 bool hasPerspective = GrSLTypeVecLength(localCoordsVar.getType()) == 3; in collectTransforms() local 218 liftTransforms(liftTransforms, pipeline.getFragmentProcessor(i), hasPerspective); in collectTransforms() 404 if (matrix.hasPerspective()) { in write_vertex_position()
|
/third_party/flutter/skia/src/gpu/ops/ |
D | GrFillRRectOp.cpp | 39 if (viewMatrix.hasPerspective()) { in Make() 53 if (viewMatrix.hasPerspective()) { in Make() 104 SkASSERT((fFlags & Flags::kHasPerspective) == totalShapeMatrix.hasPerspective()); in GrFillRRectOp() 111 SkASSERT(!m.hasPerspective()); in GrFillRRectOp() 116 SkASSERT(m.hasPerspective()); in GrFillRRectOp() 590 bool hasPerspective = (proc.fFlags & Flags::kHasPerspective); in onEmitCode() local 592 SkASSERT(useHWDerivatives == hasPerspective); in onEmitCode() 630 if (!hasPerspective) { in onEmitCode() 648 SkASSERT(!hasPerspective); in onEmitCode()
|
D | GrStencilAndCoverPathRenderer.cpp | 141 if (!viewMatrix.hasPerspective()) { in onDrawPath() 150 const SkMatrix& coverMatrix = !viewMatrix.hasPerspective() ? viewMatrix : SkMatrix::I(); in onDrawPath() 151 const SkMatrix& localMatrix = !viewMatrix.hasPerspective() ? SkMatrix::I() : vmi; in onDrawPath()
|
D | GrAAHairLinePathRenderer.cpp | 259 bool persp = m.hasPerspective(); in gather_lines_and_quads() 744 if (viewMatrix.hasPerspective()) { in check_bounds() 866 if (this->viewMatrix().hasPerspective() != that->viewMatrix().hasPerspective()) { in onCombineIfPossible() 871 if (this->viewMatrix().hasPerspective() && in onCombineIfPossible() 924 bool hasPerspective = this->viewMatrix().hasPerspective(); in onPrepareDraws() local 929 if (hasPerspective) { in onPrepareDraws()
|
D | GrSmallPathRenderer.cpp | 206 if (!args.fViewMatrix->hasPerspective() && !args.fViewMatrix->getMinMaxScales(scaleFactors)) { in onCanDrawPath() 266 fUsesDistanceField = fUsesDistanceField || viewMatrix.hasPerspective(); in SmallPathOp() 345 if (ctm.hasPerspective()) { in onPrepareDraws() 399 if (args.fViewMatrix.hasPerspective()) { in onPrepareDraws() 787 if (fUsesDistanceField && !ctm.hasPerspective()) { in writePathVertices() 851 if (thisCtm.hasPerspective() != thatCtm.hasPerspective()) { in onCombineIfPossible() 857 if ((thisCtm.hasPerspective() || fHelper.usesLocalCoords()) && in onCombineIfPossible()
|
D | GrAtlasTextOp.cpp | 93 fDFGPFlags |= viewMatrix.hasPerspective() ? kPerspective_DistanceFieldEffectFlag : 0; in init() 329 bool vmPerspective = fGeoData[0].fViewMatrix.hasPerspective(); in onPrepareDraws() 387 if (args.fViewMatrix.hasPerspective()) { in onPrepareDraws() 481 (thisFirstMatrix.hasPerspective() != thatFirstMatrix.hasPerspective())) { in onCombineIfPossible()
|
/third_party/flutter/skia/src/gpu/ |
D | GrPathProcessor.cpp | 26 b->add32(SkToInt(pathProc.viewMatrix().hasPerspective())); in GenKey() 33 if (!pathProc.viewMatrix().hasPerspective()) { in emitCode() 57 coordTransform->getMatrix().hasPerspective() ? kHalf3_GrSLType in emitTransforms()
|
/third_party/flutter/skia/src/gpu/glsl/ |
D | GrGLSLGeometryProcessor.cpp | 80 if (localMatrix.hasPerspective() || coordTransform->getMatrix().hasPerspective() in emitTransforms() 137 if (!mat.hasPerspective()) { in writeOutputPosition()
|
/third_party/flutter/skia/src/utils/ |
D | SkShadowUtils.cpp | 102 if (!ctm.hasPerspective()) { in makeVertices() 158 if (ctm.hasPerspective() || OccluderType::kOpaquePartialUmbra == fOccluderType) { in makeVertices() 218 if (matrix.hasPerspective() || m.hasPerspective()) { in find() 468 context.fTranslate.fX, context.fTranslate.fY, path.viewMatrix().hasPerspective()); in draw_shadow() 569 SkScalar tx, SkScalar ty, bool hasPerspective) { in drawShadow() argument 576 hasPerspective ? SkMatrix::I() in drawShadow() 622 if (viewMatrix.hasPerspective()) { in drawShadow()
|
/third_party/skia/src/gpu/ops/ |
D | SmallPathRenderer.cpp | 85 fUsesDistanceField = fUsesDistanceField || viewMatrix.hasPerspective(); in SmallPathOp() 178 if (ctm.hasPerspective()) { in onPrepareDraws() 233 if (args.fViewMatrix.hasPerspective()) { in onPrepareDraws() 528 if (fUsesDistanceField && !ctm.hasPerspective()) { in writePathVertices() 607 if (thisCtm.hasPerspective() != thatCtm.hasPerspective()) { in onCombineIfPossible() 613 if ((thisCtm.hasPerspective() || fHelper.usesLocalCoords()) && in onCombineIfPossible() 686 if (!args.fViewMatrix->hasPerspective() && !args.fViewMatrix->getMinMaxScales(scaleFactors)) { in onCanDrawPath()
|
D | FillRRectOp.cpp | 170 if (viewMatrix.hasPerspective()) { in Make() 204 SkASSERT(!viewMatrix.hasPerspective()); in FillRRectOpImpl() 231 SkASSERT(!fHeadInstance->fViewMatrix.hasPerspective()); in clipToShape() 232 if (clipMatrix.hasPerspective()) { in clipToShape() 240 SkASSERT(!clipToView.hasPerspective()); in clipToShape()
|
D | AAHairLinePathRenderer.cpp | 268 bool persp = m.hasPerspective(); in gather_lines_and_quads() 886 if (this->viewMatrix().hasPerspective() != that->viewMatrix().hasPerspective()) { in onCombineIfPossible() 891 if (this->viewMatrix().hasPerspective() && in onCombineIfPossible() 1077 bool hasPerspective = this->viewMatrix().hasPerspective(); in onCreateProgramInfo() local 1080 if (hasPerspective) { in onCreateProgramInfo() 1142 if (this->viewMatrix().hasPerspective()) { in onPrepareDraws()
|
/third_party/skia/src/gpu/geometry/ |
D | GrQuad.cpp | 41 if (m.hasPerspective()) { in map_quad_general() 77 } else if (matrix.hasPerspective()) { in quad_type_for_transformed_rect() 87 if (matrix.hasPerspective()) { in quad_type_for_points()
|
/third_party/skia/src/gpu/effects/ |
D | GrMatrixEffect.cpp | 22 if (me->fMatrix.hasPerspective() || !matrix.hasPerspective()) { in Make()
|
/third_party/flutter/skia/src/gpu/geometry/ |
D | GrQuad.cpp | 41 if (m.hasPerspective()) { in map_quad_general() 78 } else if (matrix.hasPerspective()) { in quad_type_for_transformed_rect() 88 if (matrix.hasPerspective()) { in quad_type_for_points()
|
/third_party/skia/src/utils/ |
D | SkShadowUtils.cpp | 135 if (!ctm.hasPerspective()) { in makeVertices() 201 } else if (ctm.hasPerspective() || OccluderType::kOpaquePartialUmbra == fOccluderType) { in makeVertices() 261 if (matrix.hasPerspective() || m.hasPerspective()) { in find() 511 context.fTranslate.fX, context.fTranslate.fY, path.viewMatrix().hasPerspective()); in draw_shadow() 638 SkScalar tx, SkScalar ty, bool hasPerspective) { in drawShadow() argument 645 hasPerspective ? SkMatrix::I() in drawShadow() 695 if (viewMatrix.hasPerspective()) { in drawShadow()
|
/third_party/flutter/skia/src/core/ |
D | SkDrawShadowInfo.cpp | 28 if (!ctm.hasPerspective()) { in GetSpotShadowTransform() 135 if (ctm.hasPerspective()) { in GetLocalBounds() 181 if (ctm.hasPerspective()) { in GetLocalBounds()
|
/third_party/skia/src/gpu/text/ |
D | GrSDFTControl.cpp | 53 || viewMatrix.hasPerspective()) { in drawingType() 80 if (viewMatrix.hasPerspective()) { in scaled_text_size()
|
/third_party/skia/src/core/ |
D | SkDrawShadowInfo.cpp | 43 if (!ctm.hasPerspective() || directional) { in GetSpotShadowTransform() 157 if (ctm.hasPerspective()) { in GetLocalBounds() 220 if (ctm.hasPerspective()) { in GetLocalBounds()
|
/third_party/flutter/skia/tests/ |
D | Matrix44Test.cpp | 570 REPORTER_ASSERT(reporter, transform.hasPerspective()); in test_has_perspective() 573 REPORTER_ASSERT(reporter, !transform.hasPerspective()); in test_has_perspective() 576 REPORTER_ASSERT(reporter, transform.hasPerspective()); in test_has_perspective() 580 REPORTER_ASSERT(reporter, transform.hasPerspective()); in test_has_perspective() 584 REPORTER_ASSERT(reporter, transform.hasPerspective()); in test_has_perspective() 588 REPORTER_ASSERT(reporter, transform.hasPerspective()); in test_has_perspective() 592 REPORTER_ASSERT(reporter, transform.hasPerspective()); in test_has_perspective()
|
/third_party/flutter/skia/src/gpu/text/ |
D | GrTextContext.cpp | 99 if (!viewMatrix.hasPerspective()) { in CanDrawAsDistanceFields() 135 if (viewMatrix.hasPerspective()) { in scaled_text_size()
|