Home
last modified time | relevance | path

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

12

/external/skqp/src/gpu/ops/
DGrDrawPathOp.cpp93 inline void pre_translate_transform_values(const float* xforms, in pre_translate_transform_values() argument
97 memcpy(dst, xforms, count * GrPathRendering::PathTransformSize(type) * sizeof(float)); in pre_translate_transform_values()
107 dst[i] = xforms[i] + x; in pre_translate_transform_values()
113 dst[i] = xforms[i] + y; in pre_translate_transform_values()
118 dst[i] = xforms[i] + x; in pre_translate_transform_values()
119 dst[i + 1] = xforms[i + 1] + y; in pre_translate_transform_values()
124 dst[i] = xforms[i]; in pre_translate_transform_values()
125 dst[i + 1] = xforms[i + 1]; in pre_translate_transform_values()
126 dst[i + 2] = xforms[i] * x + xforms[i + 1] * y + xforms[i + 2]; in pre_translate_transform_values()
127 dst[i + 3] = xforms[i + 3]; in pre_translate_transform_values()
[all …]
DGrDrawAtlasOp.cpp32 const SkRSXform* xforms, const SkRect* rects, const SkColor* colors) in GrDrawAtlasOp() argument
34 SkASSERT(xforms); in GrDrawAtlasOp()
64 xforms[spriteIndex].toTriStrip(currRect.width(), currRect.height(), strip); in GrDrawAtlasOp()
231 static void randomize_params(uint32_t count, SkRandom* random, SkTArray<SkRSXform>* xforms, in randomize_params() argument
235 xforms->push_back(random_xform(random)); in randomize_params()
246 SkTArray<SkRSXform> xforms(spriteCount); in GR_DRAW_OP_TEST_DEFINE() local
252 randomize_params(spriteCount, random, &xforms, &texRects, &colors, hasColors); in GR_DRAW_OP_TEST_DEFINE()
261 xforms.begin(), texRects.begin(), in GR_DRAW_OP_TEST_DEFINE()
DGrDrawAtlasOp.h28 const SkRSXform* xforms, in Make() argument
32 spriteCount, xforms, rects, colors); in Make()
36 const SkMatrix& viewMatrix, GrAAType, int spriteCount, const SkRSXform* xforms,
/external/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()
271 const SkRSXform* xforms, in Make() argument
276 spriteCount, xforms, in Make()
311 static void randomize_params(uint32_t count, SkRandom* random, SkTArray<SkRSXform>* xforms, in randomize_params() argument
315 xforms->push_back(random_xform(random)); in randomize_params()
326 SkTArray<SkRSXform> xforms(spriteCount); in GR_DRAW_OP_TEST_DEFINE() local
332 randomize_params(spriteCount, random, &xforms, &texRects, &colors, hasColors); in GR_DRAW_OP_TEST_DEFINE()
[all …]
DGrDrawAtlasOp.h25 const SkRSXform* xforms,
/external/skqp/gm/
Ddrawatlascolor.cpp118 SkRSXform xforms[numColors]; in onDraw() local
126 xforms[i].set(1.0f, 0.0f, SkIntToScalar(kPad), i*(target.width()+kPad)); in onDraw()
144 canvas->drawAtlas(atlas.get(), xforms, rects, quadColors, numColors, in onDraw()
148 canvas->drawAtlas(atlas.get(), xforms, rects, quadColors, numColors, in onDraw()
Dskbug_8664.cpp15 } xforms[] = { variable
34 for (const auto& xform : xforms) {
Ddrawatlas.cpp221 SkRSXform xforms[len]; variable
226 xforms[i] = SkRSXform::Make(scale, 0, x, y);
230 auto blob = SkTextBlob::MakeFromRSXform(text, len, xforms, font);
Dimagefilters.cpp155 } xforms[] = { variable
167 for (const auto& xform : xforms) {
/external/skia/gm/
Ddrawatlascolor.cpp118 SkRSXform xforms[numColors]; in onDraw() local
126 xforms[i].set(1.0f, 0.0f, SkIntToScalar(kPad), i*(target.width()+kPad)); in onDraw()
144 canvas->drawAtlas(atlas.get(), xforms, rects, quadColors, numColors, in onDraw()
148 canvas->drawAtlas(atlas.get(), xforms, rects, quadColors, numColors, in onDraw()
Dskbug_8664.cpp15 } xforms[] = { variable
34 for (const auto& xform : xforms) {
Ddrawatlas.cpp221 SkRSXform xforms[len]; variable
226 xforms[i] = SkRSXform::Make(scale, 0, x, y);
230 auto blob = SkTextBlob::MakeFromRSXform(text, len, xforms, font);
Dimagefilters.cpp155 } xforms[] = { variable
167 for (const auto& xform : xforms) {
/external/skqp/tests/
DSkResourceCacheTest.cpp186 const SkMatrix xforms[] = { in DEF_TEST() local
191 for (size_t i = 0; i < SK_ARRAY_COUNT(xforms); ++i) { in DEF_TEST()
192 test_discarded_image(reporter, xforms[i], []() { in DEF_TEST()
198 test_discarded_image(reporter, xforms[i], []() { in DEF_TEST()
/external/skia/tests/
DSkResourceCacheTest.cpp186 const SkMatrix xforms[] = { in DEF_TEST() local
191 for (size_t i = 0; i < SK_ARRAY_COUNT(xforms); ++i) { in DEF_TEST()
192 test_discarded_image(reporter, xforms[i], []() { in DEF_TEST()
198 test_discarded_image(reporter, xforms[i], []() { in DEF_TEST()
/external/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()
/external/skqp/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()
/external/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()
/external/skia/src/core/
DSkLiteRecorder.cpp174 const SkRSXform xforms[], in onDrawAtlas() argument
181 fDL->drawAtlas(atlas, xforms, texs, colors, count, bmode, cull, paint); in onDrawAtlas()
DSkLiteDL.cpp448 auto xforms = pod<SkRSXform>(this, 0); in draw() local
453 c->drawAtlas(atlas.get(), xforms, texs, colors, count, xfermode, in draw()
631 void SkLiteDL::drawAtlas(const SkImage* atlas, const SkRSXform xforms[], const SkRect texs[], in drawAtlas() argument
640 copy_v(pod, xforms, count, in drawAtlas()
DSkTextBlobPriv.h234 const SkRSXform* xforms() const { in xforms() function
/external/skqp/src/core/
DSkLiteRecorder.cpp171 const SkRSXform xforms[], in onDrawAtlas() argument
178 fDL->drawAtlas(atlas, xforms, texs, colors, count, bmode, cull, paint); in onDrawAtlas()
DSkLiteDL.cpp442 auto xforms = pod<SkRSXform>(this, 0); in draw() local
447 c->drawAtlas(atlas.get(), xforms, texs, colors, count, xfermode, in draw()
622 void SkLiteDL::drawAtlas(const SkImage* atlas, const SkRSXform xforms[], const SkRect texs[], in drawAtlas() argument
631 copy_v(pod, xforms, count, in drawAtlas()
/external/skqp/include/core/
DSkTextBlob.h290 SkRSXform* xforms() const { return reinterpret_cast<SkRSXform*>(pos); } in xforms() function

12