/external/skia/src/shaders/ |
H A D | SkLocalMatrixShader.h | 21 SkLocalMatrixShader(sk_sp<SkShader> proxy, const SkMatrix& localMatrix) argument 22 : INHERITED(&localMatrix) 34 sk_sp<SkShader> makeAsALocalMatrixShader(SkMatrix* localMatrix) const override { 35 if (localMatrix) { 36 *localMatrix = this->getLocalMatrix();
|
H A D | SkShaderBase.h | 155 const SkMatrix* localMatrix, 160 , fLocalMatrix(localMatrix) 233 SkShaderBase(const SkMatrix* localMatrix = nullptr); 153 AsFPArgs(GrContext* context, const SkMatrix* viewMatrix, const SkMatrix* localMatrix, SkFilterQuality filterQuality, SkColorSpace* dstColorSpace) argument
|
/external/skia/src/gpu/ |
H A D | GrPathProcessor.h | 21 const SkMatrix& localMatrix = SkMatrix::I()) { 22 return new GrPathProcessor(color, viewMatrix, localMatrix); 29 const SkMatrix& localMatrix() const { return fLocalMatrix; } function in class:GrPathProcessor 41 GrPathProcessor(GrColor, const SkMatrix& viewMatrix, const SkMatrix& localMatrix);
|
H A D | GrPathProcessor.cpp | 86 const SkMatrix& m = GetTransformMatrix(pathProc.localMatrix(), *coordTransform); 118 const SkMatrix& localMatrix) 121 , fLocalMatrix(localMatrix) { 116 GrPathProcessor(GrColor color, const SkMatrix& viewMatrix, const SkMatrix& localMatrix) argument
|
H A D | GrDefaultGeoProcFactory.cpp | 40 const SkMatrix& localMatrix, 44 gpTypeFlags, color, std::move(colorSpaceXform), viewMatrix, localMatrix, coverage, 57 const SkMatrix& localMatrix() const { return fLocalMatrix; } function in class:DefaultGeoProc 149 gp.localMatrix(), 158 gp.localMatrix(), 186 key |= (def.localCoordsWillBeRead() && def.localMatrix().hasPerspective()) ? 0x20 : 0x0; 249 const SkMatrix& localMatrix, 254 , fLocalMatrix(localMatrix) 36 Make(uint32_t gpTypeFlags, GrColor color, sk_sp<GrColorSpaceXform> colorSpaceXform, const SkMatrix& viewMatrix, const SkMatrix& localMatrix, bool localCoordsWillBeRead, uint8_t coverage) argument 245 DefaultGeoProc(uint32_t gpTypeFlags, GrColor color, sk_sp<GrColorSpaceXform> colorSpaceXform, const SkMatrix& viewMatrix, const SkMatrix& localMatrix, uint8_t coverage, bool localCoordsWillBeRead) argument
|
H A D | GrSoftwarePathRenderer.cpp | 78 const SkMatrix& localMatrix) { 81 std::move(paint), viewMatrix, localMatrix, rect, 72 DrawNonAARect(GrRenderTargetContext* renderTargetContext, GrPaint&& paint, const GrUserStencilSettings& userStencilSettings, const GrClip& clip, const SkMatrix& viewMatrix, const SkRect& rect, const SkMatrix& localMatrix) argument
|
/external/skia/src/gpu/glsl/ |
H A D | GrGLSLPrimitiveProcessor.cpp | 17 SkMatrix GrGLSLPrimitiveProcessor::GetTransformMatrix(const SkMatrix& localMatrix, argument 20 combined.setConcat(coordTransform.getMatrix(), localMatrix);
|
H A D | GrGLSLGeometryProcessor.cpp | 31 const SkMatrix& localMatrix, 40 type |= localMatrix.getType(); 73 void GrGLSLGeometryProcessor::setTransformDataHelper(const SkMatrix& localMatrix, argument 78 const SkMatrix& m = GetTransformMatrix(localMatrix, *coordTransform); 26 emitTransforms(GrGLSLVertexBuilder* vb, GrGLSLVaryingHandler* varyingHandler, GrGLSLUniformHandler* uniformHandler, const GrShaderVar& posVar, const char* localCoords, const SkMatrix& localMatrix, FPCoordTransformHandler* handler) argument
|
/external/skia/gm/ |
H A D | gradient_matrix.cpp | 65 static sk_sp<SkShader> make_linear_gradient(const SkPoint pts[2], const SkMatrix& localMatrix) { argument 67 SkShader::kClamp_TileMode, 0, &localMatrix); 70 static sk_sp<SkShader> make_radial_gradient(const SkPoint pts[2], const SkMatrix& localMatrix) { argument 76 SkShader::kClamp_TileMode, 0, &localMatrix);
|
H A D | pictureshadertile.cpp | 112 SkMatrix localMatrix; variable 113 localMatrix.setTranslate(tiles[i].offsetX * kPictureSize, 115 localMatrix.postScale(kFillSize / (2 * kPictureSize), 128 SkShader::kRepeat_TileMode, &localMatrix,
|
H A D | shaderbounds.cpp | 14 const SkMatrix& localMatrix) { 23 0, &localMatrix); 31 bool alternate, const SkMatrix& localMatrix); 13 MakeLinear(SkScalar width, SkScalar height, bool alternate, const SkMatrix& localMatrix) argument
|
H A D | pictureshader.cpp | 66 SkMatrix ctm, localMatrix; variable 69 localMatrix.setScale(2, 2); 70 this->drawScene(canvas, ctm, localMatrix, 0); 73 localMatrix.setScale(-1, -1); 74 this->drawScene(canvas, ctm, localMatrix, 0); 78 this->drawScene(canvas, ctm, localMatrix, 0); 82 localMatrix.setTranslate(fTileSize / 4, fTileSize / 4); 83 localMatrix.preRotate(45); 84 localMatrix.preScale(-2, -2); 85 this->drawScene(canvas, ctm, localMatrix, 91 SkMatrix ctm, localMatrix; local 141 drawScene(SkCanvas* canvas, const SkMatrix& matrix, const SkMatrix& localMatrix, unsigned tileMode) argument [all...] |
H A D | strokedlines.cpp | 75 static void draw_row(SkCanvas* canvas, const SkPaint& paint, const SkMatrix& localMatrix) { argument 87 canvas->concat(localMatrix);
|
H A D | vertices.cpp | 23 const SkMatrix localMatrix = SkMatrix::MakeScale(shaderScale, shaderScale); local 28 &localMatrix);
|
/external/skia/samplecode/ |
H A D | SampleLayers.cpp | 29 static void make_paint(SkPaint* paint, const SkMatrix& localMatrix) { argument 33 SkShader::kClamp_TileMode, 0, &localMatrix));
|
/external/skia/src/gpu/effects/ |
H A D | GrBitmapTextGeoProc.h | 26 GrMaskFormat format, const SkMatrix& localMatrix, 30 localMatrix, usesLocalCoords)); 43 const SkMatrix& localMatrix() const { return fLocalMatrix; } function in class:GrBitmapTextGeoProc 53 GrMaskFormat format, const SkMatrix& localMatrix, bool usesLocalCoords); 24 Make(GrColor color, sk_sp<GrTextureProxy> proxy, const GrSamplerParams& p, GrMaskFormat format, const SkMatrix& localMatrix, bool usesLocalCoords) argument
|
H A D | GrBezierEffect.h | 64 const SkMatrix& localMatrix, 74 localMatrix, usesLocalCoords)); 81 kHairlineAA_GrProcessorEdgeType, localMatrix, 86 localMatrix, usesLocalCoords)); 103 const SkMatrix& localMatrix() const { return fLocalMatrix; } function in class:GrConicEffect 113 const SkMatrix& localMatrix, bool usesLocalCoords); 146 const SkMatrix& localMatrix, 156 localMatrix, usesLocalCoords)); 163 kHairlineAA_GrProcessorEdgeType, localMatrix, 168 localMatrix, usesLocalCoord 60 Make(GrColor color, const SkMatrix& viewMatrix, const GrPrimitiveEdgeType edgeType, const GrCaps& caps, const SkMatrix& localMatrix, bool usesLocalCoords, uint8_t coverage = 0xff) argument 142 Make(GrColor color, const SkMatrix& viewMatrix, const GrPrimitiveEdgeType edgeType, const GrCaps& caps, const SkMatrix& localMatrix, bool usesLocalCoords, uint8_t coverage = 0xff) argument 185 const SkMatrix& localMatrix() const { return fLocalMatrix; } function in class:GrQuadEffect [all...] |
H A D | GrBitmapTextGeoProc.cpp | 60 cte.localMatrix(), 87 this->setTransformDataHelper(btgp.localMatrix(), pdman, &transformIter); 95 key |= (gp.usesLocalCoords() && gp.localMatrix().hasPerspective()) ? 0x1 : 0x0; 120 const SkMatrix& localMatrix, bool usesLocalCoords) 122 , fLocalMatrix(localMatrix) 117 GrBitmapTextGeoProc(GrColor color, sk_sp<GrTextureProxy> proxy, const GrSamplerParams& params, GrMaskFormat format, const SkMatrix& localMatrix, bool usesLocalCoords) argument
|
H A D | GrBezierEffect.cpp | 50 this->setTransformDataHelper(ce.localMatrix(), pdman, &transformIter); 102 gp.localMatrix(), 223 key |= ce.usesLocalCoords() && ce.localMatrix().hasPerspective() ? 0x10 : 0x0; 242 GrPrimitiveEdgeType edgeType, const SkMatrix& localMatrix, 311 this->setTransformDataHelper(qe.localMatrix(), pdman, &transformIter); 363 gp.localMatrix(), 426 key |= ce.usesLocalCoords() && ce.localMatrix().hasPerspective() ? 0x10 : 0x0; 445 GrPrimitiveEdgeType edgeType, const SkMatrix& localMatrix, 449 , fLocalMatrix(localMatrix) 241 GrConicEffect(GrColor color, const SkMatrix& viewMatrix, uint8_t coverage, GrPrimitiveEdgeType edgeType, const SkMatrix& localMatrix, bool usesLocalCoords) argument 444 GrQuadEffect(GrColor color, const SkMatrix& viewMatrix, uint8_t coverage, GrPrimitiveEdgeType edgeType, const SkMatrix& localMatrix, bool usesLocalCoords) argument
|
/external/skia/fuzz/ |
H A D | FuzzGradients.cpp | 71 const SkMatrix* localMatrix, 102 logOptionalMatrix("local matrix", localMatrix); 121 SkTLazy<SkMatrix> localMatrix; local 123 makeMatrix(fuzz, localMatrix.init()); 126 colors.size(), mode, flags, localMatrix.getMaybeNull())); 132 logLinearGradient(pts, colors, pos, mode, flags, localMatrix.getMaybeNull(), &gm); 137 logLinearGradient(pts, colors, pos, mode, flags, localMatrix.getMaybeNull(), nullptr); 159 SkTLazy<SkMatrix> localMatrix; local 161 makeMatrix(fuzz, localMatrix.init()); 164 pos.data(), colors.size(), mode, flags, localMatrix 66 logLinearGradient(const SkPoint pts[2], const std::vector<SkColor>& colors, const std::vector<SkScalar> pos, SkShader::TileMode mode, uint32_t flags, const SkMatrix* localMatrix, const SkMatrix* globalMatrix) argument 197 SkTLazy<SkMatrix> localMatrix; local [all...] |
/external/skia/src/pdf/ |
H A D | SkPDFUtils.h | 115 SkMatrix localMatrix; local 116 if (sk_sp<SkShader> s = shader->makeAsALocalMatrixShader(&localMatrix)) { 117 return SkMatrix::Concat(s->getLocalMatrix(), localMatrix);
|
/external/skia/src/core/ |
H A D | SkGpuBlurUtils.cpp | 86 SkMatrix localMatrix = SkMatrix::MakeTrans(-SkIntToScalar(srcOffset.x()), local 89 SkRect::Make(dstRect), localMatrix); 103 SkMatrix localMatrix = SkMatrix::MakeTrans(-SkIntToScalar(srcOffset.x()), local 116 SkRect::Make(dstRect), localMatrix);
|
/external/skia/src/gpu/ops/ |
H A D | GrAtlasTextOp.cpp | 81 SkMatrix localMatrix; local 82 if (this->usesLocalCoords() && !this->viewMatrix().invert(&localMatrix)) { 105 localMatrix, this->usesLocalCoords());
|
H A D | GrDrawPathOp.cpp | 176 SkMatrix localMatrix; local 177 localMatrix.setScale(fScale, fScale); 178 localMatrix.preTranslate(head.fX, head.fY); 181 GrPathProcessor::Create(this->color(), drawMatrix, localMatrix));
|
H A D | GrNonAAFillRectOp.cpp | 40 const SkMatrix* localMatrix) { 41 SkASSERT(viewMatrix.hasPerspective() || (localMatrix && localMatrix->hasPerspective())); 46 // the local rect on the cpu (in case the localMatrix also has perspective). 47 // Otherwise, if we have a local rect, then we apply the localMatrix directly to the localRect 52 localMatrix); 56 LocalCoords localCoords(LocalCoords::kHasExplicit_Type, localMatrix); 60 LocalCoords localCoords(LocalCoords::kUsePosition_Type, localMatrix); 109 const SkMatrix* localMatrix, GrAAType aaType, 113 localMatrix, aaTyp 38 make_perspective_gp(const SkMatrix& viewMatrix, bool hasExplicitLocalCoords, const SkMatrix* localMatrix) argument 107 Make(GrPaint&& paint, const SkMatrix& viewMatrix, const SkRect& rect, const SkRect* localRect, const SkMatrix* localMatrix, GrAAType aaType, const GrUserStencilSettings* stencilSettings) argument 118 NonAAFillRectOp(const Helper::MakeArgs& args, GrColor color, const SkMatrix& viewMatrix, const SkRect& rect, const SkRect* localRect, const SkMatrix* localMatrix, GrAAType aaType, const GrUserStencilSettings* stencilSettings) argument 225 Make(GrPaint&& paint, const SkMatrix& viewMatrix, const SkRect& rect, const SkRect* localRect, const SkMatrix* localMatrix, GrAAType aaType, const GrUserStencilSettings* stencilSettings) argument 237 NonAAFillRectPerspectiveOp(const Helper::MakeArgs& args, GrColor color, const SkMatrix& viewMatrix, const SkRect& rect, const SkRect* localRect, const SkMatrix* localMatrix, GrAAType aaType, const GrUserStencilSettings* stencilSettings) argument 378 MakeNonAAFillWithLocalMatrix( GrPaint&& paint, const SkMatrix& viewMatrix, const SkMatrix& localMatrix, const SkRect& rect, GrAAType aaType, const GrUserStencilSettings* stencilSettings) argument 412 SkMatrix localMatrix = GrTest::TestMatrix(random); local [all...] |