Home
last modified time | relevance | path

Searched refs:xforms (Results 1 – 25 of 45) sorted by relevance

12

/third_party/flutter/skia/src/gpu/ops/
DGrDrawPathOp.cpp105 inline void pre_translate_transform_values(const float* xforms, in pre_translate_transform_values() argument
109 memcpy(dst, xforms, count * GrPathRendering::PathTransformSize(type) * sizeof(float)); in pre_translate_transform_values()
119 dst[i] = xforms[i] + x; in pre_translate_transform_values()
125 dst[i] = xforms[i] + y; in pre_translate_transform_values()
130 dst[i] = xforms[i] + x; in pre_translate_transform_values()
131 dst[i + 1] = xforms[i + 1] + y; in pre_translate_transform_values()
136 dst[i] = xforms[i]; in pre_translate_transform_values()
137 dst[i + 1] = xforms[i + 1]; in pre_translate_transform_values()
138 dst[i + 2] = xforms[i] * x + xforms[i + 1] * y + xforms[i + 2]; in pre_translate_transform_values()
139 dst[i + 3] = xforms[i + 3]; in pre_translate_transform_values()
[all …]
DGrDrawAtlasOp.cpp32 const SkMatrix& viewMatrix, GrAAType, int spriteCount, const SkRSXform* xforms,
92 const SkRSXform* xforms, const SkRect* rects, const SkColor* colors) in DrawAtlasOp() argument
94 SkASSERT(xforms); in DrawAtlasOp()
124 xforms[spriteIndex].toTriStrip(currRect.width(), currRect.height(), strip); in DrawAtlasOp()
272 const SkRSXform* xforms, in Make() argument
277 spriteCount, xforms, in Make()
312 static void randomize_params(uint32_t count, SkRandom* random, SkTArray<SkRSXform>* xforms, in randomize_params() argument
316 xforms->push_back(random_xform(random)); in randomize_params()
327 SkTArray<SkRSXform> xforms(spriteCount); in GR_DRAW_OP_TEST_DEFINE() local
333 randomize_params(spriteCount, random, &xforms, &texRects, &colors, hasColors); in GR_DRAW_OP_TEST_DEFINE()
[all …]
/third_party/skia/src/gpu/ops/
DDrawAtlasOp.cpp33 const SkMatrix& viewMatrix, GrAAType, int spriteCount, const SkRSXform* xforms,
107 const SkRSXform* xforms, const SkRect* rects, in DrawAtlasOpImpl() argument
110 SkASSERT(xforms); in DrawAtlasOpImpl()
140 xforms[spriteIndex].toTriStrip(currRect.width(), currRect.height(), strip); in DrawAtlasOpImpl()
317 const SkRSXform* xforms, in Make() argument
322 spriteCount, xforms, in Make()
360 static void randomize_params(uint32_t count, SkRandom* random, SkTArray<SkRSXform>* xforms, in randomize_params() argument
364 xforms->push_back(random_xform(random)); in randomize_params()
375 SkTArray<SkRSXform> xforms(spriteCount); in GR_DRAW_OP_TEST_DEFINE() local
381 randomize_params(spriteCount, random, &xforms, &texRects, &colors, hasColors); in GR_DRAW_OP_TEST_DEFINE()
[all …]
DDrawAtlasOp.h26 const SkRSXform* xforms,
/third_party/flutter/skia/docs/examples/
DDst.cpp7 SkRSXform xforms[] = { { .5f, 0, 0, 0 }, {0, .5f, 125, 128 } }; in draw() local
10 canvas->drawAtlas(image.get(), xforms, tex, colors, 2, SkBlendMode::kSrc, nullptr, nullptr); in draw()
12 canvas->drawAtlas(image.get(), xforms, tex, colors, 2, SkBlendMode::kDst, nullptr, nullptr); in draw()
DCanvas_drawAtlas_4.cpp8 SkRSXform xforms[] = { { 1, 0, 0, 0 }, {0, 1, 300, 100 } }; in draw() local
10 canvas->drawAtlas(image, xforms, tex, 2, nullptr, nullptr); in draw()
DCanvas_drawAtlas_3.cpp8 SkRSXform xforms[] = { { .5f, 0, 0, 0 }, {0, .5f, 200, 100 } }; in draw() local
11 canvas->drawAtlas(imagePtr, xforms, tex, 2, nullptr, nullptr); in draw()
DCanvas_drawAtlas_2.cpp8 SkRSXform xforms[] = { { .5f, 0, 0, 0 }, {0, .5f, 200, 100 } }; in draw() local
13 canvas->drawAtlas(image, xforms, tex, colors, 2, SkBlendMode::kPlus, nullptr, &paint); in draw()
DCanvas_drawAtlas.cpp8 SkRSXform xforms[] = { { .5f, 0, 0, 0 }, {0, .5f, 200, 100 } }; in draw() local
12 canvas->drawAtlas(imagePtr, xforms, tex, colors, 2, SkBlendMode::kSrcOver, nullptr, nullptr); in draw()
/third_party/skia/docs/examples/
DDst.cpp7 SkRSXform xforms[] = { { .5f, 0, 0, 0 }, {0, .5f, 125, 128 } }; in draw() local
11 canvas->drawAtlas(image.get(), xforms, tex, colors, 2, SkBlendMode::kSrc, in draw()
14 canvas->drawAtlas(image.get(), xforms, tex, colors, 2, SkBlendMode::kDst, in draw()
DCanvas_drawAtlas.cpp8 SkRSXform xforms[] = { { .5f, 0, 0, 0 }, {0, .5f, 200, 100 } }; in draw() local
13 canvas->drawAtlas(imagePtr, xforms, tex, colors, 2, SkBlendMode::kSrcOver, in draw()
DCanvas_drawAtlas_2.cpp8 SkRSXform xforms[] = { { .5f, 0, 0, 0 }, {0, .5f, 200, 100 } }; in draw() local
14 canvas->drawAtlas(image.get(), xforms, tex, colors, 2, SkBlendMode::kPlus, in draw()
/third_party/flutter/skia/gm/
Ddrawatlascolor.cpp131 SkRSXform xforms[numColors]; in onDraw() local
139 xforms[i].set(1.0f, 0.0f, SkIntToScalar(kPad), i*(target.width()+kPad)); in onDraw()
157 canvas->drawAtlas(atlas.get(), xforms, rects, quadColors, numColors, in onDraw()
161 canvas->drawAtlas(atlas.get(), xforms, rects, quadColors, numColors, in onDraw()
Dskbug_8664.cpp21 } xforms[] = { variable
40 for (const auto& xform : xforms) {
Ddrawatlas.cpp243 SkRSXform xforms[len]; variable
248 xforms[i] = SkRSXform::Make(scale, 0, x, y);
252 auto blob = SkTextBlob::MakeFromRSXform(text, len, xforms, font);
Dimagefilters.cpp162 } xforms[] = { variable
174 for (const auto& xform : xforms) {
/third_party/skia/gm/
Ddrawatlascolor.cpp131 SkRSXform xforms[numColors]; in onDraw() local
139 xforms[i].set(1.0f, 0.0f, SkIntToScalar(kPad), i*(target.width()+kPad)); in onDraw()
157 canvas->drawAtlas(atlas.get(), xforms, rects, quadColors, numColors, in onDraw()
161 canvas->drawAtlas(atlas.get(), xforms, rects, quadColors, numColors, in onDraw()
Ddrawatlas.cpp245 SkRSXform xforms[len]; variable
250 xforms[i] = SkRSXform::Make(scale, 0, x, y);
254 auto blob = SkTextBlob::MakeFromRSXform(text, len, xforms, font);
283 SkRSXform xforms[len]; variable
288 xforms[i] = SkRSXform::Make(scale, 0, x, y);
292 auto blob = SkTextBlob::MakeFromRSXform(text, len, xforms, font);
Dskbug_8664.cpp20 } xforms[] = { variable
40 for (const auto& xform : xforms) {
/third_party/flutter/skia/tests/
DSkResourceCacheTest.cpp184 const SkMatrix xforms[] = { in DEF_TEST() local
189 for (size_t i = 0; i < SK_ARRAY_COUNT(xforms); ++i) { in DEF_TEST()
190 test_discarded_image(reporter, xforms[i], []() { in DEF_TEST()
196 test_discarded_image(reporter, xforms[i], []() { in DEF_TEST()
/third_party/skia/tests/
DSkResourceCacheTest.cpp184 const SkMatrix xforms[] = { in DEF_TEST() local
189 for (size_t i = 0; i < SK_ARRAY_COUNT(xforms); ++i) { in DEF_TEST()
190 test_discarded_image(reporter, xforms[i], []() { in DEF_TEST()
196 test_discarded_image(reporter, xforms[i], []() { in DEF_TEST()
/third_party/skia/src/core/
DSkGlyphRun.cpp161 for (auto [xform, pos, sr] : SkMakeZip(buffer.xforms(), in makeBlob()
249 for (const SkRSXform& xform : SkMakeSpan(it.xforms(), runSize)) { in blobToGlyphRunList()
270 SkGlyphRunBuilder::convertRSXForm(SkSpan<const SkRSXform> xforms) { in convertRSXForm() argument
271 const int count = SkCount(xforms); in convertRSXForm()
275 for (auto [pos, sr, xform] : SkMakeZip(positions, scaledRotations, xforms)) { in convertRSXForm()
/third_party/flutter/skia/samplecode/
DSampleLitAtlas.cpp85 SkRSXform xforms[kNumAsteroids+kNumShips]; in onDraw() local
90 xforms[i] = fAsteroids[i].asRSXform(); in onDraw()
97 xforms[kNumAsteroids] = fShip.asRSXform(); in onDraw()
116 canvas->drawLitAtlas(fAtlas, xforms, fDiffTex, fNormTex, colorsPtr, kNumAsteroids+1, in onDraw()
132 m.setRSXform(xforms[i]); in onDraw()
/third_party/flutter/skia/third_party/externals/libjpeg-turbo/java/
DTJExample.java294 TJTransform[] xforms = new TJTransform[1]; in main() local
295 xforms[0] = xform; in main()
296 xforms[0].options |= TJTransform.OPT_TRIM; in main()
297 TJDecompressor[] tjds = tjt.transform(xforms, 0); in main()
/third_party/libjpeg-turbo/java/
DTJExample.java294 TJTransform[] xforms = new TJTransform[1]; in main() local
295 xforms[0] = xform; in main()
296 xforms[0].options |= TJTransform.OPT_TRIM; in main()
297 TJDecompressor[] tjds = tjt.transform(xforms, 0); in main()

12