Lines Matching +full:cap +full:- +full:std
4 * Use of this source code is governed by a BSD-style license that can be
24 static int to_stroke_cap(uint8_t cap) { in to_stroke_cap() argument
25 // PDF32000.book section 8.4.3.3 "Line Cap Style" in to_stroke_cap()
26 switch ((SkPaint::Cap)cap) { in to_stroke_cap()
63 auto& fillMap = doc->fFillGSMap; in GetGraphicStateForPaint()
71 SkPDFIndirectReference ref = doc->emit(state); in GetGraphicStateForPaint()
83 auto& sMap = doc->fStrokeGSMap; in GetGraphicStateForPaint()
97 SkPDFIndirectReference ref = doc->emit(state); in GetGraphicStateForPaint()
112 std::unique_ptr<SkPDFDict> dict = SkPDFMakeDict(); in make_invert_function()
113 dict->insertInt("FunctionType", 4); in make_invert_function()
114 dict->insertObject("Domain", SkPDFMakeArray(0, 1)); in make_invert_function()
115 dict->insertObject("Range", SkPDFMakeArray(0, 1)); in make_invert_function()
116 return SkPDFStreamOut(std::move(dict), SkMemoryStream::Make(std::move(invertFunction)), doc); in make_invert_function()
127 sMaskDict->insertName("S", "Alpha"); in GetSMaskGraphicState()
129 sMaskDict->insertName("S", "Luminosity"); in GetSMaskGraphicState()
131 sMaskDict->insertRef("G", sMask); in GetSMaskGraphicState()
134 if (doc->fInvertFunction == SkPDFIndirectReference()) { in GetSMaskGraphicState()
135 doc->fInvertFunction = make_invert_function(doc); in GetSMaskGraphicState()
137 sMaskDict->insertRef("TR", doc->fInvertFunction); in GetSMaskGraphicState()
140 result.insertObject("SMask", std::move(sMaskDict)); in GetSMaskGraphicState()
141 return doc->emit(result); in GetSMaskGraphicState()