Searched refs:ctm (Results 1 - 25 of 190) sorted by relevance

12345678

/external/skia/experimental/sksg/
H A DSkSGInvalidationController.cpp17 void InvalidationController::inval(const SkRect& r, const SkMatrix& ctm) { argument
24 if (!ctm.isIdentity()) {
25 ctm.mapRect(rect.writable());
H A DSkSGEffectNode.cpp25 SkRect EffectNode::onRevalidate(InvalidationController* ic, const SkMatrix& ctm) { argument
28 return fChild->revalidate(ic, ctm);
H A DSkSGDraw.cpp38 SkRect Draw::onRevalidate(InvalidationController* ic, const SkMatrix& ctm) { argument
41 auto bounds = fGeometry->revalidate(ic, ctm);
42 fPaint->revalidate(ic, ctm);
H A DSkSGImage.cpp25 SkRect Image::onRevalidate(InvalidationController*, const SkMatrix& ctm) { argument
/external/skqp/experimental/sksg/
H A DSkSGInvalidationController.cpp17 void InvalidationController::inval(const SkRect& r, const SkMatrix& ctm) { argument
24 if (!ctm.isIdentity()) {
25 ctm.mapRect(rect.writable());
H A DSkSGEffectNode.cpp25 SkRect EffectNode::onRevalidate(InvalidationController* ic, const SkMatrix& ctm) { argument
28 return fChild->revalidate(ic, ctm);
H A DSkSGDraw.cpp38 SkRect Draw::onRevalidate(InvalidationController* ic, const SkMatrix& ctm) { argument
41 auto bounds = fGeometry->revalidate(ic, ctm);
42 fPaint->revalidate(ic, ctm);
/external/skia/tests/
H A DShadowTest.cpp16 void tessellate_shadow(skiatest::Reporter* reporter, const SkPath& path, const SkMatrix& ctm, argument
21 auto verts = SkShadowTessellator::MakeAmbient(path, ctm, heightParams, true);
26 verts = SkShadowTessellator::MakeAmbient(path, ctm, heightParams, false);
31 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, false);
36 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, false);
63 void check_xformed_bounds(skiatest::Reporter* reporter, const SkPath& path, const SkMatrix& ctm) { argument
73 SkDrawShadowMetrics::GetLocalBounds(path, rec, ctm, &bounds);
74 ctm.mapRect(&bounds);
76 auto verts = SkShadowTessellator::MakeAmbient(path, ctm, rec.fZPlaneParams, true);
81 SkPoint mapXY = ctm
91 SkMatrix ctm; local
[all...]
/external/skqp/tests/
H A DShadowTest.cpp16 void tessellate_shadow(skiatest::Reporter* reporter, const SkPath& path, const SkMatrix& ctm, argument
21 auto verts = SkShadowTessellator::MakeAmbient(path, ctm, heightParams, true);
26 verts = SkShadowTessellator::MakeAmbient(path, ctm, heightParams, false);
31 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, false);
36 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, false);
63 void check_xformed_bounds(skiatest::Reporter* reporter, const SkPath& path, const SkMatrix& ctm) { argument
73 SkDrawShadowMetrics::GetLocalBounds(path, rec, ctm, &bounds);
74 ctm.mapRect(&bounds);
76 auto verts = SkShadowTessellator::MakeAmbient(path, ctm, rec.fZPlaneParams, true);
81 SkPoint mapXY = ctm
91 SkMatrix ctm; local
[all...]
/external/skia/src/utils/
H A DSkShadowTessellator.h29 sk_sp<SkVertices> MakeAmbient(const SkPath& path, const SkMatrix& ctm,
37 sk_sp<SkVertices> MakeSpot(const SkPath& path, const SkMatrix& ctm, const SkPoint3& zPlane,
/external/skqp/src/utils/
H A DSkShadowTessellator.h29 sk_sp<SkVertices> MakeAmbient(const SkPath& path, const SkMatrix& ctm,
37 sk_sp<SkVertices> MakeSpot(const SkPath& path, const SkMatrix& ctm, const SkPoint3& zPlane,
/external/skia/gm/
H A Dpictureshader.cpp66 SkMatrix ctm, localMatrix; variable
67 ctm.setTranslate(fSceneSize * 2.1f, fSceneSize * 13.8f);
68 ctm.preScale(-1, -1);
70 this->drawScene(canvas, ctm, localMatrix, 0);
72 ctm.setTranslate(fSceneSize * 2.4f, fSceneSize * 12.8f);
74 this->drawScene(canvas, ctm, localMatrix, 0);
76 ctm.setTranslate(fSceneSize * 4.8f, fSceneSize * 12.3f);
77 ctm.preScale(2, 2);
78 this->drawScene(canvas, ctm, localMatrix, 0);
80 ctm
91 SkMatrix ctm, localMatrix; local
[all...]
/external/skqp/gm/
H A Dpictureshader.cpp66 SkMatrix ctm, localMatrix; variable
67 ctm.setTranslate(fSceneSize * 2.1f, fSceneSize * 13.8f);
68 ctm.preScale(-1, -1);
70 this->drawScene(canvas, ctm, localMatrix, 0);
72 ctm.setTranslate(fSceneSize * 2.4f, fSceneSize * 12.8f);
74 this->drawScene(canvas, ctm, localMatrix, 0);
76 ctm.setTranslate(fSceneSize * 4.8f, fSceneSize * 12.3f);
77 ctm.preScale(2, 2);
78 this->drawScene(canvas, ctm, localMatrix, 0);
80 ctm
91 SkMatrix ctm, localMatrix; local
[all...]
/external/skia/experimental/sksg/effects/
H A DSkSGTransform.cpp29 SkRect Matrix::onRevalidate(InvalidationController* ic, const SkMatrix& ctm) { argument
33 fParent->revalidate(ic, ctm);
57 SkRect Transform::onRevalidate(InvalidationController* ic, const SkMatrix& ctm) { argument
61 fMatrix->revalidate(ic, ctm);
64 auto bounds = this->INHERITED::onRevalidate(ic, SkMatrix::Concat(ctm, m));
H A DSkSGClipEffect.cpp39 SkRect ClipEffect::onRevalidate(InvalidationController* ic, const SkMatrix& ctm) { argument
42 const auto clipBounds = fClipNode->revalidate(ic, ctm);
43 auto childBounds = this->INHERITED::onRevalidate(ic, ctm);
H A DSkSGMaskEffect.cpp42 SkRect MaskEffect::onRevalidate(InvalidationController* ic, const SkMatrix& ctm) { argument
45 const auto maskBounds = fMaskNode->revalidate(ic, ctm);
46 auto childBounds = this->INHERITED::onRevalidate(ic, ctm);
H A DSkSGOpacityEffect.cpp35 SkRect OpacityEffect::onRevalidate(InvalidationController* ic, const SkMatrix& ctm) { argument
39 return fOpacity > 0 ? this->INHERITED::onRevalidate(ic, ctm) : SkRect::MakeEmpty();
/external/skqp/experimental/sksg/effects/
H A DSkSGTransform.cpp29 SkRect Matrix::onRevalidate(InvalidationController* ic, const SkMatrix& ctm) { argument
33 fParent->revalidate(ic, ctm);
57 SkRect Transform::onRevalidate(InvalidationController* ic, const SkMatrix& ctm) { argument
61 fMatrix->revalidate(ic, ctm);
64 auto bounds = this->INHERITED::onRevalidate(ic, SkMatrix::Concat(ctm, m));
H A DSkSGClipEffect.cpp39 SkRect ClipEffect::onRevalidate(InvalidationController* ic, const SkMatrix& ctm) { argument
42 const auto clipBounds = fClipNode->revalidate(ic, ctm);
43 auto childBounds = this->INHERITED::onRevalidate(ic, ctm);
H A DSkSGMaskEffect.cpp42 SkRect MaskEffect::onRevalidate(InvalidationController* ic, const SkMatrix& ctm) { argument
45 const auto maskBounds = fMaskNode->revalidate(ic, ctm);
46 auto childBounds = this->INHERITED::onRevalidate(ic, ctm);
H A DSkSGOpacityEffect.cpp35 SkRect OpacityEffect::onRevalidate(InvalidationController* ic, const SkMatrix& ctm) { argument
39 return fOpacity > 0 ? this->INHERITED::onRevalidate(ic, ctm) : SkRect::MakeEmpty();
/external/skia/src/core/
H A DSkDrawShadowInfo.cpp19 void GetLocalBounds(const SkPath& path, const SkDrawShadowRec& rec, const SkMatrix& ctm, argument
38 if (ctm.hasPerspective()) {
40 ctm.mapRect(&ambientBounds);
47 ctm.mapPoints(&devLightPos, 1);
52 SkScalar devToSrcScale = SkScalarInvert(ctm.getMinScale());
84 if (ctm.hasPerspective()) {
87 if (ctm.invert(&inverse)) {
/external/skqp/src/core/
H A DSkDrawShadowInfo.cpp19 void GetLocalBounds(const SkPath& path, const SkDrawShadowRec& rec, const SkMatrix& ctm, argument
38 if (ctm.hasPerspective()) {
40 ctm.mapRect(&ambientBounds);
47 ctm.mapPoints(&devLightPos, 1);
52 SkScalar devToSrcScale = SkScalarInvert(ctm.getMinScale());
84 if (ctm.hasPerspective()) {
87 if (ctm.invert(&inverse)) {
/external/skia/src/gpu/ops/
H A DGrSmallPathRenderer.h65 Key(const GrShape& shape, const SkMatrix& ctm) { this->set(shape, ctm); } argument
86 void set(const GrShape& shape, const SkMatrix& ctm) { argument
92 SkScalar sx = ctm.get(SkMatrix::kMScaleX);
93 SkScalar sy = ctm.get(SkMatrix::kMScaleY);
94 SkScalar kx = ctm.get(SkMatrix::kMSkewX);
95 SkScalar ky = ctm.get(SkMatrix::kMSkewY);
96 SkScalar tx = ctm.get(SkMatrix::kMTransX);
97 SkScalar ty = ctm.get(SkMatrix::kMTransY);
/external/skqp/src/gpu/ops/
H A DGrSmallPathRenderer.h61 Key(const GrShape& shape, const SkMatrix& ctm) { this->set(shape, ctm); } argument
82 void set(const GrShape& shape, const SkMatrix& ctm) { argument
88 SkScalar sx = ctm.get(SkMatrix::kMScaleX);
89 SkScalar sy = ctm.get(SkMatrix::kMScaleY);
90 SkScalar kx = ctm.get(SkMatrix::kMSkewX);
91 SkScalar ky = ctm.get(SkMatrix::kMSkewY);
92 SkScalar tx = ctm.get(SkMatrix::kMTransX);
93 SkScalar ty = ctm.get(SkMatrix::kMTransY);

Completed in 665 milliseconds

12345678