Home
last modified time | relevance | path

Searched refs:viewMatrix (Results 1 – 25 of 72) sorted by relevance

123

/external/skia/src/gpu/effects/
DGrBezierEffect.h62 const SkMatrix& viewMatrix,
72 return SkNEW_ARGS(GrConicEffect, (color, viewMatrix, coverage,
79 return SkNEW_ARGS(GrConicEffect, (color, viewMatrix, coverage,
83 return SkNEW_ARGS(GrConicEffect, (color, viewMatrix, coverage,
101 const SkMatrix& viewMatrix() const { return fViewMatrix; } in viewMatrix() function
114 GrConicEffect(GrColor, const SkMatrix& viewMatrix, uint8_t coverage, GrPrimitiveEdgeType,
144 const SkMatrix& viewMatrix,
154 return SkNEW_ARGS(GrQuadEffect, (color, viewMatrix, coverage,
161 return SkNEW_ARGS(GrQuadEffect, (color, viewMatrix, coverage,
165 return SkNEW_ARGS(GrQuadEffect, (color, viewMatrix, coverage,
[all …]
DGrDistanceFieldGeoProc.h50 static GrGeometryProcessor* Create(GrColor color, const SkMatrix& viewMatrix, in Create() argument
53 return SkNEW_ARGS(GrDistanceFieldA8TextGeoProc, (color, viewMatrix, tex, params, lum, in Create()
57 static GrGeometryProcessor* Create(GrColor color, const SkMatrix& viewMatrix,
60 return SkNEW_ARGS(GrDistanceFieldA8TextGeoProc, (color, viewMatrix, tex, params, flags));
72 const SkMatrix& viewMatrix() const { return fViewMatrix; } in viewMatrix() function
88 GrDistanceFieldA8TextGeoProc(GrColor, const SkMatrix& viewMatrix,
120 static GrGeometryProcessor* Create(GrColor color, const SkMatrix& viewMatrix, GrTexture* tex, in Create() argument
123 return SkNEW_ARGS(GrDistanceFieldPathGeoProc, (color, viewMatrix, tex, params, flags)); in Create()
134 const SkMatrix& viewMatrix() const { return fViewMatrix; } in viewMatrix() function
147 GrDistanceFieldPathGeoProc(GrColor, const SkMatrix& viewMatrix, GrTexture* texture,
[all …]
/external/skia/src/gpu/
DGrOvalRenderer.cpp426 static GrGeometryProcessor* Create(GrColor color, const SkMatrix& viewMatrix, Mode mode) { in Create() argument
427 return SkNEW_ARGS(DIEllipseEdgeEffect, (color, viewMatrix, mode)); in Create()
438 const SkMatrix& viewMatrix() const { return fViewMatrix; } in viewMatrix() function in DIEllipseEdgeEffect
472 this->setupPosition(pb, gpArgs, ee.inPosition()->fName, ee.viewMatrix()); in onEmitCode()
526 key |= ComputePosKey(ellipseEffect.viewMatrix()) << 9; in GenKey()
534 this->setUniformViewMatrix(pdman, dee.viewMatrix()); in setData()
570 DIEllipseEdgeEffect(GrColor color, const SkMatrix& viewMatrix, Mode mode) in DIEllipseEdgeEffect() argument
572 , fViewMatrix(viewMatrix) { in DIEllipseEdgeEffect()
617 const SkMatrix& viewMatrix, in drawOval() argument
629 if (SkScalarNearlyEqual(oval.width(), oval.height()) && circle_stays_circle(viewMatrix)) { in drawOval()
[all …]
DGrAtlasTextContext.cpp209 const SkMatrix& viewMatrix) { in canDraw() argument
210 return this->canDrawAsDistanceFields(skPaint, viewMatrix) || in canDraw()
211 !SkDraw::ShouldDrawTextAsPaths(skPaint, viewMatrix); in canDraw()
251 const SkMatrix& viewMatrix, SkScalar x, SkScalar y) { in MustRegenerateBlob() argument
258 if (blob.fViewMatrix.hasPerspective() != viewMatrix.hasPerspective()) { in MustRegenerateBlob()
262 if (blob.fViewMatrix.hasPerspective() && !blob.fViewMatrix.cheapEqualTo(viewMatrix)) { in MustRegenerateBlob()
286 if (blob.fViewMatrix.cheapEqualTo(viewMatrix) && x == blob.fX && y == blob.fY) { in MustRegenerateBlob()
293 if (blob.fViewMatrix.getScaleX() != viewMatrix.getScaleX() || in MustRegenerateBlob()
294 blob.fViewMatrix.getScaleY() != viewMatrix.getScaleY() || in MustRegenerateBlob()
295 blob.fViewMatrix.getSkewX() != viewMatrix.getSkewX() || in MustRegenerateBlob()
[all …]
DGrTextContext.cpp51 const SkPaint& skPaint, const SkMatrix& viewMatrix, in drawText() argument
60 if (textContext->canDraw(rt, clip, paint, skPaint, viewMatrix)) { in drawText()
61 textContext->onDrawText(rt, clip, paint, skPaint, viewMatrix, text, byteLength, x, y, in drawText()
70 this->drawTextAsPath(skPaint, viewMatrix, text, byteLength, x, y, clipBounds); in drawText()
74 const SkPaint& skPaint, const SkMatrix& viewMatrix, in drawPosText() argument
84 if (textContext->canDraw(rt, clip, paint, skPaint, viewMatrix)) { in drawPosText()
85 textContext->onDrawPosText(rt, clip, paint, skPaint, viewMatrix, text, byteLength, pos, in drawPosText()
94 this->drawPosTextAsPath(skPaint, viewMatrix, text, byteLength, pos, scalarsPerPosition, offset, in drawPosText()
99 const SkMatrix& viewMatrix, const SkTextBlob* blob, in drawTextBlob() argument
121 if (!SkPaint2GrPaint(fContext, fRenderTarget, runPaint, viewMatrix, true, &grPaint)) { in drawTextBlob()
[all …]
DGrStencilAndCoverPathRenderer.cpp58 const SkMatrix& viewMatrix, in canDrawPath() argument
91 const SkMatrix& viewMatrix, in onStencilPath() argument
95 SkAutoTUnref<GrPathProcessor> pp(GrPathProcessor::Create(GrColor_WHITE, viewMatrix)); in onStencilPath()
103 const SkMatrix& viewMatrix, in onDrawPath() argument
129 SkAutoTUnref<GrPathProcessor> pp(GrPathProcessor::Create(GrColor_WHITE, viewMatrix)); in onDrawPath()
138 if (!viewMatrix.hasPerspective() && viewMatrix.invert(&vmi)) { in onDrawPath()
142 SkScalar bloat = viewMatrix.getMaxScale() * SK_ScalarHalf; in onDrawPath()
145 if (!viewMatrix.invert(&invert)) { in onDrawPath()
149 const SkMatrix& viewM = viewMatrix.hasPerspective() ? SkMatrix::I() : viewMatrix; in onDrawPath()
161 SkAutoTUnref<GrPathProcessor> pp(GrPathProcessor::Create(color, viewMatrix)); in onDrawPath()
DGrDefaultPathRenderer.cpp222 static GrBatch* Create(const Geometry& geometry, uint8_t coverage, const SkMatrix& viewMatrix, in Create() argument
224 return SkNEW_ARGS(DefaultPathBatch, (geometry, coverage, viewMatrix, isHairline, in Create()
257 this->viewMatrix(), in generateGeometry()
384 DefaultPathBatch(const Geometry& geometry, uint8_t coverage, const SkMatrix& viewMatrix, in DefaultPathBatch() argument
389 fBatch.fViewMatrix = viewMatrix; in DefaultPathBatch()
406 if (!this->viewMatrix().cheapEqualTo(that->viewMatrix())) { in onCombineIfPossible()
519 const SkMatrix& viewMatrix() const { return fBatch.fViewMatrix; } in viewMatrix() function in DefaultPathBatch
539 const SkMatrix& viewMatrix, in internalDrawPath() argument
547 if (IsStrokeHairlineOrEquivalent(*stroke, viewMatrix, &hairlineCoverage)) { in internalDrawPath()
655 SkScalar srcSpaceTol = GrPathUtils::scaleToleranceToSrc(tol, viewMatrix, path.getBounds()); in internalDrawPath()
[all …]
DGrAARectRenderer.cpp92 if (this->usesLocalCoords() && !this->viewMatrix().invert(&localMatrix)) { in generateGeometry()
178 const SkMatrix& viewMatrix() const { return fGeoData[0].fViewMatrix; } in viewMatrix() function in AAFillRectBatch
187 if (this->usesLocalCoords() && !this->viewMatrix().cheapEqualTo(that->viewMatrix())) { in onCombineIfPossible()
210 const SkMatrix& viewMatrix, in generateAAFillRectGeometry() argument
222 if (viewMatrix.rectStaysRect()) { in generateAAFillRectGeometry()
228 { viewMatrix[SkMatrix::kMScaleX], viewMatrix[SkMatrix::kMSkewY] }, in generateAAFillRectGeometry()
229 { viewMatrix[SkMatrix::kMSkewX], viewMatrix[SkMatrix::kMScaleY] } in generateAAFillRectGeometry()
240 viewMatrix.mapPointsWithStride(fan0Pos, vertexStride, 4); in generateAAFillRectGeometry()
322 const SkMatrix& viewMatrix, in geometryFillAARect() argument
327 geometry.fViewMatrix = viewMatrix; in geometryFillAARect()
[all …]
DGrAtlasTextContext.h45 const SkPaint&, const SkMatrix& viewMatrix) override;
48 const SkMatrix& viewMatrix, const char text[], size_t byteLength,
51 const SkMatrix& viewMatrix,
56 const SkMatrix& viewMatrix, const SkTextBlob*, SkScalar x, SkScalar y,
258 inline bool canDrawAsDistanceFields(const SkPaint&, const SkMatrix& viewMatrix);
260 const SkMatrix& viewMatrix, SkGlyphCache** cache,
266 const SkMatrix& viewMatrix);
275 const SkMatrix& viewMatrix, const SkIRect& clipBounds, SkScalar x,
289 const GrPaint&, SkDrawFilter*, const GrClip&, const SkMatrix& viewMatrix,
298 const SkPaint&, const SkMatrix& viewMatrix,
[all …]
DGrPathRenderer.h108 const SkMatrix& viewMatrix,
126 const SkMatrix& viewMatrix, in drawPath() argument
131 SkASSERT(this->canDrawPath(target, ds, viewMatrix, path, stroke, antiAlias)); in drawPath()
135 return this->onDrawPath(target, ds, color, viewMatrix, path, stroke, antiAlias); in drawPath()
148 const SkMatrix& viewMatrix, in stencilPath() argument
153 this->onStencilPath(target, ds, viewMatrix, path, stroke); in stencilPath()
190 const SkMatrix& viewMatrix,
201 const SkMatrix& viewMatrix, in onStencilPath() argument
213 this->drawPath(target, pipelineBuilder, GrColor_WHITE, viewMatrix, path, stroke, false); in onStencilPath()
DGrTextContext.h33 const SkMatrix& viewMatrix, const char text[], size_t byteLength, SkScalar x,
36 const SkMatrix& viewMatrix,
41 const SkMatrix& viewMatrix, const SkTextBlob*, SkScalar x, SkScalar y,
65 const SkPaint&, const SkMatrix& viewMatrix) = 0;
68 const SkMatrix& viewMatrix, const char text[], size_t byteLength,
71 const SkMatrix& viewMatrix,
76 void drawTextAsPath(const SkPaint& origPaint, const SkMatrix& viewMatrix,
79 void drawPosTextAsPath(const SkPaint& origPaint, const SkMatrix& viewMatrix,
DGrAARectRenderer.h35 const SkMatrix& viewMatrix, in SK_DECLARE_INST_COUNT()
38 this->geometryFillAARect(target, pipelineBuilder, color, viewMatrix, rect, devRect); in SK_DECLARE_INST_COUNT()
44 const SkMatrix& viewMatrix,
53 const SkMatrix& viewMatrix,
60 const SkMatrix& viewMatrix,
67 const SkMatrix& viewMatrix,
DGrOvalRenderer.h30 const SkMatrix& viewMatrix,
37 const SkMatrix& viewMatrix,
44 const SkMatrix& viewMatrix,
53 const SkMatrix& viewMatrix,
60 const SkMatrix& viewMatrix,
67 const SkMatrix& viewMatrix,
DGrContext.cpp296 const SkMatrix& viewMatrix) { in drawPaint() argument
311 bool isPerspective = viewMatrix.hasPerspective(); in drawPaint()
318 if (!viewMatrix.invert(&inverse)) { in drawPaint()
323 this->drawRect(rt, clip, *paint, viewMatrix, r); in drawPaint()
326 if (!viewMatrix.invert(&localMatrix)) { in drawPaint()
441 this->viewMatrix(), in generateGeometry()
550 const SkMatrix& viewMatrix() const { return fGeoData[0].fViewMatrix; } in viewMatrix() function in StrokeRectBatch
579 const SkMatrix& viewMatrix, in drawRect() argument
586 this->drawPath(rt, clip, paint, viewMatrix, path, *strokeInfo); in drawRect()
614 if (!viewMatrix.invert(&invM)) { in drawRect()
[all …]
DGrSoftwarePathRenderer.cpp17 const SkMatrix& viewMatrix, in canDrawPath() argument
85 const SkMatrix& viewMatrix, in draw_around_inv_path() argument
89 if (!viewMatrix.invert(&invert)) { in draw_around_inv_path()
123 const SkMatrix& viewMatrix, in onDrawPath() argument
132 if (!get_path_and_clip_bounds(target, pipelineBuilder, path, viewMatrix, &devPathBounds, in onDrawPath()
135 draw_around_inv_path(target, pipelineBuilder, color, viewMatrix, devClipBounds, in onDrawPath()
144 antiAlias, &viewMatrix)); in onDrawPath()
150 GrSWMaskHelper::DrawToTargetWithPathMask(texture, target, &copy, color, viewMatrix, in onDrawPath()
154 draw_around_inv_path(target, pipelineBuilder, color, viewMatrix, devClipBounds, in onDrawPath()
DGrRectBatch.cpp90 if (!this->viewMatrix().isIdentity() && !this->viewMatrix().invert(&invert)) { in generateGeometry()
175 const SkMatrix& viewMatrix() const { return fGeoData[0].fViewMatrix; } in viewMatrix() function in RectBatch
189 if (!this->viewMatrix().cheapEqualTo(that->viewMatrix())) { in onCombineIfPossible()
224 const SkMatrix& viewMatrix, in Create() argument
230 geometry.fViewMatrix = viewMatrix; in Create()
264 SkMatrix viewMatrix; in BATCH_TEST_DEFINE() local
267 viewMatrix = GrTest::TestMatrixInvertible(random); in BATCH_TEST_DEFINE()
270 viewMatrix = GrTest::TestMatrix(random); in BATCH_TEST_DEFINE()
277 return GrRectBatch::Create(color, viewMatrix, rect, in BATCH_TEST_DEFINE()
DGrAADistanceFieldPathRenderer.cpp89 const SkMatrix& viewMatrix, in canDrawPath() argument
102 if (viewMatrix.hasPerspective()) { in canDrawPath()
108 SkScalar maxScale = viewMatrix.getMaxScale(); in canDrawPath()
142 static GrBatch* Create(const Geometry& geometry, GrColor color, const SkMatrix& viewMatrix, in Create() argument
144 return SkNEW_ARGS(AADistanceFieldPathBatch, (geometry, color, viewMatrix, in Create()
183 if (this->usesLocalCoords() && !this->viewMatrix().invert(&invert)) { in generateGeometry()
189 flags |= this->viewMatrix().isSimilarity() ? kSimilarity_DistanceFieldEffectFlag : 0; in generateGeometry()
197 this->viewMatrix(), in generateGeometry()
227 SkScalar maxScale = this->viewMatrix().getMaxScale(); in generateGeometry()
281 this->viewMatrix(), in generateGeometry()
[all …]
DGrDefaultGeoProcFactory.cpp25 const SkMatrix& viewMatrix, in Create() argument
30 viewMatrix, in Create()
42 const SkMatrix& viewMatrix() const { return fViewMatrix; } in viewMatrix() function in DefaultGeoProc
86 this->setupPosition(pb, gpArgs, gp.inPosition()->fName, gp.viewMatrix()); in onEmitCode()
126 key |= ComputePosKey(def.viewMatrix()) << 25; in GenKey()
134 this->setUniformViewMatrix(pdman, dgp.viewMatrix()); in setData()
179 const SkMatrix& viewMatrix, in DefaultGeoProc() argument
187 , fViewMatrix(viewMatrix) in DefaultGeoProc()
260 const SkMatrix& viewMatrix, in Create() argument
265 viewMatrix, in Create()
DGrDefaultPathRenderer.h24 const SkMatrix& viewMatrix,
39 const SkMatrix& viewMatrix,
46 const SkMatrix& viewMatrix,
53 const SkMatrix& viewMatrix,
DGrDashLinePathRenderer.cpp22 const SkMatrix& viewMatrix, in canDrawPath() argument
28 return GrDashingEffect::CanDrawDashLine(pts, stroke, viewMatrix); in canDrawPath()
36 const SkMatrix& viewMatrix, in onDrawPath() argument
43 viewMatrix, pts, useAA, stroke); in onDrawPath()
DGrAAHairLinePathRenderer.cpp621 const SkMatrix& viewMatrix, in canDrawPath() argument
629 if (!IsStrokeHairlineOrEquivalent(stroke, viewMatrix, NULL)) { in canDrawPath()
641 bool check_bounds(const SkMatrix& viewMatrix, const SkRect& devBounds, void* vertices, int vCount) in check_bounds() argument
646 if (viewMatrix.hasPerspective()) { in check_bounds()
650 SkASSERT(viewMatrix.isIdentity()); in check_bounds()
662 viewMatrix.mapPoints(&pos, 1); in check_bounds()
742 if (this->viewMatrix().hasPerspective() != that->viewMatrix().hasPerspective()) { in onCombineIfPossible()
747 if (this->viewMatrix().hasPerspective() && in onCombineIfPossible()
748 !this->viewMatrix().cheapEqualTo(that->viewMatrix())) { in onCombineIfPossible()
764 if (this->usesLocalCoords() && !this->viewMatrix().cheapEqualTo(that->viewMatrix())) { in onCombineIfPossible()
[all …]
DGrStencilAndCoverTextContext.h74 const SkPaint&, const SkMatrix& viewMatrix) override;
77 const SkMatrix& viewMatrix,
81 const SkMatrix& viewMatrix,
87 size_t textByteLength, RenderMode, const SkMatrix& viewMatrix,
DGrPathProcessor.h27 const SkMatrix& viewMatrix = SkMatrix::I(),
29 return SkNEW_ARGS(GrPathProcessor, (color, viewMatrix, localMatrix));
41 const SkMatrix& viewMatrix() const { return fViewMatrix; } in viewMatrix() function
58 GrPathProcessor(GrColor color, const SkMatrix& viewMatrix, const SkMatrix& localMatrix);
/external/skia/src/gpu/gl/
DGrGLPrimitiveProcessor.cpp66 const SkMatrix& viewMatrix) { in setUniformViewMatrix() argument
67 if (!viewMatrix.isIdentity() && !fViewMatrix.cheapEqualTo(viewMatrix)) { in setUniformViewMatrix()
69 fViewMatrix = viewMatrix; in setUniformViewMatrix()
71 GrGLfloat viewMatrix[3 * 3]; in setUniformViewMatrix() local
72 GrGLGetMatrix<3>(viewMatrix, fViewMatrix); in setUniformViewMatrix()
73 pdman.setMatrix3f(fViewMatrixUniform, viewMatrix); in setUniformViewMatrix()
/external/skia/include/gpu/
DGrContext.h238 void drawPaint(GrRenderTarget*, const GrClip&, const GrPaint&, const SkMatrix& viewMatrix);
255 const SkMatrix& viewMatrix,
272 const SkMatrix& viewMatrix,
283 const SkMatrix& viewMatrix, in drawNonAARectWithLocalMatrix() argument
286 this->drawNonAARectToRect(rt, clip, paint, viewMatrix, rect, rect, &localMatrix); in drawNonAARectWithLocalMatrix()
301 const SkMatrix& viewMatrix,
318 const SkMatrix& viewMatrix,
335 const SkMatrix& viewMatrix,
359 const SkMatrix& viewMatrix,
380 const SkMatrix& viewMatrix,
[all …]

123