Home
last modified time | relevance | path

Searched refs:GrMatrix (Results 1 – 25 of 26) sorted by relevance

12

/external/skia/gpu/src/
DGrMatrix.cpp24 const GrScalar GrMatrix::gRESCALE(GR_Scalar1);
29 const GrScalar GrMatrix::gRESCALE(1 << 30);
32 const GrMatrix::MapProc GrMatrix::gMapProcs[] = {
34 &GrMatrix::mapIdentity,
35 &GrMatrix::mapScale,
36 &GrMatrix::mapTranslate,
37 &GrMatrix::mapScaleAndTranslate,
38 &GrMatrix::mapSkew,
39 &GrMatrix::mapScaleAndSkew,
40 &GrMatrix::mapSkewAndTranslate,
[all …]
DGrGpuGLShaders.cpp89 fEntries[i].fProgramData.fViewMatrix = GrMatrix::InvalidMatrix(); in invalidateViewMatrices()
275 const GrMatrix& GrGpuGLShaders::getHWSamplerMatrix(int stage) { in getHWSamplerMatrix()
286 void GrGpuGLShaders::recordHWSamplerMatrix(int stage, const GrMatrix& matrix) { in recordHWSamplerMatrix()
312 GrMatrix m; in flushViewMatrix()
316 0, 0, GrMatrix::I()[8]); in flushViewMatrix()
322 GrScalarToFloat(m[GrMatrix::kMScaleX]), in flushViewMatrix()
323 GrScalarToFloat(m[GrMatrix::kMSkewY]), in flushViewMatrix()
324 GrScalarToFloat(m[GrMatrix::kMPersp0]), in flushViewMatrix()
325 GrScalarToFloat(m[GrMatrix::kMSkewX]), in flushViewMatrix()
326 GrScalarToFloat(m[GrMatrix::kMScaleY]), in flushViewMatrix()
[all …]
DGrGpuGLFixed.cpp33 void set(const GrMatrix& m) { in set()
35 fMat[0] = GrScalarToFloat(m[GrMatrix::kMScaleX]); in set()
36 fMat[4] = GrScalarToFloat(m[GrMatrix::kMSkewX]); in set()
37 fMat[12] = GrScalarToFloat(m[GrMatrix::kMTransX]); in set()
39 fMat[1] = GrScalarToFloat(m[GrMatrix::kMSkewY]); in set()
40 fMat[5] = GrScalarToFloat(m[GrMatrix::kMScaleY]); in set()
41 fMat[13] = GrScalarToFloat(m[GrMatrix::kMTransY]); in set()
43 fMat[3] = GrScalarToFloat(m[GrMatrix::kMPersp0]); in set()
44 fMat[7] = GrScalarToFloat(m[GrMatrix::kMPersp1]); in set()
45 fMat[15] = GrScalarToFloat(m[GrMatrix::kMPersp2]); in set()
[all …]
DGrContext.cpp245 fGpu->setViewMatrix(GrMatrix::I()); in createAndLockTexture()
446 GrMatrix inverse; in drawPaint()
553 GrMatrix transM; in setupOffscreenAAPass1()
556 GrMatrix scaleM; in setupOffscreenAAPass1()
583 GrMatrix sampleM; in offscreenAAPass2()
602 target->setViewMatrix(GrMatrix::I()); in offscreenAAPass2()
628 GrMatrix invVM; in offscreenAAPass2()
633 target->setViewMatrix(GrMatrix::I()); in offscreenAAPass2()
871 const GrMatrix* matrix, in apply_aa_to_rect()
872 GrMatrix* combinedMatrix, in apply_aa_to_rect()
[all …]
DGrDrawTarget.cpp334 void GrDrawTarget::setViewMatrix(const GrMatrix& m) { in setViewMatrix()
338 void GrDrawTarget::preConcatViewMatrix(const GrMatrix& matrix) { in preConcatViewMatrix()
342 void GrDrawTarget::postConcatViewMatrix(const GrMatrix& matrix) { in postConcatViewMatrix()
346 const GrMatrix& GrDrawTarget::getViewMatrix() const { in getViewMatrix()
350 bool GrDrawTarget::getViewInverse(GrMatrix* matrix) const { in getViewInverse()
354 GrMatrix inverse; in getViewInverse()
577 const GrMatrix* matrix, in drawRect()
580 const GrMatrix* srcMatrices[]) { in drawRect()
609 const GrMatrix* matrix, in SetRectVertices()
611 const GrMatrix* srcMatrices[], in SetRectVertices()
DGrGpuGLFixed.h41 const GrMatrix& getHWSamplerMatrix(int stage) const { in getHWSamplerMatrix()
44 void recordHWSamplerMatrix(int stage, const GrMatrix& matrix) { in recordHWSamplerMatrix()
DGrGpuGLShaders.h50 const GrMatrix& getHWSamplerMatrix(int stage);
51 void recordHWSamplerMatrix(int stage, const GrMatrix& matrix);
DGrTextContext.cpp86 const GrMatrix* extMatrix) : fPaint(paint) { in GrTextContext()
96 fExtMatrix = GrMatrix::I(); in GrTextContext()
100 GrMatrix inverse; in GrTextContext()
129 GrMatrix inverseViewMatrix; in GrTextContext()
DGrTesselatedPathRenderer.cpp97 static size_t computeEdgesAndOffsetVertices(const GrMatrix& matrix, in computeEdgesAndOffsetVertices()
98 const GrMatrix& inverse, in computeEdgesAndOffsetVertices()
137 GrMatrix viewM = target->getViewMatrix(); in drawPath()
228 GrMatrix vmi; in drawPath()
252 GrMatrix inverse, matrix = target->getViewMatrix(); in drawPath()
DGrGLProgram.h233 GrMatrix fViewMatrix;
239 GrMatrix fTextureMatrices[GrDrawTarget::kNumStages];
DGrInOrderDrawBuffer.cpp77 const GrMatrix* matrix, in drawRect()
80 const GrMatrix* srcMatrices[]) { in drawRect()
94 GrMatrix combinedMatrix = this->getViewMatrix(); in drawRect()
95 this->setViewMatrix(GrMatrix::I()); in drawRect()
Dgr_files.mk20 GrMatrix.cpp \
DGrPathRenderer.cpp195 GrMatrix viewM = target->getViewMatrix(); in onDrawPath()
393 GrMatrix vmi; in onDrawPath()
DGrGpuGL.h133 GrMatrix* matrix);
DGrGpuGL.cpp107 GrMatrix* matrix) { in AdjustTextureMatrix()
113 GrMatrix scale; in AdjustTextureMatrix()
117 GrMatrix scale; in AdjustTextureMatrix()
126 GrMatrix invY; in AdjustTextureMatrix()
129 0, 0, GrMatrix::I()[8]); in AdjustTextureMatrix()
540 fHWDrawState.fViewMatrix = GrMatrix::InvalidMatrix(); in resetContext()
548 fHWDrawState.fSamplerStates[s].setMatrix(GrMatrix::InvalidMatrix()); in resetContext()
DGrGpu.cpp422 this->setViewMatrix(GrMatrix::I()); in setupClipAndFlushState()
751 GrMatrix::I(),
DGrGLProgram.cpp926 programData->fTextureMatrices[s] = GrMatrix::InvalidMatrix(); in getUniformLocationsAndInitCache()
932 programData->fViewMatrix = GrMatrix::InvalidMatrix(); in getUniformLocationsAndInitCache()
/external/skia/gpu/include/
DGrDrawTarget.h188 GrMatrix fViewMatrix;
271 void preConcatSamplerMatrix(int stage, const GrMatrix& matrix) { in preConcatSamplerMatrix()
280 void preConcatSamplerMatrices(int stageMask, const GrMatrix& matrix) { in preConcatSamplerMatrices()
294 const GrMatrix& getSamplerMatrix(int stage) const { in getSamplerMatrix()
304 void setSamplerMatrix(int stage, const GrMatrix& matrix) { in setSamplerMatrix()
317 void setViewMatrix(const GrMatrix& m);
329 void preConcatViewMatrix(const GrMatrix& m);
341 void postConcatViewMatrix(const GrMatrix& m);
347 const GrMatrix& getViewMatrix() const;
358 bool getViewInverse(GrMatrix* matrix) const;
[all …]
DGrSamplerState.h110 const GrMatrix& matrix, Filter filter) { in GrSamplerState()
120 const GrMatrix& matrix, Filter filter) { in GrSamplerState()
132 const GrMatrix& getMatrix() const { return fMatrix; } in getMatrix()
152 void setMatrix(const GrMatrix& matrix) { fMatrix = matrix; } in setMatrix()
171 void preConcatMatrix(const GrMatrix& matrix) { fMatrix.preConcat(matrix); } in preConcatMatrix()
214 GrMatrix fMatrix;
DGrContext.h221 const GrMatrix& getMatrix() const;
227 void setMatrix(const GrMatrix& m);
234 void concatMatrix(const GrMatrix& m) const;
286 const GrMatrix* matrix = NULL);
306 const GrMatrix* dstMatrix = NULL,
307 const GrMatrix* srcMatrix = NULL);
607 GrAutoMatrix(GrContext* ctx, const GrMatrix& matrix) : fContext(ctx) { in GrAutoMatrix()
617 GrMatrix fMatrix;
DGrTextContext.h35 const GrMatrix* extMatrix = NULL);
49 GrMatrix fExtMatrix;
69 GrMatrix fOrigViewMatrix; // restore previous viewmatrix
DGrInOrderDrawBuffer.h94 const GrMatrix* matrix = NULL,
97 const GrMatrix* srcMatrices[] = NULL);
DGrMatrix.h24 typedef SkMatrix GrMatrix; typedef
DGrPaint.h98 void preConcatActiveSamplerMatrices(const GrMatrix& matrix) { in preConcatActiveSamplerMatrices()
/external/skia/src/gpu/
DSkGpuDevice.cpp753 GrMatrix ivm = context->getMatrix(); in drawWithMaskFilter()
755 GrAutoMatrix avm(context, GrMatrix::I()); in drawWithMaskFilter()
788 GrMatrix m; in drawWithMaskFilter()
1002 sampler->setMatrix(GrMatrix::I()); in internalDrawBitmap()
1062 GrAutoMatrix avm(fContext, GrMatrix::I()); in drawSprite()
1096 GrAutoMatrix avm(fContext, GrMatrix::I()); in drawDevice()

12