Home
last modified time | relevance | path

Searched refs:SkPDFIndirectReference (Results 1 – 25 of 52) sorted by relevance

123

/external/skia/src/pdf/
DSkPDFDocumentPriv.h71 SkPDFIndirectReference emit(const SkPDFObject&, SkPDFIndirectReference);
72 SkPDFIndirectReference emit(const SkPDFObject& o) { return this->emit(o, this->reserveRef()); } in emit()
75 void emitStream(const SkPDFDict& dict, T writeStream, SkPDFIndirectReference ref) { in emitStream()
86 SkPDFIndirectReference getPage(size_t pageIndex) const;
90 SkPDFIndirectReference reserveRef() { return SkPDFIndirectReference{fNextObjectNumber++}; } in reserveRef()
99 SkTHashMap<SkPDFImageShaderKey, SkPDFIndirectReference> fImageShaderMap;
100 SkTHashMap<SkPDFGradientShader::Key, SkPDFIndirectReference, SkPDFGradientShader::KeyHash>
102 SkTHashMap<SkBitmapKey, SkPDFIndirectReference> fPDFBitmapMap;
106 SkTHashMap<uint32_t, SkPDFIndirectReference> fFontDescriptors;
107 SkTHashMap<uint32_t, SkPDFIndirectReference> fType3FontDescriptors;
[all …]
DSkPDFDevice.h37 struct SkPDFIndirectReference;
107 void appendDestinations(SkPDFDict* dict, SkPDFIndirectReference page) const;
163 SkTHashSet<SkPDFIndirectReference> fGraphicStateResources;
164 SkTHashSet<SkPDFIndirectReference> fXObjectResources;
165 SkTHashSet<SkPDFIndirectReference> fShaderResources;
166 SkTHashSet<SkPDFIndirectReference> fFontResources;
195 SkPDFIndirectReference makeFormXObjectFromDevice(bool alpha = false);
197 void drawFormXObjectWithMask(SkPDFIndirectReference xObject,
198 SkPDFIndirectReference sMask,
210 SkPDFIndirectReference* dst);
[all …]
DSkPDFGraphicState.cpp56 SkPDFIndirectReference SkPDFGraphicState::GetGraphicStateForPaint(SkPDFDocument* doc, in GetGraphicStateForPaint()
62 if (SkPDFIndirectReference* statePtr = fillMap.find(fillKey)) { in GetGraphicStateForPaint()
69 SkPDFIndirectReference ref = doc->emit(state); in GetGraphicStateForPaint()
82 if (SkPDFIndirectReference* statePtr = sMap.find(strokeKey)) { in GetGraphicStateForPaint()
95 SkPDFIndirectReference ref = doc->emit(state); in GetGraphicStateForPaint()
103 static SkPDFIndirectReference make_invert_function(SkPDFDocument* doc) { in make_invert_function()
117 SkPDFIndirectReference SkPDFGraphicState::GetSMaskGraphicState(SkPDFIndirectReference sMask, in GetSMaskGraphicState()
132 if (doc->fInvertFunction == SkPDFIndirectReference()) { in GetSMaskGraphicState()
DSkPDFTypes.h36 struct SkPDFIndirectReference { struct
41 inline static bool operator==(SkPDFIndirectReference u, SkPDFIndirectReference v) { argument
45 inline static bool operator!=(SkPDFIndirectReference u, SkPDFIndirectReference v) {
113 void appendRef(SkPDFIndirectReference);
169 void insertRef(const char key[], SkPDFIndirectReference);
170 void insertRef(SkString, SkPDFIndirectReference);
200 SkPDFIndirectReference SkPDFStreamOut(std::unique_ptr<SkPDFDict> dict,
DSkPDFDocument.cpp84 SkPDFIndirectReference ref, in begin_indirect_object()
96 SkPDFIndirectReference infoDict, in serialize_footer()
97 SkPDFIndirectReference docCatalog, in serialize_footer()
102 SkASSERT(docCatalog != SkPDFIndirectReference()); in serialize_footer()
104 SkASSERT(infoDict != SkPDFIndirectReference()); in serialize_footer()
116 static SkPDFIndirectReference generate_page_tree( in generate_page_tree()
119 const std::vector<SkPDFIndirectReference>& pageRefs) { in generate_page_tree()
130 SkPDFIndirectReference fReservedRef; in generate_page_tree()
148 SkPDFIndirectReference parent = doc->reserveRef(); in generate_page_tree()
208 SkPDFIndirectReference SkPDFDocument::emit(const SkPDFObject& object, SkPDFIndirectReference ref){ in emit()
[all …]
DSkPDFResourceDict.cpp62 static void add_subdict(const std::vector<SkPDFIndirectReference>& resourceList, in add_subdict()
67 for (SkPDFIndirectReference ref : resourceList) { in add_subdict()
85 const std::vector<SkPDFIndirectReference>& graphicStateResources, in SkPDFMakeResourceDict()
86 const std::vector<SkPDFIndirectReference>& shaderResources, in SkPDFMakeResourceDict()
87 const std::vector<SkPDFIndirectReference>& xObjectResources, in SkPDFMakeResourceDict()
88 const std::vector<SkPDFIndirectReference>& fontResources) { in SkPDFMakeResourceDict()
DSkPDFGradientShader.cpp577 static SkPDFIndirectReference make_ps_function(std::unique_ptr<SkStreamAsset> psCode, in make_ps_function()
588 static SkPDFIndirectReference make_function_shader(SkPDFDocument* doc, in make_function_shader()
673 return SkPDFIndirectReference(); in make_function_shader()
694 return SkPDFIndirectReference(); in make_function_shader()
701 return SkPDFIndirectReference(); in make_function_shader()
710 return SkPDFIndirectReference(); in make_function_shader()
752 static SkPDFIndirectReference find_pdf_shader(SkPDFDocument* doc,
756 static std::unique_ptr<SkPDFDict> get_gradient_resource_dict(SkPDFIndirectReference functionShader, in get_gradient_resource_dict()
757 SkPDFIndirectReference gState) { in get_gradient_resource_dict()
758 std::vector<SkPDFIndirectReference> patternShaders; in get_gradient_resource_dict()
[all …]
DSkPDFBitmap.cpp70 SkPDFIndirectReference ref, in emit_image_stream()
74 SkPDFIndirectReference sMask, in emit_image_stream()
101 static void do_deflated_alpha(const SkPixmap& pm, SkPDFDocument* doc, SkPDFIndirectReference ref) { in do_deflated_alpha()
133 pm.info().dimensions(), "DeviceGray", SkPDFIndirectReference(), in do_deflated_alpha()
140 SkPDFIndirectReference ref) { in do_deflated_image()
141 SkPDFIndirectReference sMask; in do_deflated_image()
197 SkPDFIndirectReference ref) { in do_jpeg()
221 SkPDFIndirectReference(), SkToInt(data->size()), true); in do_jpeg()
251 SkPDFIndirectReference ref) { in serialize_image()
272 SkPDFIndirectReference SkPDFSerializeImage(const SkImage* img, in SkPDFSerializeImage()
[all …]
DSkPDFResourceDict.h36 const std::vector<SkPDFIndirectReference>& graphicStateResources,
37 const std::vector<SkPDFIndirectReference>& shaderResources,
38 const std::vector<SkPDFIndirectReference>& xObjectResources,
39 const std::vector<SkPDFIndirectReference>& fontResources);
DSkPDFTag.cpp80 SkPDFIndirectReference fRef;
164 SkPDFIndirectReference prepare_tag_tree_to_emit(SkPDFIndirectReference parent, in prepare_tag_tree_to_emit()
167 SkPDFIndirectReference ref = doc->reserveRef(); in prepare_tag_tree_to_emit()
191 SkPDFIndirectReference SkPDFTagTree::makeStructTreeRoot(SkPDFDocument* doc) { in makeStructTreeRoot()
193 return SkPDFIndirectReference(); in makeStructTreeRoot()
198 SkPDFIndirectReference ref = doc->reserveRef(); in makeStructTreeRoot()
DSkPDFGraphicState.h32 SkPDFIndirectReference GetGraphicStateForPaint(SkPDFDocument*, const SkPaint&);
41 SkPDFIndirectReference GetSMaskGraphicState(SkPDFIndirectReference sMask,
DSkPDFShader.cpp40 static SkPDFIndirectReference make_image_shader(SkPDFDocument* doc, in make_image_shader()
55 return SkPDFIndirectReference(); in make_image_shader()
259 static SkPDFIndirectReference make_fallback_shader(SkPDFDocument* doc, in make_fallback_shader()
284 return SkPDFIndirectReference(); in make_fallback_shader()
328 SkPDFIndirectReference SkPDFMakeShader(SkPDFDocument* doc, in SkPDFMakeShader()
339 return SkPDFIndirectReference(); in SkPDFMakeShader()
353 SkPDFIndirectReference* shaderPtr = doc->fImageShaderMap.find(key); in SkPDFMakeShader()
357 SkPDFIndirectReference pdfShader = make_image_shader(doc, key, skimg); in SkPDFMakeShader()
/external/skqp/src/pdf/
DSkPDFDocumentPriv.h71 SkPDFIndirectReference emit(const SkPDFObject&, SkPDFIndirectReference);
72 SkPDFIndirectReference emit(const SkPDFObject& o) { return this->emit(o, this->reserveRef()); } in emit()
75 void emitStream(const SkPDFDict& dict, T writeStream, SkPDFIndirectReference ref) { in emitStream()
86 SkPDFIndirectReference getPage(size_t pageIndex) const;
90 SkPDFIndirectReference reserveRef() { return SkPDFIndirectReference{fNextObjectNumber++}; } in reserveRef()
99 SkTHashMap<SkPDFImageShaderKey, SkPDFIndirectReference> fImageShaderMap;
100 SkTHashMap<SkPDFGradientShader::Key, SkPDFIndirectReference, SkPDFGradientShader::KeyHash>
102 SkTHashMap<SkBitmapKey, SkPDFIndirectReference> fPDFBitmapMap;
106 SkTHashMap<uint32_t, SkPDFIndirectReference> fFontDescriptors;
107 SkTHashMap<uint32_t, SkPDFIndirectReference> fType3FontDescriptors;
[all …]
DSkPDFDevice.h37 struct SkPDFIndirectReference;
111 void appendDestinations(SkPDFDict* dict, SkPDFIndirectReference page) const;
167 SkTHashSet<SkPDFIndirectReference> fGraphicStateResources;
168 SkTHashSet<SkPDFIndirectReference> fXObjectResources;
169 SkTHashSet<SkPDFIndirectReference> fShaderResources;
170 SkTHashSet<SkPDFIndirectReference> fFontResources;
199 SkPDFIndirectReference makeFormXObjectFromDevice(bool alpha = false);
201 void drawFormXObjectWithMask(SkPDFIndirectReference xObject,
202 SkPDFIndirectReference sMask,
214 SkPDFIndirectReference* dst);
[all …]
DSkPDFGraphicState.cpp56 SkPDFIndirectReference SkPDFGraphicState::GetGraphicStateForPaint(SkPDFDocument* doc, in GetGraphicStateForPaint()
62 if (SkPDFIndirectReference* statePtr = fillMap.find(fillKey)) { in GetGraphicStateForPaint()
69 SkPDFIndirectReference ref = doc->emit(state); in GetGraphicStateForPaint()
82 if (SkPDFIndirectReference* statePtr = sMap.find(strokeKey)) { in GetGraphicStateForPaint()
95 SkPDFIndirectReference ref = doc->emit(state); in GetGraphicStateForPaint()
103 static SkPDFIndirectReference make_invert_function(SkPDFDocument* doc) { in make_invert_function()
117 SkPDFIndirectReference SkPDFGraphicState::GetSMaskGraphicState(SkPDFIndirectReference sMask, in GetSMaskGraphicState()
132 if (doc->fInvertFunction == SkPDFIndirectReference()) { in GetSMaskGraphicState()
DSkPDFTypes.h36 struct SkPDFIndirectReference { struct
41 inline static bool operator==(SkPDFIndirectReference u, SkPDFIndirectReference v) { argument
45 inline static bool operator!=(SkPDFIndirectReference u, SkPDFIndirectReference v) {
113 void appendRef(SkPDFIndirectReference);
169 void insertRef(const char key[], SkPDFIndirectReference);
170 void insertRef(SkString, SkPDFIndirectReference);
200 SkPDFIndirectReference SkPDFStreamOut(std::unique_ptr<SkPDFDict> dict,
DSkPDFDocument.cpp84 SkPDFIndirectReference ref, in begin_indirect_object()
96 SkPDFIndirectReference infoDict, in serialize_footer()
97 SkPDFIndirectReference docCatalog, in serialize_footer()
102 SkASSERT(docCatalog != SkPDFIndirectReference()); in serialize_footer()
104 SkASSERT(infoDict != SkPDFIndirectReference()); in serialize_footer()
116 static SkPDFIndirectReference generate_page_tree( in generate_page_tree()
119 const std::vector<SkPDFIndirectReference>& pageRefs) { in generate_page_tree()
130 SkPDFIndirectReference fReservedRef; in generate_page_tree()
148 SkPDFIndirectReference parent = doc->reserveRef(); in generate_page_tree()
208 SkPDFIndirectReference SkPDFDocument::emit(const SkPDFObject& object, SkPDFIndirectReference ref){ in emit()
[all …]
DSkPDFResourceDict.cpp62 static void add_subdict(const std::vector<SkPDFIndirectReference>& resourceList, in add_subdict()
67 for (SkPDFIndirectReference ref : resourceList) { in add_subdict()
85 const std::vector<SkPDFIndirectReference>& graphicStateResources, in SkPDFMakeResourceDict()
86 const std::vector<SkPDFIndirectReference>& shaderResources, in SkPDFMakeResourceDict()
87 const std::vector<SkPDFIndirectReference>& xObjectResources, in SkPDFMakeResourceDict()
88 const std::vector<SkPDFIndirectReference>& fontResources) { in SkPDFMakeResourceDict()
DSkPDFGradientShader.cpp577 static SkPDFIndirectReference make_ps_function(std::unique_ptr<SkStreamAsset> psCode, in make_ps_function()
588 static SkPDFIndirectReference make_function_shader(SkPDFDocument* doc, in make_function_shader()
673 return SkPDFIndirectReference(); in make_function_shader()
694 return SkPDFIndirectReference(); in make_function_shader()
701 return SkPDFIndirectReference(); in make_function_shader()
710 return SkPDFIndirectReference(); in make_function_shader()
752 static SkPDFIndirectReference find_pdf_shader(SkPDFDocument* doc,
756 static std::unique_ptr<SkPDFDict> get_gradient_resource_dict(SkPDFIndirectReference functionShader, in get_gradient_resource_dict()
757 SkPDFIndirectReference gState) { in get_gradient_resource_dict()
758 std::vector<SkPDFIndirectReference> patternShaders; in get_gradient_resource_dict()
[all …]
DSkPDFBitmap.cpp70 SkPDFIndirectReference ref, in emit_image_stream()
74 SkPDFIndirectReference sMask, in emit_image_stream()
101 static void do_deflated_alpha(const SkPixmap& pm, SkPDFDocument* doc, SkPDFIndirectReference ref) { in do_deflated_alpha()
133 pm.info().dimensions(), "DeviceGray", SkPDFIndirectReference(), in do_deflated_alpha()
140 SkPDFIndirectReference ref) { in do_deflated_image()
141 SkPDFIndirectReference sMask; in do_deflated_image()
197 SkPDFIndirectReference ref) { in do_jpeg()
221 SkPDFIndirectReference(), SkToInt(data->size()), true); in do_jpeg()
251 SkPDFIndirectReference ref) { in serialize_image()
272 SkPDFIndirectReference SkPDFSerializeImage(const SkImage* img, in SkPDFSerializeImage()
[all …]
DSkPDFResourceDict.h36 const std::vector<SkPDFIndirectReference>& graphicStateResources,
37 const std::vector<SkPDFIndirectReference>& shaderResources,
38 const std::vector<SkPDFIndirectReference>& xObjectResources,
39 const std::vector<SkPDFIndirectReference>& fontResources);
DSkPDFTag.cpp80 SkPDFIndirectReference fRef;
164 SkPDFIndirectReference prepare_tag_tree_to_emit(SkPDFIndirectReference parent, in prepare_tag_tree_to_emit()
167 SkPDFIndirectReference ref = doc->reserveRef(); in prepare_tag_tree_to_emit()
191 SkPDFIndirectReference SkPDFTagTree::makeStructTreeRoot(SkPDFDocument* doc) { in makeStructTreeRoot()
193 return SkPDFIndirectReference(); in makeStructTreeRoot()
198 SkPDFIndirectReference ref = doc->reserveRef(); in makeStructTreeRoot()
DSkPDFGraphicState.h32 SkPDFIndirectReference GetGraphicStateForPaint(SkPDFDocument*, const SkPaint&);
41 SkPDFIndirectReference GetSMaskGraphicState(SkPDFIndirectReference sMask,
DSkPDFShader.cpp40 static SkPDFIndirectReference make_image_shader(SkPDFDocument* doc, in make_image_shader()
55 return SkPDFIndirectReference(); in make_image_shader()
259 static SkPDFIndirectReference make_fallback_shader(SkPDFDocument* doc, in make_fallback_shader()
284 return SkPDFIndirectReference(); in make_fallback_shader()
328 SkPDFIndirectReference SkPDFMakeShader(SkPDFDocument* doc, in SkPDFMakeShader()
339 return SkPDFIndirectReference(); in SkPDFMakeShader()
353 SkPDFIndirectReference* shaderPtr = doc->fImageShaderMap.find(key); in SkPDFMakeShader()
357 SkPDFIndirectReference pdfShader = make_image_shader(doc, key, skimg); in SkPDFMakeShader()
DSkPDFFont.h76 SkPDFIndirectReference indirectReference() const { return fIndirectReference; } in indirectReference()
117 SkPDFIndirectReference fIndirectReference;
124 SkPDFIndirectReference indirectReference);

123