Home
last modified time | relevance | path

Searched refs:localMatrix (Results 1 – 25 of 60) sorted by relevance

123

/external/skia/gm/
Dpictureshader.cpp66 SkMatrix ctm, localMatrix; in onDraw() local
69 localMatrix.setScale(2, 2); in onDraw()
70 this->drawScene(canvas, ctm, localMatrix, 0); in onDraw()
73 localMatrix.setScale(-1, -1); in onDraw()
74 this->drawScene(canvas, ctm, localMatrix, 0); in onDraw()
78 this->drawScene(canvas, ctm, localMatrix, 0); in onDraw()
82 localMatrix.setTranslate(fTileSize / 4, fTileSize / 4); in onDraw()
83 localMatrix.preRotate(45); in onDraw()
84 localMatrix.preScale(-2, -2); in onDraw()
85 this->drawScene(canvas, ctm, localMatrix, 0); in onDraw()
[all …]
Dgradients_2pt_conical.cpp42 SkShader::TileMode tm, const SkMatrix& localMatrix) { in Make2ConicalOutside() argument
49 data.fPos, data.fCount, tm, 0, &localMatrix); in Make2ConicalOutside()
53 SkShader::TileMode tm, const SkMatrix& localMatrix) { in Make2ConicalOutsideFlip() argument
60 data.fPos, data.fCount, tm, 0, &localMatrix); in Make2ConicalOutsideFlip()
64 SkShader::TileMode tm, const SkMatrix& localMatrix) { in Make2ConicalInside() argument
73 0, &localMatrix); in Make2ConicalInside()
77 SkShader::TileMode tm, const SkMatrix& localMatrix) { in Make2ConicalInsideFlip() argument
86 0, &localMatrix); in Make2ConicalInsideFlip()
90 SkShader::TileMode tm, const SkMatrix& localMatrix) { in Make2ConicalInsideCenter() argument
99 0, &localMatrix); in Make2ConicalInsideCenter()
[all …]
Dgradients.cpp57 SkShader::TileMode tm, const SkMatrix& localMatrix) { in MakeLinear() argument
59 &localMatrix); in MakeLinear()
63 SkShader::TileMode tm, const SkMatrix& localMatrix) { in MakeLinear4f() argument
66 &localMatrix); in MakeLinear4f()
70 SkShader::TileMode tm, const SkMatrix& localMatrix) { in MakeRadial() argument
75 tm, 0, &localMatrix); in MakeRadial()
79 SkShader::TileMode tm, const SkMatrix& localMatrix) { in MakeRadial4f() argument
85 data.fCount, tm, 0, &localMatrix); in MakeRadial4f()
89 SkShader::TileMode, const SkMatrix& localMatrix) { in MakeSweep() argument
94 0, &localMatrix); in MakeSweep()
[all …]
Dgradient_matrix.cpp65 static sk_sp<SkShader> make_linear_gradient(const SkPoint pts[2], const SkMatrix& localMatrix) { in make_linear_gradient() argument
67 SkShader::kClamp_TileMode, 0, &localMatrix); in make_linear_gradient()
70 static sk_sp<SkShader> make_radial_gradient(const SkPoint pts[2], const SkMatrix& localMatrix) { in make_radial_gradient() argument
76 SkShader::kClamp_TileMode, 0, &localMatrix); in make_radial_gradient()
Dpictureshadertile.cpp112 SkMatrix localMatrix; in onOnceBeforeDraw() local
113 localMatrix.setTranslate(tiles[i].offsetX * kPictureSize, in onOnceBeforeDraw()
115 localMatrix.postScale(kFillSize / (2 * kPictureSize), in onOnceBeforeDraw()
128 SkShader::kRepeat_TileMode, &localMatrix, in onOnceBeforeDraw()
Dshaderbounds.cpp14 const SkMatrix& localMatrix) { in MakeLinear() argument
23 0, &localMatrix); in MakeLinear()
31 bool alternate, const SkMatrix& localMatrix);
/external/skia/src/gpu/ops/
DGrNonAAFillRectOp.cpp40 const SkMatrix* localMatrix) { in make_perspective_gp() argument
41 SkASSERT(viewMatrix.hasPerspective() || (localMatrix && localMatrix->hasPerspective())); in make_perspective_gp()
52 localMatrix); in make_perspective_gp()
56 LocalCoords localCoords(LocalCoords::kHasExplicit_Type, localMatrix); in make_perspective_gp()
60 LocalCoords localCoords(LocalCoords::kUsePosition_Type, localMatrix); in make_perspective_gp()
109 const SkMatrix* localMatrix, GrAAType aaType, in Make() argument
113 localMatrix, aaType, stencilSettings); in Make()
119 const SkRect& rect, const SkRect* localRect, const SkMatrix* localMatrix, in NonAAFillRectOp() argument
123 SkASSERT(!viewMatrix.hasPerspective() && (!localMatrix || !localMatrix->hasPerspective())); in NonAAFillRectOp()
128 if (localRect && localMatrix) { in NonAAFillRectOp()
[all …]
DGrAAFillRectOp.cpp61 const SkMatrix* localMatrix) { in generate_aa_fill_rect_geometry() argument
111 if (localMatrix) { in generate_aa_fill_rect_geometry()
118 localCoordMatrix.setConcat(*localMatrix, invViewMatrix); in generate_aa_fill_rect_geometry()
174 const SkMatrix* localMatrix, in Make() argument
178 localMatrix, stencil); in Make()
186 const SkMatrix* localMatrix, in AAFillRectOp() argument
189 if (localMatrix) { in AAFillRectOp()
191 new (mem) RectWithLocalMatrixInfo(color, viewMatrix, rect, devRect, *localMatrix); in AAFillRectOp()
260 const SkMatrix* localMatrix = nullptr; in onPrepareDraws() local
266 localMatrix = &static_cast<const RectWithLocalMatrixInfo*>(info)->localMatrix(); in onPrepareDraws()
[all …]
DGrDashOp.cpp240 const SkMatrix& localMatrix,
803 const SkMatrix& localMatrix,
818 const SkMatrix& localMatrix() const { return fLocalMatrix; } in localMatrix() function in DashingCircleEffect
827 DashingCircleEffect(GrColor, AAMode aaMode, const SkMatrix& localMatrix,
906 dce.localMatrix(), in onEmitCode()
937 this->setTransformDataHelper(dce.localMatrix(), pdman, &transformIter); in setData()
945 key |= dce.usesLocalCoords() && dce.localMatrix().hasPerspective() ? 0x1 : 0x0; in GenKey()
954 const SkMatrix& localMatrix, in Make() argument
957 new DashingCircleEffect(color, aaMode, localMatrix, usesLocalCoords)); in Make()
971 const SkMatrix& localMatrix, in DashingCircleEffect() argument
[all …]
/external/skia/src/gpu/effects/
DGrBezierEffect.h64 const SkMatrix& localMatrix,
74 localMatrix, usesLocalCoords));
81 kHairlineAA_GrProcessorEdgeType, localMatrix,
86 localMatrix, usesLocalCoords));
103 const SkMatrix& localMatrix() const { return fLocalMatrix; } in localMatrix() function
113 const SkMatrix& localMatrix, bool usesLocalCoords);
146 const SkMatrix& localMatrix,
156 localMatrix, usesLocalCoords));
163 kHairlineAA_GrProcessorEdgeType, localMatrix,
168 localMatrix, usesLocalCoords));
[all …]
DGrBitmapTextGeoProc.h26 GrMaskFormat format, const SkMatrix& localMatrix, in Make() argument
30 localMatrix, usesLocalCoords)); in Make()
43 const SkMatrix& localMatrix() const { return fLocalMatrix; } in localMatrix() function
53 GrMaskFormat format, const SkMatrix& localMatrix, bool usesLocalCoords);
DGrBitmapTextGeoProc.cpp60 cte.localMatrix(), in onEmitCode()
87 this->setTransformDataHelper(btgp.localMatrix(), pdman, &transformIter); in setData()
95 key |= (gp.usesLocalCoords() && gp.localMatrix().hasPerspective()) ? 0x1 : 0x0; in GenKey()
120 const SkMatrix& localMatrix, bool usesLocalCoords) in GrBitmapTextGeoProc() argument
122 , fLocalMatrix(localMatrix) in GrBitmapTextGeoProc()
/external/skia/fuzz/
DFuzzGradients.cpp71 const SkMatrix* localMatrix, in logLinearGradient() argument
102 logOptionalMatrix("local matrix", localMatrix); in logLinearGradient()
121 SkTLazy<SkMatrix> localMatrix; in fuzzLinearGradient() local
123 makeMatrix(fuzz, localMatrix.init()); in fuzzLinearGradient()
126 colors.size(), mode, flags, localMatrix.getMaybeNull())); in fuzzLinearGradient()
132 logLinearGradient(pts, colors, pos, mode, flags, localMatrix.getMaybeNull(), &gm); in fuzzLinearGradient()
137 logLinearGradient(pts, colors, pos, mode, flags, localMatrix.getMaybeNull(), nullptr); in fuzzLinearGradient()
159 SkTLazy<SkMatrix> localMatrix; in fuzzRadialGradient() local
161 makeMatrix(fuzz, localMatrix.init()); in fuzzRadialGradient()
164 pos.data(), colors.size(), mode, flags, localMatrix.getMaybeNull())); in fuzzRadialGradient()
[all …]
/external/skia/src/shaders/
DSkShader.cpp50 SkShaderBase::SkShaderBase(const SkMatrix* localMatrix) in SkShaderBase() argument
51 : fLocalMatrix(localMatrix ? *localMatrix : SkMatrix::I()) { in SkShaderBase()
228 SkImage* SkShader::isAImage(SkMatrix* localMatrix, TileMode xy[2]) const { in isAImage() argument
229 return as_SB(this)->onIsAImage(localMatrix, xy); in isAImage()
251 const SkMatrix* localMatrix) { in MakeBitmapShader() argument
252 if (localMatrix && !localMatrix->invert(nullptr)) { in MakeBitmapShader()
255 return SkMakeBitmapShader(src, tmx, tmy, localMatrix, kIfMutable_SkCopyPixelsMode); in MakeBitmapShader()
259 const SkMatrix* localMatrix, const SkRect* tile) { in MakePictureShader() argument
260 if (localMatrix && !localMatrix->invert(nullptr)) { in MakePictureShader()
263 return SkPictureShader::Make(std::move(src), tmx, tmy, localMatrix, tile); in MakePictureShader()
DSkLocalMatrixShader.h21 SkLocalMatrixShader(sk_sp<SkShader> proxy, const SkMatrix& localMatrix) in SkLocalMatrixShader() argument
22 : INHERITED(&localMatrix) in SkLocalMatrixShader()
34 sk_sp<SkShader> makeAsALocalMatrixShader(SkMatrix* localMatrix) const override { in makeAsALocalMatrixShader() argument
35 if (localMatrix) { in makeAsALocalMatrixShader()
36 *localMatrix = this->getLocalMatrix(); in makeAsALocalMatrixShader()
DSkLocalMatrixShader.cpp91 sk_sp<SkShader> SkShader::makeWithLocalMatrix(const SkMatrix& localMatrix) const { in makeWithLocalMatrix()
92 if (localMatrix.isIdentity()) { in makeWithLocalMatrix()
96 const SkMatrix* lm = &localMatrix; in makeWithLocalMatrix()
102 otherLocalMatrix.preConcat(localMatrix); in makeWithLocalMatrix()
DSkPictureShader.cpp40 const SkMatrix& localMatrix, in BitmapShaderKey()
50 fLocalMatrixStorage[i] = localMatrix[i]; in BitmapShaderKey()
128 const SkMatrix* localMatrix, const SkRect* tile, in SkPictureShader() argument
130 : INHERITED(localMatrix) in SkPictureShader()
146 const SkMatrix* localMatrix, const SkRect* tile) { in Make() argument
150 return sk_sp<SkShader>(new SkPictureShader(std::move(picture), tmx, tmy, localMatrix, tile, in Make()
300 const SkMatrix* localMatrix) const { in onAppendStages()
303 bitmapShader = this->refBitmapShader(ctm, localMatrix, cs); in onAppendStages()
/external/skia/include/c/
Dsk_shader.h50 const sk_matrix_t* localMatrix);
80 const sk_matrix_t* localMatrix);
103 const sk_matrix_t* localMatrix);
139 const sk_matrix_t* localMatrix);
/external/skia/src/gpu/
DGrPathProcessor.h21 const SkMatrix& localMatrix = SkMatrix::I()) {
22 return new GrPathProcessor(color, viewMatrix, localMatrix);
29 const SkMatrix& localMatrix() const { return fLocalMatrix; } in localMatrix() function
41 GrPathProcessor(GrColor, const SkMatrix& viewMatrix, const SkMatrix& localMatrix);
DGrDefaultGeoProcFactory.cpp40 const SkMatrix& localMatrix, in Make() argument
44 gpTypeFlags, color, std::move(colorSpaceXform), viewMatrix, localMatrix, coverage, in Make()
57 const SkMatrix& localMatrix() const { return fLocalMatrix; } in localMatrix() function in DefaultGeoProc
149 gp.localMatrix(), in onEmitCode()
158 gp.localMatrix(), in onEmitCode()
186 key |= (def.localCoordsWillBeRead() && def.localMatrix().hasPerspective()) ? 0x20 : 0x0; in GenKey()
249 const SkMatrix& localMatrix, in DefaultGeoProc() argument
254 , fLocalMatrix(localMatrix) in DefaultGeoProc()
DGrPathProcessor.cpp86 const SkMatrix& m = GetTransformMatrix(pathProc.localMatrix(), *coordTransform); in setData()
118 const SkMatrix& localMatrix) in GrPathProcessor() argument
121 , fLocalMatrix(localMatrix) { in GrPathProcessor()
/external/skia/include/effects/
DSkGradientShader.h44 uint32_t flags, const SkMatrix* localMatrix);
66 uint32_t flags, const SkMatrix* localMatrix);
89 uint32_t flags, const SkMatrix* localMatrix);
112 uint32_t flags, const SkMatrix* localMatrix);
129 uint32_t flags, const SkMatrix* localMatrix);
149 uint32_t flags, const SkMatrix* localMatrix);
173 uint32_t flags, const SkMatrix* localMatrix);
194 uint32_t flags, const SkMatrix* localMatrix);
/external/skia/include/core/
DSkShader.h100 SkImage* isAImage(SkMatrix* localMatrix, TileMode xy[2]) const;
254 const SkMatrix* localMatrix = nullptr);
273 const SkMatrix* localMatrix, const SkRect* tile);
280 virtual sk_sp<SkShader> makeAsALocalMatrixShader(SkMatrix* localMatrix) const;
/external/skia/src/gpu/glsl/
DGrGLSLGeometryProcessor.cpp31 const SkMatrix& localMatrix, in emitTransforms() argument
40 type |= localMatrix.getType(); in emitTransforms()
73 void GrGLSLGeometryProcessor::setTransformDataHelper(const SkMatrix& localMatrix, in setTransformDataHelper() argument
78 const SkMatrix& m = GetTransformMatrix(localMatrix, *coordTransform); in setTransformDataHelper()
/external/skia/src/shaders/gradients/
DSkGradientShader.cpp994 SkShader::TileMode mode, uint32_t flags, const SkMatrix* localMatrix) { in desc_init() argument
1003 desc->fLocalMatrix = localMatrix; in desc_init()
1076 const SkMatrix* localMatrix) { in MakeLinear() argument
1079 localMatrix); in MakeLinear()
1088 const SkMatrix* localMatrix) { in MakeLinear() argument
1098 if (localMatrix && !localMatrix->invert(nullptr)) { in MakeLinear()
1106 localMatrix); in MakeLinear()
1115 const SkMatrix* localMatrix) { in MakeRadial() argument
1118 flags, localMatrix); in MakeRadial()
1127 const SkMatrix* localMatrix) { in MakeRadial() argument
[all …]

123