• Home
  • Raw
  • Download

Lines Matching refs:GrMatrix

24     const GrScalar GrMatrix::gRESCALE(GR_Scalar1);
29 const GrScalar GrMatrix::gRESCALE(1 << 30);
32 const GrMatrix::MapProc GrMatrix::gMapProcs[] = {
34 &GrMatrix::mapIdentity,
35 &GrMatrix::mapScale,
36 &GrMatrix::mapTranslate,
37 &GrMatrix::mapScaleAndTranslate,
38 &GrMatrix::mapSkew,
39 &GrMatrix::mapScaleAndSkew,
40 &GrMatrix::mapSkewAndTranslate,
41 &GrMatrix::mapNonPerspective,
43 &GrMatrix::mapPerspective,
44 &GrMatrix::mapPerspective,
45 &GrMatrix::mapPerspective,
46 &GrMatrix::mapPerspective,
47 &GrMatrix::mapPerspective,
48 &GrMatrix::mapPerspective,
49 &GrMatrix::mapPerspective,
50 &GrMatrix::mapPerspective,
54 &GrMatrix::mapInvalid,
55 &GrMatrix::mapZero,
56 &GrMatrix::mapInvalid,
57 &GrMatrix::mapSetToTranslate,
58 &GrMatrix::mapInvalid,
59 &GrMatrix::mapSwappedScale,
60 &GrMatrix::mapInvalid,
61 &GrMatrix::mapSwappedScaleAndTranslate,
64 &GrMatrix::mapInvalid,
65 &GrMatrix::mapZero,
66 &GrMatrix::mapInvalid,
67 &GrMatrix::mapPerspective,
68 &GrMatrix::mapInvalid,
69 &GrMatrix::mapPerspective,
70 &GrMatrix::mapInvalid,
71 &GrMatrix::mapPerspective,
74 void GrMatrix::setIdentity() {
81 void GrMatrix::setTranslate(GrScalar dx, GrScalar dy) {
88 void GrMatrix::setScale(GrScalar sx, GrScalar sy) {
95 void GrMatrix::setSkew(GrScalar skx, GrScalar sky) {
102 void GrMatrix::setConcat(const GrMatrix& a, const GrMatrix& b) {
125 GrMatrix tmp;
159 void GrMatrix::preConcat(const GrMatrix& m) {
163 void GrMatrix::postConcat(const GrMatrix& m) {
167 double GrMatrix::determinant() const {
178 bool GrMatrix::invert(GrMatrix* inverted) const {
238 void GrMatrix::mapRect(GrRect* dst, const GrRect& src) const {
248 bool GrMatrix::hasPerspective() const {
254 bool GrMatrix::isIdentity() const {
263 bool GrMatrix::preservesAxisAlignment() const {
283 GrScalar GrMatrix::getMaxStretch() const {
343 bool GrMatrix::operator == (const GrMatrix& m) const {
358 bool GrMatrix::operator != (const GrMatrix& m) const {
366 void GrMatrix::mapIdentity(GrPoint* dst, const GrPoint* src, uint32_t count) const {
374 void GrMatrix::mapScale(GrPoint* dst, const GrPoint* src, uint32_t count) const {
382 void GrMatrix::mapTranslate(GrPoint* dst, const GrPoint* src, uint32_t count) const {
389 void GrMatrix::mapScaleAndTranslate(GrPoint* dst, const GrPoint* src, uint32_t count) const {
396 void GrMatrix::mapSkew(GrPoint* dst, const GrPoint* src, uint32_t count) const {
411 void GrMatrix::mapScaleAndSkew(GrPoint* dst, const GrPoint* src, uint32_t count) const {
426 void GrMatrix::mapSkewAndTranslate(GrPoint* dst, const GrPoint* src, uint32_t count) const {
441 void GrMatrix::mapNonPerspective(GrPoint* dst, const GrPoint* src, uint32_t count) const {
456 void GrMatrix::mapPerspective(GrPoint* dst, const GrPoint* src, uint32_t count) const {
471 void GrMatrix::mapInvalid(GrPoint* dst, const GrPoint* src, uint32_t count) const {
475 void GrMatrix::mapZero(GrPoint* dst, const GrPoint* src, uint32_t count) const {
479 void GrMatrix::mapSetToTranslate(GrPoint* dst, const GrPoint* src, uint32_t count) const {
486 void GrMatrix::mapSwappedScale(GrPoint* dst, const GrPoint* src, uint32_t count) const {
501 void GrMatrix::mapSwappedScaleAndTranslate(GrPoint* dst, const GrPoint* src, uint32_t count) const {
537 static void create_matrix(GrMatrix* matrix, GrRandom& rand) {
546 0, 0, GrMatrix::I()[8]);
552 0, 0, GrMatrix::I()[8]);
558 0, 0, GrMatrix::I()[8]);
564 0, 0, GrMatrix::I()[8]);
570 0, 0, GrMatrix::I()[8]);
576 0, 0, GrMatrix::I()[8]);
582 0, 0, GrMatrix::I()[8]);
589 0, 0, GrMatrix::I()[8]);
597 p0, p1, GrMul(p2,GrMatrix::I()[8]));
606 void GrMatrix::UnitTest() {
613 GrMatrix a, b;
680 GrMatrix c;