Home
last modified time | relevance | path

Searched refs:hasPerspective (Results 1 – 25 of 102) sorted by relevance

12345

/external/skia/include/private/
DSkSLSampleUsage.h37 static SampleUsage UniformMatrix(std::string expression, bool hasPerspective = true) {
38 return SampleUsage(Kind::kUniformMatrix, std::move(expression), hasPerspective);
61 SampleUsage(Kind kind, std::string expression, bool hasPerspective) in SampleUsage()
62 : fKind(kind), fExpression(expression), fHasPerspective(hasPerspective) { in SampleUsage()
/external/skqp/src/shaders/
DSkShader.cpp82 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()
/external/skia/src/shaders/
DSkShader.cpp81 if (rec.fMatrix->hasPerspective() || in makeContext()
82 fLocalMatrix.hasPerspective() || in makeContext()
83 (rec.fLocalMatrix && rec.fLocalMatrix->hasPerspective()) || in makeContext()
98 SkASSERT(!rec.fMatrix->hasPerspective()); in Context()
99 SkASSERT(!rec.fLocalMatrix || !rec.fLocalMatrix->hasPerspective()); in Context()
100 SkASSERT(!shader.getLocalMatrix().hasPerspective()); in Context()
257 if (m.hasPerspective()) { in ApplyMatrix()
/external/skqp/src/core/
DSkFontPriv.cpp23 SkASSERT(!ctm.hasPerspective()); in TooBigToUseCache()
24 SkASSERT(!textM.hasPerspective()); in TooBigToUseCache()
DSkDrawShadowInfo.cpp28 if (!ctm.hasPerspective()) { in GetSpotShadowTransform()
135 if (ctm.hasPerspective()) { in GetLocalBounds()
181 if (ctm.hasPerspective()) { in GetLocalBounds()
/external/skqp/src/gpu/
DGrPathProcessor.cpp26 b->add32(SkToInt(pathProc.viewMatrix().hasPerspective())); in GenKey()
33 if (!pathProc.viewMatrix().hasPerspective()) { in emitCode()
57 coordTransform->getMatrix().hasPerspective() ? kHalf3_GrSLType in emitTransforms()
DGrQuad.cpp73 if (this->hasPerspective()) { in quadType()
142 } else if (matrix.hasPerspective()) { in GrQuadTypeForTransformedRect()
173 if (m.hasPerspective()) { in GrQuad()
216 if (m.hasPerspective()) { in GrPerspQuad()
/external/skqp/src/gpu/glsl/
DGrGLSLGeometryProcessor.cpp80 if (localMatrix.hasPerspective() || coordTransform->getMatrix().hasPerspective() in emitTransforms()
137 if (!mat.hasPerspective()) { in writeOutputPosition()
/external/skqp/src/gpu/ops/
DGrStencilAndCoverPathRenderer.cpp142 if (!viewMatrix.hasPerspective()) { in onDrawPath()
151 const SkMatrix& coverMatrix = !viewMatrix.hasPerspective() ? viewMatrix : SkMatrix::I(); in onDrawPath()
152 const SkMatrix& localMatrix = !viewMatrix.hasPerspective() ? SkMatrix::I() : vmi; in onDrawPath()
DGrAtlasTextOp.cpp93 fDFGPFlags |= viewMatrix.hasPerspective() ? kPerspective_DistanceFieldEffectFlag : 0; in init()
312 bool vmPerspective = fGeoData[0].fViewMatrix.hasPerspective(); in onPrepareDraws()
370 if (args.fViewMatrix.hasPerspective()) { in onPrepareDraws()
460 (thisFirstMatrix.hasPerspective() != thatFirstMatrix.hasPerspective())) { in onCombineIfPossible()
DGrAAHairLinePathRenderer.cpp259 bool persp = m.hasPerspective(); in gather_lines_and_quads()
744 if (viewMatrix.hasPerspective()) { in check_bounds()
861 if (this->viewMatrix().hasPerspective() != that->viewMatrix().hasPerspective()) { in onCombineIfPossible()
866 if (this->viewMatrix().hasPerspective() && in onCombineIfPossible()
919 bool hasPerspective = this->viewMatrix().hasPerspective(); in onPrepareDraws() local
924 if (hasPerspective) { in onPrepareDraws()
DGrSmallPathRenderer.cpp202 if (!args.fViewMatrix->hasPerspective() && !args.fViewMatrix->getMinMaxScales(scaleFactors)) { in onCanDrawPath()
262 fUsesDistanceField = fUsesDistanceField || viewMatrix.hasPerspective(); in SmallPathOp()
344 if (ctm.hasPerspective()) { in onPrepareDraws()
398 if (args.fViewMatrix.hasPerspective()) { in onPrepareDraws()
763 if (fUsesDistanceField && !ctm.hasPerspective()) { in writePathVertices()
824 if (thisCtm.hasPerspective() != thatCtm.hasPerspective()) { in onCombineIfPossible()
830 if ((thisCtm.hasPerspective() || fHelper.usesLocalCoords()) && in onCombineIfPossible()
/external/skia/src/gpu/effects/
DGrMatrixEffect.cpp50 if (me->matrix().hasPerspective() || !matrix.hasPerspective()) { in Make()
DGrMatrixEffect.h33 SkSL::SampleUsage::UniformMatrix("matrix", matrix.hasPerspective())); in GrMatrixEffect()
/external/skia/src/gpu/geometry/
DGrQuad.cpp41 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()
/external/skia/src/gpu/ops/
DGrSmallPathRenderer.cpp71 if (!args.fViewMatrix->hasPerspective() && !args.fViewMatrix->getMinMaxScales(scaleFactors)) { in onCanDrawPath()
131 fUsesDistanceField = fUsesDistanceField || viewMatrix.hasPerspective(); in SmallPathOp()
223 if (ctm.hasPerspective()) { in onPrepareDraws()
278 if (args.fViewMatrix.hasPerspective()) { in onPrepareDraws()
566 if (fUsesDistanceField && !ctm.hasPerspective()) { in writePathVertices()
645 if (thisCtm.hasPerspective() != thatCtm.hasPerspective()) { in onCombineIfPossible()
651 if ((thisCtm.hasPerspective() || fHelper.usesLocalCoords()) && in onCombineIfPossible()
DGrAAHairLinePathRenderer.cpp260 bool persp = m.hasPerspective(); in gather_lines_and_quads()
766 if (viewMatrix.hasPerspective()) { in check_bounds()
935 if (this->viewMatrix().hasPerspective() != that->viewMatrix().hasPerspective()) { in onCombineIfPossible()
940 if (this->viewMatrix().hasPerspective() && in onCombineIfPossible()
1121 bool hasPerspective = this->viewMatrix().hasPerspective(); in onCreateProgramInfo() local
1124 if (hasPerspective) { in onCreateProgramInfo()
1183 if (this->viewMatrix().hasPerspective()) { in onPrepareDraws()
/external/skia/src/utils/
DSkShadowUtils.cpp125 if (!ctm.hasPerspective()) { in makeVertices()
191 } else if (ctm.hasPerspective() || OccluderType::kOpaquePartialUmbra == fOccluderType) { in makeVertices()
251 if (matrix.hasPerspective() || m.hasPerspective()) { in find()
501 context.fTranslate.fX, context.fTranslate.fY, path.viewMatrix().hasPerspective()); in draw_shadow()
628 SkScalar tx, SkScalar ty, bool hasPerspective) { in drawShadow() argument
635 hasPerspective ? SkMatrix::I() in drawShadow()
687 if (viewMatrix.hasPerspective()) { in drawShadow()
/external/skia/src/gpu/text/
DGrSDFTControl.cpp53 || viewMatrix.hasPerspective()) { in drawingType()
80 if (viewMatrix.hasPerspective()) { in scaled_text_size()
/external/skia/src/core/
DSkDrawShadowInfo.cpp31 if (!ctm.hasPerspective() || directional) { in GetSpotShadowTransform()
145 if (ctm.hasPerspective()) { in GetLocalBounds()
212 if (ctm.hasPerspective()) { in GetLocalBounds()
/external/skia/docs/examples/
DMatrix_hasPerspective.cpp14 string.printf("hasPerspective %s", matrix.hasPerspective() ? "true" : "false");
/external/skqp/src/gpu/text/
DGrTextContext.cpp99 if (!viewMatrix.hasPerspective()) { in CanDrawAsDistanceFields()
142 if (viewMatrix.hasPerspective()) { in InitDistanceFieldPaint()
/external/skqp/src/utils/
DSkShadowUtils.cpp100 if (!ctm.hasPerspective()) { in makeVertices()
157 if (ctm.hasPerspective() || OccluderType::kOpaquePartialUmbra == fOccluderType) { in makeVertices()
217 if (matrix.hasPerspective() || m.hasPerspective()) { in find()
590 if (viewMatrix.hasPerspective()) { in drawShadow()
/external/skqp/tests/
DMatrix44Test.cpp570 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()
/external/skia/tests/
DMatrix44Test.cpp564 REPORTER_ASSERT(reporter, transform.hasPerspective()); in test_has_perspective()
567 REPORTER_ASSERT(reporter, !transform.hasPerspective()); in test_has_perspective()
570 REPORTER_ASSERT(reporter, transform.hasPerspective()); in test_has_perspective()
574 REPORTER_ASSERT(reporter, transform.hasPerspective()); in test_has_perspective()
578 REPORTER_ASSERT(reporter, transform.hasPerspective()); in test_has_perspective()
582 REPORTER_ASSERT(reporter, transform.hasPerspective()); in test_has_perspective()
586 REPORTER_ASSERT(reporter, transform.hasPerspective()); in test_has_perspective()

12345