Home
last modified time | relevance | path

Searched refs:SkRSXform (Results 1 – 25 of 118) sorted by relevance

12345

/external/skia/include/core/
DSkRSXform.h21 struct SkRSXform { struct
22 static SkRSXform Make(SkScalar scos, SkScalar ssin, SkScalar tx, SkScalar ty) { in Make() argument
23 SkRSXform xform = { scos, ssin, tx, ty }; in Make()
33 static SkRSXform MakeFromRadians(SkScalar scale, SkScalar radians, SkScalar tx, SkScalar ty, in MakeFromRadians() argument
DSkTextBlob.h19 struct SkRSXform;
142 const SkRSXform xform[], const SkFont& font,
320 SkRSXform* xforms() const { return reinterpret_cast<SkRSXform*>(pos); } in xforms()
/external/skqp/include/core/
DSkRSXform.h21 struct SkRSXform { struct
22 static SkRSXform Make(SkScalar scos, SkScalar ssin, SkScalar tx, SkScalar ty) { in Make() argument
23 SkRSXform xform = { scos, ssin, tx, ty }; in Make()
33 static SkRSXform MakeFromRadians(SkScalar scale, SkScalar radians, SkScalar tx, SkScalar ty, in MakeFromRadians() argument
DSkTextBlob.h29 struct SkRSXform;
152 const SkRSXform xform[], const SkFont& font,
290 SkRSXform* xforms() const { return reinterpret_cast<SkRSXform*>(pos); } in xforms()
/external/skia/samplecode/
DSampleShip.cpp23 typedef void (*DrawAtlasProc)(SkCanvas*, SkImage*, const SkRSXform[], const SkRect[],
26 static void draw_atlas(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[], in draw_atlas()
33 static void draw_atlas_sim(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[], in draw_atlas_sim()
74 fXform[currIndex] = SkRSXform::MakeFromRadians(0.1f, SK_ScalarPI*0.5f, in DrawShipView()
82 fXform[currIndex] = SkRSXform::MakeFromRadians(0.5f, SK_ScalarPI*0.5f, in DrawShipView()
137 SkRSXform fXform[kGrid*kGrid+1];
DSampleAtlas.cpp18 typedef void (*DrawAtlasProc)(SkCanvas*, SkImage*, const SkRSXform[], const SkRect[],
22 static void draw_atlas(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[], in draw_atlas()
29 static void draw_atlas_sim(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[], in draw_atlas_sim()
125 SkRSXform asRSXform() const { in asRSXform()
126 return SkRSXform::MakeFromRadians(fScale, fRadian, fCenter.x(), fCenter.y(), in asRSXform()
178 SkRSXform xform[N]; in onDraw()
/external/skia/gm/
Ddrawatlas.cpp90 void apply(SkRSXform* xform) const { in onDraw()
105 SkRSXform xform[N]; in onDraw()
139 size_t size = count * (sizeof(SkRSXform) + sizeof(SkScalar));
141 SkRSXform* xform = (SkRSXform*)storage.get();
246 SkRSXform xforms[len];
251 xforms[i] = SkRSXform::Make(scale, 0, x, y);
284 SkRSXform xforms[len];
289 xforms[i] = SkRSXform::Make(scale, 0, x, y);
325 const SkRSXform xform = SkRSXform::Make(1, 0, 0, 0);
Ddrawglyphs.cpp46 xform = SkRSXform::Make(sin, cos, fRadius*cos, -fRadius*sin); in onOnceBeforeDraw()
83 SkTDArray<SkRSXform> fXforms;
/external/skqp/gm/
Ddrawatlas.cpp62 void apply(SkRSXform* xform) const { in onDraw()
77 SkRSXform xform[N]; in onDraw()
113 size_t size = count * (sizeof(SkRSXform) + sizeof(SkScalar));
115 SkRSXform* xform = (SkRSXform*)storage.get();
221 SkRSXform xforms[len];
226 xforms[i] = SkRSXform::Make(scale, 0, x, y);
266 const SkRSXform xform = SkRSXform::Make(1, 0, 0, 0);
/external/skqp/samplecode/
DSampleShip.cpp23 typedef void (*DrawAtlasProc)(SkCanvas*, SkImage*, const SkRSXform[], const SkRect[],
26 static void draw_atlas(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[], in draw_atlas()
32 static void draw_atlas_sim(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[], in draw_atlas_sim()
73 fXform[currIndex] = SkRSXform::MakeFromRadians(0.1f, SK_ScalarPI*0.5f, in DrawShipView()
81 fXform[currIndex] = SkRSXform::MakeFromRadians(0.5f, SK_ScalarPI*0.5f, in DrawShipView()
171 SkRSXform fXform[kGrid*kGrid+1];
DSampleAtlas.cpp18 typedef void (*DrawAtlasProc)(SkCanvas*, SkImage*, const SkRSXform[], const SkRect[],
21 static void draw_atlas(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[], in draw_atlas()
27 static void draw_atlas_sim(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[], in draw_atlas_sim()
123 SkRSXform asRSXform() const { in asRSXform()
124 return SkRSXform::MakeFromRadians(fScale, fRadian, fCenter.x(), fCenter.y(), in asRSXform()
176 SkRSXform xform[N]; in onDraw()
/external/skia/src/gpu/ops/
DGrDrawAtlasOp.cpp34 const SkMatrix& viewMatrix, GrAAType, int spriteCount, const SkRSXform* xforms,
109 const SkRSXform* xforms, const SkRect* rects, const SkColor* colors) in DrawAtlasOp()
310 const SkRSXform* xforms, in Make()
321 static SkRSXform random_xform(SkRandom* random) { in random_xform()
329 SkRSXform xform = SkRSXform::MakeFromRadians(random->nextRangeScalar(kMinScale, kMaxScale), in random_xform()
350 static void randomize_params(uint32_t count, SkRandom* random, SkTArray<SkRSXform>* xforms, in randomize_params()
365 SkTArray<SkRSXform> xforms(spriteCount); in GR_DRAW_OP_TEST_DEFINE()
DGrDrawAtlasOp.h26 const SkRSXform* xforms,
/external/skqp/src/gpu/ops/
DGrDrawAtlasOp.cpp32 const SkRSXform* xforms, const SkRect* rects, const SkColor* colors) in GrDrawAtlasOp()
202 static SkRSXform random_xform(SkRandom* random) { in random_xform()
210 SkRSXform xform = SkRSXform::MakeFromRadians(random->nextRangeScalar(kMinScale, kMaxScale), in random_xform()
231 static void randomize_params(uint32_t count, SkRandom* random, SkTArray<SkRSXform>* xforms, in randomize_params()
246 SkTArray<SkRSXform> xforms(spriteCount); in GR_DRAW_OP_TEST_DEFINE()
DGrDrawAtlasOp.h28 const SkRSXform* xforms, in Make()
36 const SkMatrix& viewMatrix, GrAAType, int spriteCount, const SkRSXform* xforms,
/external/skia/docs/examples/
DCanvas_drawTextRSXform.cpp8 SkRSXform transforms[iterations]; in draw()
15 transforms[i] = SkRSXform::Make(-c, -s, -s * 16, c * 16); in draw()
DPath_addRRect_2.cpp23 SkRSXform rsxForm = SkRSXform::Make(tangent.fX, tangent.fY, in draw()
DCanvas_drawAtlas.cpp8 SkRSXform xforms[] = { { .5f, 0, 0, 0 }, {0, .5f, 200, 100 } }; in draw()
DCanvas_drawAtlas_2.cpp8 SkRSXform xforms[] = { { .5f, 0, 0, 0 }, {0, .5f, 200, 100 } }; in draw()
DDst.cpp7 SkRSXform xforms[] = { { .5f, 0, 0, 0 }, {0, .5f, 125, 128 } }; in draw()
/external/skia/src/core/
DSkTextBlobPriv.h116 SkRSXform* xformBuffer() const { in xformBuffer()
118 return reinterpret_cast<SkRSXform*>(this->posBuffer()); in xformBuffer()
216 const SkRSXform* xforms() const { in xforms()
DSkGlyphRun.cpp77 SkRSXform{pos.x(), pos.y(), scaleRotate.x(), scaleRotate.y()}); in sourceBounds()
100 const SkRSXform xform{pos.x(), pos.y(), scaleRotate.x(), scaleRotate.y()}; in sourceBounds()
165 xform = SkRSXform::Make(sr.x(), sr.y(), pos.x(), pos.y()); in makeBlob()
250 for (const SkRSXform& xform : SkMakeSpan(it.xforms(), runSize)) { in blobToGlyphRunList()
271 SkGlyphRunBuilder::convertRSXForm(SkSpan<const SkRSXform> xforms) { in convertRSXForm()
/external/skqp/src/core/
DSkTextBlobPriv.h136 SkRSXform* xformBuffer() const { in xformBuffer()
138 return reinterpret_cast<SkRSXform*>(this->posBuffer()); in xformBuffer()
234 const SkRSXform* xforms() const { in xforms()
/external/skia/modules/particles/src/
DSkParticleDrawable.cpp32 static inline SkRSXform make_rsxform(SkPoint ofs, in make_rsxform()
36 return SkRSXform::Make(c, s, in make_rsxform()
69 SkAutoTMalloc<SkRSXform> fXforms;
/external/skia/modules/svg/src/
DSkSVGTextPriv.h20 struct SkRSXform;
172 SkRSXform computeGlyphXform(SkGlyphID, const SkFont&, const SkPoint& glyph_pos,

12345