Home
last modified time | relevance | path

Searched refs:SkMatrixPriv (Results 1 – 25 of 41) sorted by relevance

12

/third_party/skia/src/core/
DSkWriter32.cpp13 size_t size = SkMatrixPriv::WriteToMemory(matrix, nullptr); in writeMatrix()
15 SkMatrixPriv::WriteToMemory(matrix, this->reserve(size)); in writeMatrix()
DSkPictureRecord.cpp230 fWriter.write(SkMatrixPriv::M44ColMajor(m), 16 * sizeof(SkScalar)); in didConcat44()
241 fWriter.write(SkMatrixPriv::M44ColMajor(m), 16 * sizeof(SkScalar)); in didSetM44()
257 size_t size = kUInt32Size + SkMatrixPriv::WriteToMemory(matrix, nullptr); in recordConcat()
599 size += SkMatrixPriv::WriteToMemory(m, nullptr) + kUInt32Size; // matrix + paint in onDrawPicture()
617 size += SkMatrixPriv::WriteToMemory(*matrix, nullptr); // matrix in onDrawDrawable()
DSkDevice.cpp558 SkIRect deviceRect = SkMatrixPriv::MapRect(this->globalToDevice(), SkRect::Make(rect)).round(); in onReplaceClip()
581 const bool isRect = fillsBounds && SkMatrixPriv::IsScaleTranslateAsM33(transform); in op()
585 : SkMatrixPriv::MapRect(transform, bounds); in op()
DSkClipStackDevice.cpp56 SkRect deviceRect = SkMatrixPriv::MapRect(this->globalToDevice(), SkRect::Make(rect)); in onReplaceClip()
DSkBitmapProcState.h58 SkMatrixPriv::MapXYProc fInvProc; // chooseProcs
DSkMatrixPriv.h16 class SkMatrixPriv {
DSkImageFilterTypes.cpp52 SkScalar scale = SkMatrixPriv::DifferentialAreaScale(ctm, SkPoint(representativePt)); in decomposeCTM()
DSkWriteBuffer.cpp108 fWriter.write(SkMatrixPriv::M44ColMajor(matrix), sizeof(float) * 16); in write()
DSkBitmapProcState.cpp214 SkMatrixPriv::PostIDiv(&fInvMatrix, fPixmap.width(), fPixmap.height()); in init()
263 fInvProc = SkMatrixPriv::GetMapXYProc(fInvMatrix); in chooseProcs()
DSkReadBuffer.cpp183 size = SkMatrixPriv::ReadFromMemory(matrix, fCurr, this->available()); in readMatrix()
/third_party/skia/src/gpu/glsl/
DGrGLSLProgramDataManager.cpp30 this->setMatrix4f(u, SkMatrixPriv::M44ColMajor(matrix)); in setSkM44()
/third_party/skia/tests/
DMatrixTest.cpp40 bool cheapEqual = SkMatrixPriv::CheapEqual(a, b); in are_equal()
160 static const size_t kBufferSize = SkMatrixPriv::kMaxFlattenSize + 100; in test_flatten()
162 size_t size1 = SkMatrixPriv::WriteToMemory(m, nullptr); in test_flatten()
163 size_t size2 = SkMatrixPriv::WriteToMemory(m, buffer); in test_flatten()
165 REPORTER_ASSERT(reporter, size1 <= SkMatrixPriv::kMaxFlattenSize); in test_flatten()
168 size_t size3 = SkMatrixPriv::ReadFromMemory(&m2, buffer, kBufferSize); in test_flatten()
173 size3 = SkMatrixPriv::WriteToMemory(m2, buffer2); in test_flatten()
DM44Test.cpp269 SkRect actual = SkMatrixPriv::MapRect(m, src); in DEF_TEST()
372 SkRect out = SkMatrixPriv::MapRect(m, rect); in DEF_TEST()
/third_party/skia/experimental/graphite/src/geom/
DTransform.cpp21 return SkMatrixPriv::MapRect(m, r.asSkRect()); in map_rect()
/third_party/skia/src/shaders/gradients/
DSk4fGradientBase.h67 SkMatrixPriv::MapXYProc fDstToPosProc;
DSk4fGradientBase.cpp299 fDstToPosProc = SkMatrixPriv::GetMapXYProc(fDstToPos); in GradientShaderBase4fContext()
/third_party/skia/src/gpu/ops/
DAAHairLinePathRenderer.cpp609 SkMatrixPriv::MapPointsWithStride(*toSrc, &verts[0].fPos, sizeof(BezierVertex), in bloat_quad()
733 SkMatrixPriv::MapPointsWithStride(*toSrc, &(*vert)->fPos, sizeof(LineVertex), in add_line()
892 !SkMatrixPriv::CheapEqual(this->viewMatrix(), that->viewMatrix())) { in onCombineIfPossible()
907 if (fHelper.usesLocalCoords() && !SkMatrixPriv::CheapEqual(this->viewMatrix(), in onCombineIfPossible()
DDrawVerticesOp.cpp465 SkMatrixPriv::MapPointsWithStride(mesh.fViewMatrix, posBase, vertexStride, in onPrepareDraws()
528 !SkMatrixPriv::CheapEqual(this->fMeshes[0].fViewMatrix, that->fMeshes[0].fViewMatrix); in onCombineIfPossible()
DPathStencilCoverOp.cpp292 if (SkMatrixPriv::InverseMapRect(pathMatrix, &pathSpaceRTBounds, rtBounds)) { in onPrepare()
DDrawAtlasOp.cpp269 if (!SkMatrixPriv::CheapEqual(this->viewMatrix(), that->viewMatrix())) { in onCombineIfPossible()
DGrOvalOpFactory.cpp1424 !SkMatrixPriv::CheapEqual(fViewMatrixIfUsingLocalCoords, in onCombineIfPossible()
1755 !SkMatrixPriv::CheapEqual(fViewMatrixIfUsingLocalCoords, in onCombineIfPossible()
2054 !SkMatrixPriv::CheapEqual(fViewMatrixIfUsingLocalCoords, in onCombineIfPossible()
2327 if (!SkMatrixPriv::CheapEqual(this->viewMatrix(), that->viewMatrix())) { in onCombineIfPossible()
2793 !SkMatrixPriv::CheapEqual(fViewMatrixIfUsingLocalCoords, in onCombineIfPossible()
3115 !SkMatrixPriv::CheapEqual(fViewMatrixIfUsingLocalCoords, in onCombineIfPossible()
/third_party/skia/bench/
DMatrix44Bench.cpp225 fD = SkMatrixPriv::MapRect(fM, fS); in performTest()
/third_party/skia/src/gpu/v1/
DDevice_v1.h171 SkRect deviceRect = SkMatrixPriv::MapRect(this->globalToDevice(), SkRect::Make(rect)); in onReplaceClip()
/third_party/skia/samplecode/
DSampleFilterBounds.cpp131 float scale = SkMatrixPriv::DifferentialAreaScale( in draw_scale_factors()
/third_party/skia/experimental/graphite/src/
DDevice.cpp162 SkRect localCoveringBounds = SkMatrixPriv::MapRect(devToLocal, deviceBounds); in drawPaint()

12