Lines Matching refs:fGraphicsState
308 SkPdfFont* skfont = pdfContext->fGraphicsState.fSkFont; in DrawText()
337 if (pdfContext->fGraphicsState.fCurFontSize != 0) { in DrawText()
338 paint.setTextSize(SkDoubleToScalar(pdfContext->fGraphicsState.fCurFontSize)); in DrawText()
346 pdfContext->fGraphicsState.applyGraphicsState(&paint, false); in DrawText()
571 return pdfContext->fGraphicsState.fSMask; in getSmaskFromObject()
584 canvas->setMatrix(pdfContext->fGraphicsState.fCTM); in doXObject_Image()
595 SkMatrix solveImageFlip = pdfContext->fGraphicsState.fCTM; in doXObject_Image()
618 pdfContext->fGraphicsState.applyGraphicsState(&paint, false); in doXObject_Image()
663 pdfContext->fGraphicsState.applyGraphicsState(&paint, false); in doGroup_before()
692 pdfContext->fGraphicsState.fResources = skobj->Resources(pdfContext->fPdfDoc); in doXObject_Form()
695 SkTraceMatrix(pdfContext->fGraphicsState.fCTM, "Current matrix"); in doXObject_Form()
698 pdfContext->fGraphicsState.fCTM.preConcat(skobj->Matrix(pdfContext->fPdfDoc)); in doXObject_Form()
699 SkMatrix matrix = pdfContext->fGraphicsState.fCTM; in doXObject_Form()
701 pdfContext->fGraphicsState.fMatrixTm = matrix; in doXObject_Form()
702 pdfContext->fGraphicsState.fMatrixTlm = matrix; in doXObject_Form()
706 SkTraceMatrix(pdfContext->fGraphicsState.fCTM, "Total matrix"); in doXObject_Form()
707 pdfContext->fGraphicsState.fContentStreamMatrix = pdfContext->fGraphicsState.fCTM; in doXObject_Form()
709 canvas->setMatrix(pdfContext->fGraphicsState.fCTM); in doXObject_Form()
751 pdfContext->fGraphicsState.fResources = skobj->Resources(pdfContext->fPdfDoc); in doXObject_Pattern()
754 SkTraceMatrix(pdfContext->fGraphicsState.fContentStreamMatrix, "Current Content stream matrix"); in doXObject_Pattern()
757 pdfContext->fGraphicsState.fContentStreamMatrix.preConcat( in doXObject_Pattern()
761 SkTraceMatrix(pdfContext->fGraphicsState.fContentStreamMatrix, "Total Content stream matrix"); in doXObject_Pattern()
763 canvas->setMatrix(pdfContext->fGraphicsState.fContentStreamMatrix); in doXObject_Pattern()
764 pdfContext->fGraphicsState.fCTM = pdfContext->fGraphicsState.fContentStreamMatrix; in doXObject_Pattern()
794 pdfContext->fGraphicsState.fMatrixTm.preConcat(matrix); in doType3Char()
795 pdfContext->fGraphicsState.fMatrixTm.preScale(SkDoubleToScalar(textSize), in doType3Char()
797 pdfContext->fGraphicsState.fMatrixTlm = pdfContext->fGraphicsState.fMatrixTm; in doType3Char()
799 pdfContext->fGraphicsState.fCTM = pdfContext->fGraphicsState.fMatrixTm; in doType3Char()
800 pdfContext->fGraphicsState.fCTM.preScale(SkDoubleToScalar(1), SkDoubleToScalar(-1)); in doType3Char()
802 SkTraceMatrix(pdfContext->fGraphicsState.fCTM, "Total matrix"); in doType3Char()
804 canvas->setMatrix(pdfContext->fGraphicsState.fCTM); in doType3Char()
807 pdfContext->fGraphicsState.fCTM.mapRect(&rm); in doType3Char()
890 pdfContext->fGraphicsState.fResources = skobj->Resources(pdfContext->fPdfDoc); in doPage()
892 if (!pdfContext->fGraphicsState.fResources) { in doPage()
927 pdfContext->fStateStack.push(pdfContext->fGraphicsState); in PdfOp_q()
935 pdfContext->fGraphicsState = pdfContext->fStateStack.top(); in PdfOp_Q()
979 pdfContext->fGraphicsState.fCTM.preConcat(matrix); in PdfOp_cm()
987 SkTraceMatrix(pdfContext->fGraphicsState.fCTM, "cm"); in PdfOp_cm()
1001 pdfContext->fGraphicsState.fTextLeading = ty; in PdfOp_TL()
1015 pdfContext->fGraphicsState.fMatrixTm.preConcat(matrix); in PdfOp_Td()
1016 pdfContext->fGraphicsState.fMatrixTlm.preConcat(matrix); in PdfOp_Td()
1064 matrix.postConcat(pdfContext->fGraphicsState.fCTM); in PdfOp_Tm()
1071 pdfContext->fGraphicsState.fMatrixTm = matrix; in PdfOp_Tm()
1072 pdfContext->fGraphicsState.fMatrixTlm = matrix; in PdfOp_Tm()
1083 SkPdfReal* tl = pdfContext->fPdfDoc->createReal(pdfContext->fGraphicsState.fTextLeading); in PdfOp_T_star()
1094 if (pdfContext->fGraphicsState.fPathClosed) { in PdfOp_m()
1095 pdfContext->fGraphicsState.fPath.reset(); in PdfOp_m()
1096 pdfContext->fGraphicsState.fPathClosed = false; in PdfOp_m()
1104 pdfContext->fGraphicsState.fCurPosY = y; in PdfOp_m()
1105 pdfContext->fGraphicsState.fCurPosX = x; in PdfOp_m()
1107 pdfContext->fGraphicsState.fPath.moveTo(SkDoubleToScalar(pdfContext->fGraphicsState.fCurPosX), in PdfOp_m()
1108 SkDoubleToScalar(pdfContext->fGraphicsState.fCurPosY)); in PdfOp_m()
1114 if (pdfContext->fGraphicsState.fPathClosed) { in PdfOp_l()
1115 pdfContext->fGraphicsState.fPath.reset(); in PdfOp_l()
1116 pdfContext->fGraphicsState.fPathClosed = false; in PdfOp_l()
1124 pdfContext->fGraphicsState.fCurPosY = y; in PdfOp_l()
1125 pdfContext->fGraphicsState.fCurPosX = x; in PdfOp_l()
1127 pdfContext->fGraphicsState.fPath.lineTo(SkDoubleToScalar(pdfContext->fGraphicsState.fCurPosX), in PdfOp_l()
1128 SkDoubleToScalar(pdfContext->fGraphicsState.fCurPosY)); in PdfOp_l()
1134 if (pdfContext->fGraphicsState.fPathClosed) { in PdfOp_c()
1135 pdfContext->fGraphicsState.fPath.reset(); in PdfOp_c()
1136 pdfContext->fGraphicsState.fPathClosed = false; in PdfOp_c()
1148 pdfContext->fGraphicsState.fPath.cubicTo(SkDoubleToScalar(x1), SkDoubleToScalar(y1), in PdfOp_c()
1152 pdfContext->fGraphicsState.fCurPosX = x3; in PdfOp_c()
1153 pdfContext->fGraphicsState.fCurPosY = y3; in PdfOp_c()
1159 if (pdfContext->fGraphicsState.fPathClosed) { in PdfOp_v()
1160 pdfContext->fGraphicsState.fPath.reset(); in PdfOp_v()
1161 pdfContext->fGraphicsState.fPathClosed = false; in PdfOp_v()
1171 double y1 = pdfContext->fGraphicsState.fCurPosY; in PdfOp_v()
1172 double x1 = pdfContext->fGraphicsState.fCurPosX; in PdfOp_v()
1174 pdfContext->fGraphicsState.fPath.cubicTo(SkDoubleToScalar(x1), SkDoubleToScalar(y1), in PdfOp_v()
1178 pdfContext->fGraphicsState.fCurPosX = x3; in PdfOp_v()
1179 pdfContext->fGraphicsState.fCurPosY = y3; in PdfOp_v()
1185 if (pdfContext->fGraphicsState.fPathClosed) { in PdfOp_y()
1186 pdfContext->fGraphicsState.fPath.reset(); in PdfOp_y()
1187 pdfContext->fGraphicsState.fPathClosed = false; in PdfOp_y()
1197 double y2 = pdfContext->fGraphicsState.fCurPosY; in PdfOp_y()
1198 double x2 = pdfContext->fGraphicsState.fCurPosX; in PdfOp_y()
1200 pdfContext->fGraphicsState.fPath.cubicTo(SkDoubleToScalar(x1), SkDoubleToScalar(y1), in PdfOp_y()
1204 pdfContext->fGraphicsState.fCurPosX = x3; in PdfOp_y()
1205 pdfContext->fGraphicsState.fCurPosY = y3; in PdfOp_y()
1211 if (pdfContext->fGraphicsState.fPathClosed) { in PdfOp_re()
1212 pdfContext->fGraphicsState.fPath.reset(); in PdfOp_re()
1213 pdfContext->fGraphicsState.fPathClosed = false; in PdfOp_re()
1223 pdfContext->fGraphicsState.fPath.addRect(SkDoubleToScalar(x), in PdfOp_re()
1228 pdfContext->fGraphicsState.fCurPosX = x; in PdfOp_re()
1229 pdfContext->fGraphicsState.fCurPosY = y + height; in PdfOp_re()
1235 pdfContext->fGraphicsState.fPath.close(); in PdfOp_h()
1241 SkPath path = pdfContext->fGraphicsState.fPath; in PdfOp_fillAndStroke()
1247 canvas->setMatrix(pdfContext->fGraphicsState.fCTM); in PdfOp_fillAndStroke()
1256 pdfContext->fGraphicsState.applyGraphicsState(&paint, false); in PdfOp_fillAndStroke()
1262 if (strncmp((char*)pdfContext->fGraphicsState.fNonStroking.fColorSpace.fBuffer, in PdfOp_fillAndStroke()
1264 pdfContext->fGraphicsState.fNonStroking.fPattern != NULL) { in PdfOp_fillAndStroke()
1277 ->mapType1PatternDictionary(pdfContext->fGraphicsState in PdfOp_fillAndStroke()
1282 = (SkPdfType1PatternDictionary*)pdfContext->fGraphicsState in PdfOp_fillAndStroke()
1314 pdfContext->fGraphicsState.fContentStreamMatrix.preTranslate( in PdfOp_fillAndStroke()
1319 pdfContext->fGraphicsState.fContentStreamMatrix.preTranslate( in PdfOp_fillAndStroke()
1322 pdfContext->fGraphicsState.fContentStreamMatrix.preTranslate( in PdfOp_fillAndStroke()
1327 pdfContext->fGraphicsState.fContentStreamMatrix.preTranslate( in PdfOp_fillAndStroke()
1339 pdfContext->fGraphicsState.applyGraphicsState(&paint, false); in PdfOp_fillAndStroke()
1346 if (false && strncmp((char*)pdfContext->fGraphicsState.fNonStroking.fColorSpace.fBuffer, in PdfOp_fillAndStroke()
1359 pdfContext->fGraphicsState.applyGraphicsState(&paint, true); in PdfOp_fillAndStroke()
1368 pdfContext->fGraphicsState.fPath.reset(); in PdfOp_fillAndStroke()
1371 if (pdfContext->fGraphicsState.fHasClipPathToApply) { in PdfOp_fillAndStroke()
1373 canvas->clipPath(pdfContext->fGraphicsState.fClipPath, SkRegion::kIntersect_Op, true); in PdfOp_fillAndStroke()
1378 pdfContext->fGraphicsState.fHasClipPathToApply = false; in PdfOp_fillAndStroke()
1424 canvas->setMatrix(pdfContext->fGraphicsState.fCTM); in PdfOp_n()
1425 if (pdfContext->fGraphicsState.fHasClipPathToApply) { in PdfOp_n()
1427 canvas->clipPath(pdfContext->fGraphicsState.fClipPath, SkRegion::kIntersect_Op, true); in PdfOp_n()
1431 pdfContext->fGraphicsState.fHasClipPathToApply = false; in PdfOp_n()
1433 pdfContext->fGraphicsState.fPathClosed = true; in PdfOp_n()
1439 pdfContext->fGraphicsState.fTextBlock = true; in PdfOp_BT()
1440 SkMatrix matrix = pdfContext->fGraphicsState.fCTM; in PdfOp_BT()
1442 pdfContext->fGraphicsState.fMatrixTm = matrix; in PdfOp_BT()
1443 pdfContext->fGraphicsState.fMatrixTlm = matrix; in PdfOp_BT()
1449 if (!pdfContext->fGraphicsState.fTextBlock) { in PdfOp_ET()
1456 pdfContext->fGraphicsState.fTextBlock = false; in PdfOp_ET()
1468 if (!pdfContext->fGraphicsState.fResources->Font(pdfContext->fPdfDoc)) { in skpdfGraphicsStateApplyFontCore()
1476 = pdfContext->fGraphicsState.fResources->Font(pdfContext->fPdfDoc)->get(fontName); in skpdfGraphicsStateApplyFontCore()
1490 pdfContext->fGraphicsState.fSkFont = skfont; in skpdfGraphicsStateApplyFontCore()
1492 pdfContext->fGraphicsState.fCurFontSize = fontSize; in skpdfGraphicsStateApplyFontCore()
1515 if (!pdfContext->fGraphicsState.fTextBlock) { in PdfOp_Tj()
1529 if (!pdfContext->fGraphicsState.fTextBlock) { in PdfOp_quote()
1543 if (!pdfContext->fGraphicsState.fTextBlock) { in PdfOp_doublequote()
1573 if (!pdfContext->fGraphicsState.fTextBlock) { in PdfOp_TJ()
1612 pdfContext->fGraphicsState.fMatrixTm.preConcat(matrix); in PdfOp_TJ()
1631 = pdfContext->fGraphicsState.fResources->ColorSpace(pdfContext->fPdfDoc); in PdfOp_CS_cs()
1683 return PdfOp_CS_cs(pdfContext, canvas, &pdfContext->fGraphicsState.fStroking); in PdfOp_CS()
1687 return PdfOp_CS_cs(pdfContext, canvas, &pdfContext->fGraphicsState.fNonStroking); in PdfOp_cs()
1730 return PdfOp_SC_sc(pdfContext, canvas, &pdfContext->fGraphicsState.fStroking); in PdfOp_SC()
1734 return PdfOp_SC_sc(pdfContext, canvas, &pdfContext->fGraphicsState.fNonStroking); in PdfOp_sc()
1743 = pdfContext->fGraphicsState.fResources->Pattern(pdfContext->fPdfDoc); in PdfOp_SCN_scn()
1763 return PdfOp_SCN_scn(pdfContext, canvas, &pdfContext->fGraphicsState.fStroking); in PdfOp_SCN()
1767 return PdfOp_SCN_scn(pdfContext, canvas, &pdfContext->fGraphicsState.fNonStroking); in PdfOp_scn()
1788 return PdfOp_G_g(pdfContext, canvas, &pdfContext->fGraphicsState.fStroking); in PdfOp_G()
1792 return PdfOp_G_g(pdfContext, canvas, &pdfContext->fGraphicsState.fNonStroking); in PdfOp_g()
1809 return PdfOp_RG_rg(pdfContext, canvas, &pdfContext->fGraphicsState.fStroking); in PdfOp_RG()
1813 return PdfOp_RG_rg(pdfContext, canvas, &pdfContext->fGraphicsState.fNonStroking); in PdfOp_rg()
1837 return PdfOp_K_k(pdfContext, canvas, &pdfContext->fGraphicsState.fStroking); in PdfOp_K()
1841 return PdfOp_K_k(pdfContext, canvas, &pdfContext->fGraphicsState.fNonStroking); in PdfOp_k()
1845 pdfContext->fGraphicsState.fClipPath = pdfContext->fGraphicsState.fPath; in PdfOp_W()
1846 pdfContext->fGraphicsState.fHasClipPathToApply = true; in PdfOp_W()
1852 pdfContext->fGraphicsState.fClipPath = pdfContext->fGraphicsState.fPath; in PdfOp_W_star()
1854 pdfContext->fGraphicsState.fClipPath.setFillType(SkPath::kEvenOdd_FillType); in PdfOp_W_star()
1855 pdfContext->fGraphicsState.fHasClipPathToApply = true; in PdfOp_W_star()
1900 pdfContext->fGraphicsState.fNonStroking.fOpacity = ca; in skpdfGraphicsStateApply_ca()
1905 pdfContext->fGraphicsState.fStroking.fOpacity = CA; in skpdfGraphicsStateApply_CA()
1910 pdfContext->fGraphicsState.fLineWidth = lineWidth; in skpdfGraphicsStateApplyLW()
1915 pdfContext->fGraphicsState.fLineCap = (int)lineCap; in skpdfGraphicsStateApplyLC()
1920 pdfContext->fGraphicsState.fLineJoin = (int)lineJoin; in skpdfGraphicsStateApplyLJ()
1925 pdfContext->fGraphicsState.fMiterLimit = miterLimit; in skpdfGraphicsStateApplyML()
1971 pdfContext->fGraphicsState.fDashArray[i] = intervals->objAtAIndex(i)->scalarValue(); in skpdfGraphicsStateApplyD()
1972 total += pdfContext->fGraphicsState.fDashArray[i]; in skpdfGraphicsStateApplyD()
1976 pdfContext->fGraphicsState.fDashArray[1] = pdfContext->fGraphicsState.fDashArray[0]; in skpdfGraphicsStateApplyD()
1983 pdfContext->fGraphicsState.fDashArrayLength = cnt; in skpdfGraphicsStateApplyD()
1984 pdfContext->fGraphicsState.fDashPhase = phase->scalarValue(); in skpdfGraphicsStateApplyD()
1985 if (pdfContext->fGraphicsState.fDashPhase == 0) { in skpdfGraphicsStateApplyD()
1987 pdfContext->fGraphicsState.fDashPhase = SkDoubleToScalar(total); in skpdfGraphicsStateApplyD()
2173 pdfContext->fGraphicsState.fBlendModesLength = 1; in skpdfGraphicsStateApplyBM_name()
2174 pdfContext->fGraphicsState.fBlendModes[0] = mode; in skpdfGraphicsStateApplyBM_name()
2211 pdfContext->fGraphicsState.fBlendModesLength = cnt; in skpdfGraphicsStateApplyBM_array()
2213 pdfContext->fGraphicsState.fBlendModes[i] = modes[i]; in skpdfGraphicsStateApplyBM_array()
2225 pdfContext->fGraphicsState.fSoftMaskDictionary = (SkPdfSoftMaskDictionary*)sMask; in skpdfGraphicsStateApplySMask_dict()
2228 pdfContext->fGraphicsState.fSMask = getImageFromObject(pdfContext, smid, true); in skpdfGraphicsStateApplySMask_dict()
2238 pdfContext->fGraphicsState.fSoftMaskDictionary = NULL; in skpdfGraphicsStateApplySMask_name()
2239 pdfContext->fGraphicsState.fSMask = NULL; in skpdfGraphicsStateApplySMask_name()
2244 = pdfContext->fGraphicsState.fResources->ExtGState(pdfContext->fPdfDoc); in skpdfGraphicsStateApplySMask_name()
2248 pdfContext->fGraphicsState.fResources, pdfContext); in skpdfGraphicsStateApplySMask_name()
2260 pdfContext->fGraphicsState.fSoftMaskDictionary = NULL; in skpdfGraphicsStateApplySMask_name()
2261 pdfContext->fGraphicsState.fSMask = NULL; in skpdfGraphicsStateApplySMask_name()
2267 pdfContext->fGraphicsState.fAlphaSource = alphaSource; in skpdfGraphicsStateApplyAIS()
2280 = pdfContext->fGraphicsState.fResources->ExtGState(pdfContext->fPdfDoc); in PdfOp_gs()
2284 pdfContext->fGraphicsState.fResources, pdfContext); in PdfOp_gs()
2381 pdfContext->fGraphicsState.fCharSpace = charSpace; in PdfOp_Tc()
2396 pdfContext->fGraphicsState.fWordSpace = wordSpace; in PdfOp_Tw()
2511 SkPdfDictionary* xObject = pdfContext->fGraphicsState.fResources->XObject(pdfContext->fPdfDoc); in PdfOp_Do()
2515 pdfContext->fGraphicsState.fResources, pdfContext); in PdfOp_Do()
2781 pdfContext.fGraphicsState.fResources = fPdfDoc->pageResources(page); in renderPage()
2823 pdfContext.fGraphicsState.fCTM = pdfContext.fOriginalMatrix; in renderPage()
2824 pdfContext.fGraphicsState.fContentStreamMatrix = pdfContext.fOriginalMatrix; in renderPage()
2825 pdfContext.fGraphicsState.fMatrixTm = pdfContext.fGraphicsState.fCTM; in renderPage()
2826 pdfContext.fGraphicsState.fMatrixTlm = pdfContext.fGraphicsState.fCTM; in renderPage()