Lines Matching refs:fGraphicsState
307 SkPdfFont* skfont = pdfContext->fGraphicsState.fSkFont;
336 if (pdfContext->fGraphicsState.fCurFontSize != 0) {
337 paint.setTextSize(SkDoubleToScalar(pdfContext->fGraphicsState.fCurFontSize));
345 pdfContext->fGraphicsState.applyGraphicsState(&paint, false);
569 return pdfContext->fGraphicsState.fSMask;
582 canvas->setMatrix(pdfContext->fGraphicsState.fCTM);
593 SkMatrix solveImageFlip = pdfContext->fGraphicsState.fCTM;
616 pdfContext->fGraphicsState.applyGraphicsState(&paint, false);
661 pdfContext->fGraphicsState.applyGraphicsState(&paint, false);
690 pdfContext->fGraphicsState.fResources = skobj->Resources(pdfContext->fPdfDoc);
693 SkTraceMatrix(pdfContext->fGraphicsState.fCTM, "Current matrix");
696 pdfContext->fGraphicsState.fCTM.preConcat(skobj->Matrix(pdfContext->fPdfDoc));
697 SkMatrix matrix = pdfContext->fGraphicsState.fCTM;
699 pdfContext->fGraphicsState.fMatrixTm = matrix;
700 pdfContext->fGraphicsState.fMatrixTlm = matrix;
704 SkTraceMatrix(pdfContext->fGraphicsState.fCTM, "Total matrix");
705 pdfContext->fGraphicsState.fContentStreamMatrix = pdfContext->fGraphicsState.fCTM;
707 canvas->setMatrix(pdfContext->fGraphicsState.fCTM);
749 pdfContext->fGraphicsState.fResources = skobj->Resources(pdfContext->fPdfDoc);
752 SkTraceMatrix(pdfContext->fGraphicsState.fContentStreamMatrix, "Current Content stream matrix");
755 pdfContext->fGraphicsState.fContentStreamMatrix.preConcat(
759 SkTraceMatrix(pdfContext->fGraphicsState.fContentStreamMatrix, "Total Content stream matrix");
761 canvas->setMatrix(pdfContext->fGraphicsState.fContentStreamMatrix);
762 pdfContext->fGraphicsState.fCTM = pdfContext->fGraphicsState.fContentStreamMatrix;
792 pdfContext->fGraphicsState.fMatrixTm.preConcat(matrix);
793 pdfContext->fGraphicsState.fMatrixTm.preScale(SkDoubleToScalar(textSize),
795 pdfContext->fGraphicsState.fMatrixTlm = pdfContext->fGraphicsState.fMatrixTm;
797 pdfContext->fGraphicsState.fCTM = pdfContext->fGraphicsState.fMatrixTm;
798 pdfContext->fGraphicsState.fCTM.preScale(SkDoubleToScalar(1), SkDoubleToScalar(-1));
800 SkTraceMatrix(pdfContext->fGraphicsState.fCTM, "Total matrix");
802 canvas->setMatrix(pdfContext->fGraphicsState.fCTM);
805 pdfContext->fGraphicsState.fCTM.mapRect(&rm);
888 pdfContext->fGraphicsState.fResources = skobj->Resources(pdfContext->fPdfDoc);
890 if (!pdfContext->fGraphicsState.fResources) {
925 pdfContext->fStateStack.push(pdfContext->fGraphicsState);
933 pdfContext->fGraphicsState = pdfContext->fStateStack.top();
977 pdfContext->fGraphicsState.fCTM.preConcat(matrix);
985 SkTraceMatrix(pdfContext->fGraphicsState.fCTM, "cm");
999 pdfContext->fGraphicsState.fTextLeading = ty;
1013 pdfContext->fGraphicsState.fMatrixTm.preConcat(matrix);
1014 pdfContext->fGraphicsState.fMatrixTlm.preConcat(matrix);
1062 matrix.postConcat(pdfContext->fGraphicsState.fCTM);
1069 pdfContext->fGraphicsState.fMatrixTm = matrix;
1070 pdfContext->fGraphicsState.fMatrixTlm = matrix;;
1081 SkPdfReal* tl = pdfContext->fPdfDoc->createReal(pdfContext->fGraphicsState.fTextLeading);
1092 if (pdfContext->fGraphicsState.fPathClosed) {
1093 pdfContext->fGraphicsState.fPath.reset();
1094 pdfContext->fGraphicsState.fPathClosed = false;
1102 pdfContext->fGraphicsState.fCurPosY = y;
1103 pdfContext->fGraphicsState.fCurPosX = x;
1105 pdfContext->fGraphicsState.fPath.moveTo(SkDoubleToScalar(pdfContext->fGraphicsState.fCurPosX),
1106 SkDoubleToScalar(pdfContext->fGraphicsState.fCurPosY));
1112 if (pdfContext->fGraphicsState.fPathClosed) {
1113 pdfContext->fGraphicsState.fPath.reset();
1114 pdfContext->fGraphicsState.fPathClosed = false;
1122 pdfContext->fGraphicsState.fCurPosY = y;
1123 pdfContext->fGraphicsState.fCurPosX = x;
1125 pdfContext->fGraphicsState.fPath.lineTo(SkDoubleToScalar(pdfContext->fGraphicsState.fCurPosX),
1126 SkDoubleToScalar(pdfContext->fGraphicsState.fCurPosY));
1132 if (pdfContext->fGraphicsState.fPathClosed) {
1133 pdfContext->fGraphicsState.fPath.reset();
1134 pdfContext->fGraphicsState.fPathClosed = false;
1146 pdfContext->fGraphicsState.fPath.cubicTo(SkDoubleToScalar(x1), SkDoubleToScalar(y1),
1150 pdfContext->fGraphicsState.fCurPosX = x3;
1151 pdfContext->fGraphicsState.fCurPosY = y3;
1157 if (pdfContext->fGraphicsState.fPathClosed) {
1158 pdfContext->fGraphicsState.fPath.reset();
1159 pdfContext->fGraphicsState.fPathClosed = false;
1169 double y1 = pdfContext->fGraphicsState.fCurPosY;
1170 double x1 = pdfContext->fGraphicsState.fCurPosX;
1172 pdfContext->fGraphicsState.fPath.cubicTo(SkDoubleToScalar(x1), SkDoubleToScalar(y1),
1176 pdfContext->fGraphicsState.fCurPosX = x3;
1177 pdfContext->fGraphicsState.fCurPosY = y3;
1183 if (pdfContext->fGraphicsState.fPathClosed) {
1184 pdfContext->fGraphicsState.fPath.reset();
1185 pdfContext->fGraphicsState.fPathClosed = false;
1195 double y2 = pdfContext->fGraphicsState.fCurPosY;
1196 double x2 = pdfContext->fGraphicsState.fCurPosX;
1198 pdfContext->fGraphicsState.fPath.cubicTo(SkDoubleToScalar(x1), SkDoubleToScalar(y1),
1202 pdfContext->fGraphicsState.fCurPosX = x3;
1203 pdfContext->fGraphicsState.fCurPosY = y3;
1209 if (pdfContext->fGraphicsState.fPathClosed) {
1210 pdfContext->fGraphicsState.fPath.reset();
1211 pdfContext->fGraphicsState.fPathClosed = false;
1221 pdfContext->fGraphicsState.fPath.addRect(SkDoubleToScalar(x),
1226 pdfContext->fGraphicsState.fCurPosX = x;
1227 pdfContext->fGraphicsState.fCurPosY = y + height;
1233 pdfContext->fGraphicsState.fPath.close();
1239 SkPath path = pdfContext->fGraphicsState.fPath;
1245 canvas->setMatrix(pdfContext->fGraphicsState.fCTM);
1254 pdfContext->fGraphicsState.applyGraphicsState(&paint, false);
1260 if (strncmp((char*)pdfContext->fGraphicsState.fNonStroking.fColorSpace.fBuffer,
1262 pdfContext->fGraphicsState.fNonStroking.fPattern != NULL) {
1275 ->mapType1PatternDictionary(pdfContext->fGraphicsState
1280 = (SkPdfType1PatternDictionary*)pdfContext->fGraphicsState
1312 pdfContext->fGraphicsState.fContentStreamMatrix.preTranslate(
1317 pdfContext->fGraphicsState.fContentStreamMatrix.preTranslate(
1320 pdfContext->fGraphicsState.fContentStreamMatrix.preTranslate(
1325 pdfContext->fGraphicsState.fContentStreamMatrix.preTranslate(
1337 pdfContext->fGraphicsState.applyGraphicsState(&paint, false);
1344 if (false && strncmp((char*)pdfContext->fGraphicsState.fNonStroking.fColorSpace.fBuffer,
1357 pdfContext->fGraphicsState.applyGraphicsState(&paint, true);
1366 pdfContext->fGraphicsState.fPath.reset();
1369 if (pdfContext->fGraphicsState.fHasClipPathToApply) {
1371 canvas->clipPath(pdfContext->fGraphicsState.fClipPath, SkRegion::kIntersect_Op, true);
1375 //pdfContext->fGraphicsState.fClipPath.reset();
1376 pdfContext->fGraphicsState.fHasClipPathToApply = false;
1422 canvas->setMatrix(pdfContext->fGraphicsState.fCTM);
1423 if (pdfContext->fGraphicsState.fHasClipPathToApply) {
1425 canvas->clipPath(pdfContext->fGraphicsState.fClipPath, SkRegion::kIntersect_Op, true);
1429 pdfContext->fGraphicsState.fHasClipPathToApply = false;
1431 pdfContext->fGraphicsState.fPathClosed = true;
1437 pdfContext->fGraphicsState.fTextBlock = true;
1438 SkMatrix matrix = pdfContext->fGraphicsState.fCTM;
1440 pdfContext->fGraphicsState.fMatrixTm = matrix;
1441 pdfContext->fGraphicsState.fMatrixTlm = matrix;
1447 if (!pdfContext->fGraphicsState.fTextBlock) {
1454 pdfContext->fGraphicsState.fTextBlock = false;
1466 if (!pdfContext->fGraphicsState.fResources->Font(pdfContext->fPdfDoc)) {
1474 = pdfContext->fGraphicsState.fResources->Font(pdfContext->fPdfDoc)->get(fontName);
1488 pdfContext->fGraphicsState.fSkFont = skfont;
1490 pdfContext->fGraphicsState.fCurFontSize = fontSize;
1513 if (!pdfContext->fGraphicsState.fTextBlock) {
1527 if (!pdfContext->fGraphicsState.fTextBlock) {
1541 if (!pdfContext->fGraphicsState.fTextBlock) {
1571 if (!pdfContext->fGraphicsState.fTextBlock) {
1610 pdfContext->fGraphicsState.fMatrixTm.preConcat(matrix);
1629 = pdfContext->fGraphicsState.fResources->ColorSpace(pdfContext->fPdfDoc);
1681 return PdfOp_CS_cs(pdfContext, canvas, &pdfContext->fGraphicsState.fStroking);
1685 return PdfOp_CS_cs(pdfContext, canvas, &pdfContext->fGraphicsState.fNonStroking);
1728 return PdfOp_SC_sc(pdfContext, canvas, &pdfContext->fGraphicsState.fStroking);
1732 return PdfOp_SC_sc(pdfContext, canvas, &pdfContext->fGraphicsState.fNonStroking);
1741 = pdfContext->fGraphicsState.fResources->Pattern(pdfContext->fPdfDoc);
1761 return PdfOp_SCN_scn(pdfContext, canvas, &pdfContext->fGraphicsState.fStroking);
1765 return PdfOp_SCN_scn(pdfContext, canvas, &pdfContext->fGraphicsState.fNonStroking);
1786 return PdfOp_G_g(pdfContext, canvas, &pdfContext->fGraphicsState.fStroking);
1790 return PdfOp_G_g(pdfContext, canvas, &pdfContext->fGraphicsState.fNonStroking);
1807 return PdfOp_RG_rg(pdfContext, canvas, &pdfContext->fGraphicsState.fStroking);
1811 return PdfOp_RG_rg(pdfContext, canvas, &pdfContext->fGraphicsState.fNonStroking);
1835 return PdfOp_K_k(pdfContext, canvas, &pdfContext->fGraphicsState.fStroking);
1839 return PdfOp_K_k(pdfContext, canvas, &pdfContext->fGraphicsState.fNonStroking);
1843 pdfContext->fGraphicsState.fClipPath = pdfContext->fGraphicsState.fPath;
1844 pdfContext->fGraphicsState.fHasClipPathToApply = true;
1850 pdfContext->fGraphicsState.fClipPath = pdfContext->fGraphicsState.fPath;
1852 pdfContext->fGraphicsState.fClipPath.setFillType(SkPath::kEvenOdd_FillType);
1853 pdfContext->fGraphicsState.fHasClipPathToApply = true;
1898 pdfContext->fGraphicsState.fNonStroking.fOpacity = ca;
1903 pdfContext->fGraphicsState.fStroking.fOpacity = CA;
1908 pdfContext->fGraphicsState.fLineWidth = lineWidth;
1913 pdfContext->fGraphicsState.fLineCap = (int)lineCap;
1918 pdfContext->fGraphicsState.fLineJoin = (int)lineJoin;
1923 pdfContext->fGraphicsState.fMiterLimit = miterLimit;
1969 pdfContext->fGraphicsState.fDashArray[i] = intervals->objAtAIndex(i)->scalarValue();
1970 total += pdfContext->fGraphicsState.fDashArray[i];
1974 pdfContext->fGraphicsState.fDashArray[1] = pdfContext->fGraphicsState.fDashArray[0];
1981 pdfContext->fGraphicsState.fDashArrayLength = cnt;
1982 pdfContext->fGraphicsState.fDashPhase = phase->scalarValue();
1983 if (pdfContext->fGraphicsState.fDashPhase == 0) {
1985 pdfContext->fGraphicsState.fDashPhase = SkDoubleToScalar(total);
2171 pdfContext->fGraphicsState.fBlendModesLength = 1;
2172 pdfContext->fGraphicsState.fBlendModes[0] = mode;
2209 pdfContext->fGraphicsState.fBlendModesLength = cnt;
2211 pdfContext->fGraphicsState.fBlendModes[i] = modes[i];
2223 pdfContext->fGraphicsState.fSoftMaskDictionary = (SkPdfSoftMaskDictionary*)sMask;
2226 pdfContext->fGraphicsState.fSMask = getImageFromObject(pdfContext, smid, true);
2236 pdfContext->fGraphicsState.fSoftMaskDictionary = NULL;
2237 pdfContext->fGraphicsState.fSMask = NULL;
2242 = pdfContext->fGraphicsState.fResources->ExtGState(pdfContext->fPdfDoc);
2246 pdfContext->fGraphicsState.fResources, pdfContext);
2258 pdfContext->fGraphicsState.fSoftMaskDictionary = NULL;
2259 pdfContext->fGraphicsState.fSMask = NULL;
2265 pdfContext->fGraphicsState.fAlphaSource = alphaSource;
2278 = pdfContext->fGraphicsState.fResources->ExtGState(pdfContext->fPdfDoc);
2282 pdfContext->fGraphicsState.fResources, pdfContext);
2379 pdfContext->fGraphicsState.fCharSpace = charSpace;
2394 pdfContext->fGraphicsState.fWordSpace = wordSpace;
2509 SkPdfDictionary* xObject = pdfContext->fGraphicsState.fResources->XObject(pdfContext->fPdfDoc);
2513 pdfContext->fGraphicsState.fResources, pdfContext);
2779 pdfContext.fGraphicsState.fResources = fPdfDoc->pageResources(page);
2821 pdfContext.fGraphicsState.fCTM = pdfContext.fOriginalMatrix;
2822 pdfContext.fGraphicsState.fContentStreamMatrix = pdfContext.fOriginalMatrix;
2823 pdfContext.fGraphicsState.fMatrixTm = pdfContext.fGraphicsState.fCTM;
2824 pdfContext.fGraphicsState.fMatrixTlm = pdfContext.fGraphicsState.fCTM;