Lines Matching defs:state
185 void SkPDFGraphicStackState::updateDrawingState(const SkPDFGraphicStackState::Entry& state) {
187 if (state.fShaderIndex >= 0) {
188 if (state.fShaderIndex != currentEntry()->fShaderIndex) {
189 SkPDFUtils::ApplyPattern(state.fShaderIndex, fContentStream);
190 currentEntry()->fShaderIndex = state.fShaderIndex;
193 if (state.fColor != currentEntry()->fColor ||
195 emit_pdf_color(state.fColor, fContentStream);
197 emit_pdf_color(state.fColor, fContentStream);
199 currentEntry()->fColor = state.fColor;
204 if (state.fGraphicStateIndex != currentEntry()->fGraphicStateIndex) {
205 SkPDFUtils::ApplyGraphicState(state.fGraphicStateIndex, fContentStream);
206 currentEntry()->fGraphicStateIndex = state.fGraphicStateIndex;
209 if (state.fTextScaleX) {
210 if (state.fTextScaleX != currentEntry()->fTextScaleX) {
211 SkScalar pdfScale = state.fTextScaleX * 100;
214 currentEntry()->fTextScaleX = state.fTextScaleX;