Lines Matching refs:dst
238 void GrMatrix::mapRect(GrRect* dst, const GrRect& src) const {
245 dst->setBounds(dstPts, 4);
366 void GrMatrix::mapIdentity(GrPoint* dst, const GrPoint* src, uint32_t count) const {
367 if (src != dst) {
369 dst[i] = src[i];
374 void GrMatrix::mapScale(GrPoint* dst, const GrPoint* src, uint32_t count) const {
376 dst[i].fX = GrMul(src[i].fX, fM[kScaleX]);
377 dst[i].fY = GrMul(src[i].fY, fM[kScaleY]);
382 void GrMatrix::mapTranslate(GrPoint* dst, const GrPoint* src, uint32_t count) const {
384 dst[i].fX = src[i].fX + fM[kTransX];
385 dst[i].fY = src[i].fY + fM[kTransY];
389 void GrMatrix::mapScaleAndTranslate(GrPoint* dst, const GrPoint* src, uint32_t count) const {
391 dst[i].fX = GrMul(src[i].fX, fM[kScaleX]) + fM[kTransX];
392 dst[i].fY = GrMul(src[i].fY, fM[kScaleY]) + fM[kTransY];
396 void GrMatrix::mapSkew(GrPoint* dst, const GrPoint* src, uint32_t count) const {
397 if (src != dst) {
399 dst[i].fX = src[i].fX + GrMul(src[i].fY, fM[kSkewX]);
400 dst[i].fY = src[i].fY + GrMul(src[i].fX, fM[kSkewY]);
405 dst[i].fY = src[i].fY + GrMul(src[i].fX, fM[kSkewY]);
406 dst[i].fX = newX;
411 void GrMatrix::mapScaleAndSkew(GrPoint* dst, const GrPoint* src, uint32_t count) const {
412 if (src != dst) {
414 dst[i].fX = GrMul(src[i].fX, fM[kScaleX]) + GrMul(src[i].fY, fM[kSkewX]);
415 dst[i].fY = GrMul(src[i].fY, fM[kScaleY]) + GrMul(src[i].fX, fM[kSkewY]);
420 dst[i].fY = GrMul(src[i].fY, fM[kScaleY]) + GrMul(src[i].fX, fM[kSkewY]);
421 dst[i].fX = newX;
426 void GrMatrix::mapSkewAndTranslate(GrPoint* dst, const GrPoint* src, uint32_t count) const {
427 if (src != dst) {
429 dst[i].fX = src[i].fX + GrMul(src[i].fY, fM[kSkewX]) + fM[kTransX];
430 dst[i].fY = src[i].fY + GrMul(src[i].fX, fM[kSkewY]) + fM[kTransY];
435 dst[i].fY = src[i].fY + GrMul(src[i].fX, fM[kSkewY]) + fM[kTransY];
436 dst[i].fX = newX;
441 void GrMatrix::mapNonPerspective(GrPoint* dst, const GrPoint* src, uint32_t count) const {
442 if (src != dst) {
444 dst[i].fX = GrMul(fM[kScaleX], src[i].fX) + GrMul(fM[kSkewX], src[i].fY) + fM[kTransX];
445 dst[i].fY = GrMul(fM[kSkewY], src[i].fX) + GrMul(fM[kScaleY], src[i].fY) + fM[kTransY];
450 dst[i].fY = GrMul(fM[kSkewY], src[i].fX) + GrMul(fM[kScaleY], src[i].fY) + fM[kTransY];
451 dst[i].fX = newX;
456 void GrMatrix::mapPerspective(GrPoint* dst, const GrPoint* src, uint32_t count) const {
466 dst[i].fX = GrMul(x, w);
467 dst[i].fY = GrMul(y, w);
471 void GrMatrix::mapInvalid(GrPoint* dst, const GrPoint* src, uint32_t count) const {
475 void GrMatrix::mapZero(GrPoint* dst
476 memset(dst, 0, sizeof(GrPoint)*count);
479 void GrMatrix::mapSetToTranslate(GrPoint* dst, const GrPoint* src, uint32_t count) const {
481 dst[i].fX = fM[kTransX];
482 dst[i].fY = fM[kTransY];
486 void GrMatrix::mapSwappedScale(GrPoint* dst, const GrPoint* src, uint32_t count) const {
487 if (src != dst) {
489 dst[i].fX = GrMul(src[i].fY, fM[kSkewX]);
490 dst[i].fY = GrMul(src[i].fX, fM[kSkewY]);
495 dst[i].fY = GrMul(src[i].fX, fM[kSkewY]);
496 dst[i].fX = newX;
501 void GrMatrix::mapSwappedScaleAndTranslate(GrPoint* dst, const GrPoint* src, uint32_t count) const {
502 if (src != dst) {
504 dst[i].fX = GrMul(src[i].fY, fM[kSkewX]) + fM[kTransX];
505 dst[i].fY = GrMul(src[i].fX, fM[kSkewY]) + fM[kTransY];
510 dst[i].fY = GrMul(src[i].fX, fM[kSkewY]) + fM[kTransY];
511 dst[i].fX = newX;