Home
last modified time | relevance | path

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

12345

/third_party/skia/src/shaders/
DSkTransformShader.cpp41 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()
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()
270 if (m.hasPerspective()) { in ApplyMatrix()
/third_party/skia/include/private/
DSkSLSampleUsage.h38 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/
DSkShader.cpp83 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/
DGrGeometryProcessor.cpp30 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/
DGrFillRRectOp.cpp39 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()
DGrStencilAndCoverPathRenderer.cpp141 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()
DGrAAHairLinePathRenderer.cpp259 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()
DGrSmallPathRenderer.cpp206 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()
DGrAtlasTextOp.cpp93 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/
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()
/third_party/flutter/skia/src/gpu/glsl/
DGrGLSLGeometryProcessor.cpp80 if (localMatrix.hasPerspective() || coordTransform->getMatrix().hasPerspective() in emitTransforms()
137 if (!mat.hasPerspective()) { in writeOutputPosition()
/third_party/flutter/skia/src/utils/
DSkShadowUtils.cpp102 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/
DSmallPathRenderer.cpp85 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()
DFillRRectOp.cpp170 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()
DAAHairLinePathRenderer.cpp268 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/
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()
/third_party/skia/src/gpu/effects/
DGrMatrixEffect.cpp22 if (me->fMatrix.hasPerspective() || !matrix.hasPerspective()) { in Make()
/third_party/flutter/skia/src/gpu/geometry/
DGrQuad.cpp41 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/
DSkShadowUtils.cpp135 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/
DSkDrawShadowInfo.cpp28 if (!ctm.hasPerspective()) { in GetSpotShadowTransform()
135 if (ctm.hasPerspective()) { in GetLocalBounds()
181 if (ctm.hasPerspective()) { in GetLocalBounds()
/third_party/skia/src/gpu/text/
DGrSDFTControl.cpp53 || viewMatrix.hasPerspective()) { in drawingType()
80 if (viewMatrix.hasPerspective()) { in scaled_text_size()
/third_party/skia/src/core/
DSkDrawShadowInfo.cpp43 if (!ctm.hasPerspective() || directional) { in GetSpotShadowTransform()
157 if (ctm.hasPerspective()) { in GetLocalBounds()
220 if (ctm.hasPerspective()) { in GetLocalBounds()
/third_party/flutter/skia/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()
/third_party/flutter/skia/src/gpu/text/
DGrTextContext.cpp99 if (!viewMatrix.hasPerspective()) { in CanDrawAsDistanceFields()
135 if (viewMatrix.hasPerspective()) { in scaled_text_size()

12345