Home
last modified time | relevance | path

Searched refs:ctm (Results 1 – 25 of 362) sorted by relevance

12345678910>>...15

/aosp_15_r20/external/skia/tests/
H A DShadowTest.cpp48 void tessellate_shadow(skiatest::Reporter* reporter, const SkPath& path, const SkMatrix& ctm, in tessellate_shadow() argument
51 auto verts = SkShadowTessellator::MakeAmbient(path, ctm, heightParams, true); in tessellate_shadow()
54 verts = SkShadowTessellator::MakeAmbient(path, ctm, heightParams, false); in tessellate_shadow()
57 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, true, false); in tessellate_shadow()
60 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, false, in tessellate_shadow()
64 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, true, true); in tessellate_shadow()
67 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, false, true); in tessellate_shadow()
136 void check_xformed_bounds(skiatest::Reporter* reporter, const SkPath& path, const SkMatrix& ctm) { in check_xformed_bounds() argument
147 SkDrawShadowMetrics::GetLocalBounds(path, rec, ctm, &bounds); in check_xformed_bounds()
148 ctm.mapRect(&bounds); in check_xformed_bounds()
[all …]
/aosp_15_r20/external/skia/gm/
H A Dpictureshader.cpp80 SkMatrix ctm, localMatrix; in onDraw() local
81 ctm.setTranslate(fSceneSize * 2.1f, fSceneSize * 13.8f); in onDraw()
82 ctm.preScale(-1, -1); in onDraw()
84 this->drawScene(canvas, ctm, localMatrix, 0); in onDraw()
86 ctm.setTranslate(fSceneSize * 2.4f, fSceneSize * 12.8f); in onDraw()
88 this->drawScene(canvas, ctm, localMatrix, 0); in onDraw()
90 ctm.setTranslate(fSceneSize * 4.8f, fSceneSize * 12.3f); in onDraw()
91 ctm.preScale(2, 2); in onDraw()
92 this->drawScene(canvas, ctm, localMatrix, 0); in onDraw()
94 ctm.setTranslate(fSceneSize * 13.8f, fSceneSize * 14.3f); in onDraw()
[all …]
H A Drasterhandleallocator.cpp81 void updateHandle(Handle hndl, const SkMatrix& ctm, const SkIRect& clip) override { in updateHandle() argument
86 canvas->concat(ctm); in updateHandle()
110 static CGAffineTransform matrix_to_transform(CGContextRef cg, const SkMatrix& ctm) { in matrix_to_transform() argument
114 matrix.preConcat(ctm); in matrix_to_transform()
143 void updateHandle(Handle hndl, const SkMatrix& ctm, const SkIRect& clip) override { in updateHandle() argument
149 CGContextConcatCTM(cg, matrix_to_transform(cg, ctm)); in updateHandle()
245 void updateHandle(Handle handle, const SkMatrix& ctm, const SkIRect& clip_bounds) override { in updateHandle() argument
249 xf.eM11 = ctm[SkMatrix::kMScaleX]; in updateHandle()
250 xf.eM21 = ctm[SkMatrix::kMSkewX]; in updateHandle()
251 xf.eDx = ctm[SkMatrix::kMTransX]; in updateHandle()
[all …]
H A Dfontations_ft_compare.cpp173 SkMatrix ctm = canvas->getLocalToDeviceAs3x3(); in onDraw() local
174 SkPoint mapped = ctm.mapPoint(point); in onDraw()
178 bool inverseExists = ctm.invert(&inverse); in onDraw()
221 SkMatrix ctm = canvas->getLocalToDeviceAs3x3(); in onDraw() local
222 ctm.mapRect(&fontationsBBox, fontationsBBox); in onDraw()
223 ctm.mapRect(&freetypeBBox, freetypeBBox); in onDraw()
261 SkPoint comparisonCoord = ctm.mapPoint(SkPoint::Make( in onDraw()
263 SkPoint whiteCoord = ctm.mapPoint(SkPoint::Make( in onDraw()
/aosp_15_r20/external/skia/modules/sksg/src/
H A DSkSGRenderNode.cpp67 const SkMatrix& ctm) { in LocalShader() argument
81 if (base != ctm && ctm.invert(&lm)) { in LocalShader()
102 void RenderNode::RenderContext::modulatePaint(const SkMatrix& ctm, SkPaint* paint, in modulatePaint() argument
107 paint->setShader(LocalShader(fShader, fShaderCTM, ctm)); in modulatePaint()
117 LocalShader(fMaskShader, fMaskCTM, ctm), in modulatePaint()
164 RenderNode::ScopedRenderContext::modulateMaskShader(sk_sp<SkShader> ms, const SkMatrix& ctm) { in modulateMaskShader() argument
174 const auto relative_transform = SkMatrix::Concat(invMaskCTM, ctm); in modulateMaskShader()
181 fCtx.fMaskCTM = ctm; in modulateMaskShader()
194 RenderNode::ScopedRenderContext::setIsolation(const SkRect& bounds, const SkMatrix& ctm, in setIsolation() argument
198 fCtx.modulatePaint(ctm, &layer_paint, /*is_layer_paint = */true); in setIsolation()
[all …]
H A DSkSGTransform.cpp55 SkRect onRevalidate(InvalidationController* ic, const SkMatrix& ctm) override { in onRevalidate() argument
56 fA->revalidate(ic, ctm); in onRevalidate()
57 fB->revalidate(ic, ctm); in onRevalidate()
100 SkRect onRevalidate(InvalidationController* ic, const SkMatrix& ctm) override { in onRevalidate() argument
101 fT->revalidate(ic, ctm); in onRevalidate()
193 SkRect TransformEffect::onRevalidate(InvalidationController* ic, const SkMatrix& ctm) { in onRevalidate() argument
197 fTransform->revalidate(ic, ctm); in onRevalidate()
201 auto bounds = this->INHERITED::onRevalidate(ic, SkMatrix::Concat(ctm, m)); in onRevalidate()
H A DSkSGNode.cpp134 const SkRect& Node::revalidate(InvalidationController* ic, const SkMatrix& ctm) { in revalidate() argument
145 fBounds = this->onRevalidate(ic, ctm); in revalidate()
151 fBounds = this->onRevalidate(ic_override, ctm); in revalidate()
153 ic->inval(prev_bounds, ctm); in revalidate()
155 ic->inval(fBounds, ctm); in revalidate()
/aosp_15_r20/external/skia/src/core/
H A DSkDrawShadowInfo.cpp23 const SkMatrix& ctm, const SkPoint3& zPlaneParams, in GetSpotShadowTransform() argument
32 if (!ctm.hasPerspective() || directional) { in GetSpotShadowTransform()
45 shadowTransform->preConcat(ctm); in GetSpotShadowTransform()
53 ctm.mapRectToQuad(pts, pathBounds); in GetSpotShadowTransform()
124 void GetLocalBounds(const SkPath& path, const SkDrawShadowRec& rec, const SkMatrix& ctm, in GetLocalBounds() argument
143 if (ctm.hasPerspective()) { in GetLocalBounds()
145 ctm.mapRect(&ambientBounds); in GetLocalBounds()
157 ctm.mapPoints(&devLightPos, 1); in GetLocalBounds()
163 SkScalar devToSrcScale = SkScalarInvert(ctm.getMinScale()); in GetLocalBounds()
176 if (ctm.invert(&inverse)) { in GetLocalBounds()
[all …]
H A DSkPathEffect.cpp33 const SkRect* bounds, const SkMatrix& ctm) const { in filterPath()
38 if (as_PEB(this)->onFilterPath(tmpDst, src, rec, bounds, ctm)) { in filterPath()
109 const SkRect* cullRect, const SkMatrix& ctm) const override { in onFilterPath()
113 if (fPE1->filterPath(&tmp, src, rec, cullRect, ctm)) { in onFilterPath()
116 return fPE0->filterPath(dst, *ptr, rec, cullRect, ctm); in onFilterPath()
170 const SkRect* cullRect, const SkMatrix& ctm) const override { in onFilterPath()
172 bool filteredFirst = fPE0->filterPath(dst, src, rec, cullRect, ctm); in onFilterPath()
173 bool filteredSecond = fPE1->filterPath(dst, src, rec, cullRect, ctm); in onFilterPath()
H A DSkAutoBlitterChoose.h26 const SkMatrix* ctm,
29 this->choose(draw, ctm, paint, drawCoverage);
35 SkBlitter* choose(const SkDrawBase& draw, const SkMatrix* ctm,
39 ctm ? *ctm : *draw.fCTM,
H A DSkRasterClipStack.h53 void clipRect(const SkMatrix& ctm, const SkRect& rect, SkClipOp op, bool aa) { in clipRect() argument
54 this->writable_rc().op(rect, ctm, op, this->finalAA(aa)); in clipRect()
58 void clipRRect(const SkMatrix& ctm, const SkRRect& rrect, SkClipOp op, bool aa) { in clipRRect() argument
59 this->writable_rc().op(rrect, ctm, op, this->finalAA(aa)); in clipRRect()
63 void clipPath(const SkMatrix& ctm, const SkPath& path, SkClipOp op, bool aa) { in clipPath() argument
64 this->writable_rc().op(path, ctm, op, this->finalAA(aa)); in clipPath()
H A DSkPathUtils.cpp30 const SkRect* cullRect, const SkMatrix& ctm) { in FillPathWithPaint() argument
36 const SkScalar resScale = SkMatrixPriv::ComputeResScaleForStroking(ctm); in FillPathWithPaint()
50 if (pe && pe->filterPath(&tmpPath, src, &rec, cullRect, ctm)) { in FillPathWithPaint()
87 const SkMatrix& ctm) { in FillPathWithPaint() argument
88 return skpathutils::FillPathWithPaint(src, paint, dst, cullRect, ctm); in FillPathWithPaint()
/aosp_15_r20/external/libkmsxx/py/tests/
H A Dctm_test.py7 def ctm_to_blob(ctm, card): argument
13 i, d = divmod(ctm[x], 1)
59 ctm = [ 0.0, 1.0, 0.0, variable
63 ctmb = ctm_to_blob(ctm, card)
78 ctm = [ 1.0, 0.0, 0.0, variable
82 ctmb = ctm_to_blob(ctm, card)
88 ctm = [ 0.0, 0.0, 1.0, variable
92 ctmb = ctm_to_blob(ctm, card)
/aosp_15_r20/external/skia/src/utils/
H A DSkShadowTessellator.cpp916 SkAmbientShadowTessellator(const SkPath& path, const SkMatrix& ctm,
920 bool computePathPolygon(const SkPath& path, const SkMatrix& ctm);
926 const SkMatrix& ctm, in SkAmbientShadowTessellator() argument
936 if (!this->computePathPolygon(path, ctm)) { in SkAmbientShadowTessellator()
960 bool SkAmbientShadowTessellator::computePathPolygon(const SkPath& path, const SkMatrix& ctm) { in computePathPolygon() argument
976 this->handleLine(ctm, &pts[1]); in computePathPolygon()
979 this->handleQuad(ctm, pts); in computePathPolygon()
982 this->handleCubic(ctm, pts); in computePathPolygon()
985 this->handleConic(ctm, pts, iter.conicWeight()); in computePathPolygon()
1008 SkSpotShadowTessellator(const SkPath& path, const SkMatrix& ctm,
[all …]
H A DSkShadowUtils.cpp81 sk_sp<SkVertices> makeVertices(const SkPath& path, const SkMatrix& ctm, in makeVertices()
85 SkMatrix noTrans(ctm); in makeVertices()
86 if (!ctm.hasPerspective()) { in makeVertices()
146 sk_sp<SkVertices> makeVertices(const SkPath& path, const SkMatrix& ctm, in makeVertices()
155 return SkShadowTessellator::MakeSpot(path, ctm, zParams, fDevLightPos, fLightRadius, in makeVertices()
157 … } else if (ctm.hasPerspective() || OccluderType::kPointOpaquePartialUmbra == fOccluderType) { in makeVertices()
159 return SkShadowTessellator::MakeSpot(path, ctm, zParams, fDevLightPos, fLightRadius, in makeVertices()
163 SkMatrix noTrans(ctm); in makeVertices()
541 uint32_t flags, const SkMatrix& ctm, SkDrawShadowRec* rec) { in fill_shadow_rec() argument
547 if (!ctm.invert(&inverse)) { in fill_shadow_rec()
[all …]
/aosp_15_r20/external/igt-gpu-tools/tests/
H A Dkms_color.c240 struct drm_color_ctm ctm; in set_ctm() local
243 for (i = 0; i < ARRAY_SIZE(ctm.matrix); i++) { in set_ctm()
245 ctm.matrix[i] = in set_ctm()
247 ctm.matrix[i] |= 1ULL << 63; in set_ctm()
249 ctm.matrix[i] = in set_ctm()
253 igt_pipe_obj_replace_prop_blob(pipe, IGT_CRTC_CTM, &ctm, sizeof(ctm)); in set_ctm()
796 double ctm[] = { 1.0, 0.0, 0.0,
840 set_ctm(primary->pipe, ctm);
930 double ctm[] = { 0.0, 0.0, 0.0, in run_tests_for_pipe() local
934 blue_green_blue, ctm)); in run_tests_for_pipe()
[all …]
/aosp_15_r20/external/skia/src/gpu/ganesh/ops/
H A DSmallPathShapeData.cpp32 SmallPathShapeDataKey::SmallPathShapeDataKey(const GrStyledShape& shape, const SkMatrix& ctm) { in SmallPathShapeDataKey() argument
38 SkScalar sx = ctm.get(SkMatrix::kMScaleX); in SmallPathShapeDataKey()
39 SkScalar sy = ctm.get(SkMatrix::kMScaleY); in SmallPathShapeDataKey()
40 SkScalar kx = ctm.get(SkMatrix::kMSkewX); in SmallPathShapeDataKey()
41 SkScalar ky = ctm.get(SkMatrix::kMSkewY); in SmallPathShapeDataKey()
42 SkScalar tx = ctm.get(SkMatrix::kMTransX); in SmallPathShapeDataKey()
43 SkScalar ty = ctm.get(SkMatrix::kMTransY); in SmallPathShapeDataKey()
H A DSmallPathRenderer.cpp226 const SkMatrix& ctm = fShapes[0].fViewMatrix; in onPrepareDraws() local
229 if (!ctm.invert(&invert)) { in onPrepareDraws()
236 flags |= ctm.isScaleTranslate() ? kScaleOnly_DistanceFieldEffectFlag : 0; in onPrepareDraws()
237 flags |= ctm.isSimilarity() ? kSimilarity_DistanceFieldEffectFlag : 0; in onPrepareDraws()
499 const SkMatrix& ctm) const { in addBMPathToAtlas()
504 SkMatrix drawMatrix(ctm); in addBMPathToAtlas()
505 SkScalar tx = ctm.getTranslateX(); in addBMPathToAtlas()
506 SkScalar ty = ctm.getTranslateY(); in addBMPathToAtlas()
565 const SkMatrix& ctm, in writePathVertices() argument
569 translatedBounds.offset(SkScalarFloorToScalar(ctm.get(SkMatrix::kMTransX)), in writePathVertices()
[all …]
/aosp_15_r20/external/perfetto/src/tracing/core/
H A Dshared_memory_arbiter_impl.cc278 CommitDataRequest::ChunksToMove* ctm = nullptr; // Set if chunk is valid. in UpdateCommitDataRequest() local
286 ctm = commit_data_req_->add_chunks_to_move(); in UpdateCommitDataRequest()
311 ctm->set_page(static_cast<uint32_t>(page_idx)); in UpdateCommitDataRequest()
312 ctm->set_chunk(chunk_idx); in UpdateCommitDataRequest()
313 ctm->set_target_buffer(target_buffer); in UpdateCommitDataRequest()
539 for (auto& ctm : *commit_data_req_->mutable_chunks_to_move()) { in FlushPendingCommitDataRequests()
540 uint32_t header_bitmap = shmem_abi_.GetPageHeaderBitmap(ctm.page()); in FlushPendingCommitDataRequests()
542 header_bitmap, ctm.chunk()); in FlushPendingCommitDataRequests()
548 auto chunk = shmem_abi_.GetChunkUnchecked(ctm.page(), header_bitmap, in FlushPendingCommitDataRequests()
549 ctm.chunk()); in FlushPendingCommitDataRequests()
[all …]
/aosp_15_r20/external/skia/modules/skottie/src/effects/
H A DDisplacementMapEffect.cpp187 sk_sp<SkShader> buildEffectShader(sksg::InvalidationController* ic, const SkMatrix& ctm) { in buildEffectShader() argument
196 sksg::InvalidationController* ic, const SkMatrix& ctm) { in buildEffectShader() argument
201 const auto bounds = node->revalidate(ic, ctm); in buildEffectShader()
208 const auto child_content = get_content_picture(this->children()[0], ic, ctm), in buildEffectShader()
209 displ_content = get_content_picture(fDisplSource, ic, ctm); in buildEffectShader()
264 SkRect onRevalidate(sksg::InvalidationController* ic, const SkMatrix& ctm) override { in onRevalidate() argument
265 fEffectShader = this->buildEffectShader(ic, ctm); in onRevalidate()
267 auto bounds = this->children()[0]->revalidate(ic, ctm); in onRevalidate()
/aosp_15_r20/external/skia/tools/viewer/
H A DGlyphTransformSlide.cpp44 SkMatrix ctm; in draw() local
45 ctm.setRotate(fRotate); // d3 rotate takes degrees in draw()
46 ctm.postScale(fScale * 4, fScale * 4); in draw()
47 ctm.postTranslate(fTranslate.fX + fSize.width() * 0.8, fTranslate.fY + baseline); in draw()
48 canvas->concat(ctm); in draw()
/aosp_15_r20/external/skia/tools/gpu/ganesh/
H A DAtlasTextOpTools.cpp32 const SkMatrix& ctm, in CreateOp() argument
38 SkMatrix drawMatrix = ctm; in CreateOp()
68 subRun->makeAtlasTextOp(nullptr, ctm, glyphRunList.origin(), skPaint, blob, sdc); in CreateOp()
76 SkMatrix ctm = GrTest::TestMatrixInvertible(random); in GR_DRAW_OP_TEST_DEFINE() local
98 return skgpu::ganesh::AtlasTextOpTools::CreateOp(sdc, skPaint, font, ctm, text, xInt, yInt); in GR_DRAW_OP_TEST_DEFINE()
/aosp_15_r20/external/skia/src/gpu/ganesh/
H A DClipStack.h68 ClipStack(const SkIRect& deviceBounds, const SkMatrix* ctm, bool forceAA);
87 void clipRect(const SkMatrix& ctm, const SkRect& rect, GrAA aa, SkClipOp op) { in clipRect() argument
88 this->clip({ctm, GrShape(rect), aa, op}); in clipRect()
90 void clipRRect(const SkMatrix& ctm, const SkRRect& rrect, GrAA aa, SkClipOp op) { in clipRRect() argument
91 this->clip({ctm, GrShape(rrect), aa, op}); in clipRRect()
93 void clipPath(const SkMatrix& ctm, const SkPath& path, GrAA aa, SkClipOp op) { in clipPath() argument
94 this->clip({ctm, GrShape(path), aa, op}); in clipPath()
H A DSkGr.cpp366 const SkMatrix& ctm, in skpaint_to_grpaint_impl() argument
385 paintFP = GrFragmentProcessors::Make(shader, fpArgs, ctm); in skpaint_to_grpaint_impl()
496 if (auto mfFP = GrFragmentProcessors::Make(maskFilter, fpArgs, ctm)) { in skpaint_to_grpaint_impl()
556 const SkMatrix& ctm, in SkPaintToGrPaint() argument
562 ctm, in SkPaintToGrPaint()
573 const SkMatrix& ctm, in SkPaintToGrPaintReplaceShader() argument
580 ctm, in SkPaintToGrPaintReplaceShader()
592 const SkMatrix& ctm, in SkPaintToGrPaintWithBlend() argument
599 ctm, in SkPaintToGrPaintWithBlend()
/aosp_15_r20/external/skia/src/ports/
H A DSkFontHost_FreeType_common.cpp1435 bool colrv1_start_glyph_bounds(SkMatrix *ctm,
1442 bool colrv1_traverse_paint_bounds(SkMatrix* ctm, in colrv1_traverse_paint_bounds() argument
1460 SkMatrix restoreMatrix = *ctm; in colrv1_traverse_paint_bounds()
1461 SK_AT_SCOPE_EXIT(*ctm = restoreMatrix); in colrv1_traverse_paint_bounds()
1468 if (!colrv1_traverse_paint_bounds(ctm, bounds, face, layerPaint, activePaints)) { in colrv1_traverse_paint_bounds()
1480 path.transform(*ctm); in colrv1_traverse_paint_bounds()
1486 return colrv1_start_glyph_bounds(ctm, bounds, face, glyphID, FT_COLOR_NO_ROOT_TRANSFORM, in colrv1_traverse_paint_bounds()
1492 ctm->preConcat(transformMatrix); in colrv1_traverse_paint_bounds()
1494 return colrv1_traverse_paint_bounds(ctm, bounds, face, transformPaint, activePaints); in colrv1_traverse_paint_bounds()
1499 ctm->preConcat(transformMatrix); in colrv1_traverse_paint_bounds()
[all …]

12345678910>>...15