Home
last modified time | relevance | path

Searched refs:SkDOM (Results 1 – 25 of 30) sorted by relevance

12

/external/skqp/src/xml/
DSkDOM.cpp15 bool SkXMLParser::parse(const SkDOM& dom, const SkDOMNode* node) { in parse()
22 SkDOM::AttrIter iter(dom, node); in parse()
70 SkDOM::SkDOM() : fAlloc(kMinChunkSize), fRoot(nullptr) {} in SkDOM() function in SkDOM
72 SkDOM::~SkDOM() {} in ~SkDOM()
74 const SkDOM::Node* SkDOM::getRootNode() const { in getRootNode()
78 const SkDOM::Node* SkDOM::getFirstChild(const Node* node, const char name[]) const { in getFirstChild()
92 const SkDOM::Node* SkDOM::getNextSibling(const Node* node, const char name[]) const { in getNextSibling()
105 SkDOM::Type SkDOM::getType(const Node* node) const { in getType()
110 const char* SkDOM::getName(const Node* node) const { in getName()
115 const char* SkDOM::findAttr(const Node* node, const char name[]) const { in findAttr()
[all …]
DSkDOM.h24 class SkDOM : public SkNoncopyable {
26 SkDOM();
27 ~SkDOM();
35 const Node* copy(const SkDOM& dom, const Node* node);
80 AttrIter(const SkDOM&, const Node*);
DSkXMLWriter.cpp152 static void write_dom(const SkDOM& dom, const SkDOM::Node* node, SkXMLWriter* w, bool skipRoot) { in write_dom()
155 if (dom.getType(node) == SkDOM::kText_Type) { in write_dom()
163 SkDOM::AttrIter iter(dom, node); in write_dom()
182 void SkXMLWriter::writeDOM(const SkDOM& dom, const SkDOM::Node* node, bool skipRoot) { in writeDOM()
DSkXMLParser.h17 class SkDOM; variable
63 bool parse(const SkDOM&, const SkDOMNode*);
DSkXMLWriter.h32 void writeDOM(const SkDOM&, const SkDOM::Node*, bool skipRoot);
/external/skia/src/xml/
DSkDOM.cpp15 bool SkXMLParser::parse(const SkDOM& dom, const SkDOMNode* node) { in parse()
22 SkDOM::AttrIter iter(dom, node); in parse()
70 SkDOM::SkDOM() : fAlloc(kMinChunkSize), fRoot(nullptr) {} in SkDOM() function in SkDOM
72 SkDOM::~SkDOM() {} in ~SkDOM()
74 const SkDOM::Node* SkDOM::getRootNode() const { in getRootNode()
78 const SkDOM::Node* SkDOM::getFirstChild(const Node* node, const char name[]) const { in getFirstChild()
92 const SkDOM::Node* SkDOM::getNextSibling(const Node* node, const char name[]) const { in getNextSibling()
105 SkDOM::Type SkDOM::getType(const Node* node) const { in getType()
110 const char* SkDOM::getName(const Node* node) const { in getName()
115 const char* SkDOM::findAttr(const Node* node, const char name[]) const { in findAttr()
[all …]
DSkDOM.h24 class SkDOM : public SkNoncopyable {
26 SkDOM();
27 ~SkDOM();
35 const Node* copy(const SkDOM& dom, const Node* node);
80 AttrIter(const SkDOM&, const Node*);
DSkXMLWriter.cpp152 static void write_dom(const SkDOM& dom, const SkDOM::Node* node, SkXMLWriter* w, bool skipRoot) { in write_dom()
155 if (dom.getType(node) == SkDOM::kText_Type) { in write_dom()
163 SkDOM::AttrIter iter(dom, node); in write_dom()
182 void SkXMLWriter::writeDOM(const SkDOM& dom, const SkDOM::Node* node, bool skipRoot) { in writeDOM()
DSkXMLParser.h17 class SkDOM; variable
63 bool parse(const SkDOM&, const SkDOMNode*);
DSkXMLWriter.h32 void writeDOM(const SkDOM&, const SkDOM::Node*, bool skipRoot);
/external/skia/tests/
DSVGDeviceTest.cpp37 static std::unique_ptr<SkCanvas> MakeDOMCanvas(SkDOM* dom) { in MakeDOMCanvas()
51 const SkDOM& dom,
52 const SkDOM::Node* root,
61 const SkDOM::Node* textElem = dom.getFirstChild(root, "text");
66 REPORTER_ASSERT(reporter, dom.getType(textElem) == SkDOM::kElement_Type);
68 const SkDOM::Node* textNode= dom.getFirstChild(textElem);
71 REPORTER_ASSERT(reporter, dom.getType(textNode) == SkDOM::kText_Type);
123 SkDOM dom;
197 bool FindImageShaderNodes(skiatest::Reporter* reporter, const SkDOM* dom, const SkDOM::Node* root, in FindImageShaderNodes()
198 const SkDOM::Node** patternOut, const SkDOM::Node** imageOut, in FindImageShaderNodes()
[all …]
DSkDOMTest.cpp15 static const SkDOM::Node* check_node(skiatest::Reporter* r, const SkDOM& dom, in check_node()
16 const SkDOM::Node* node, const char* expectedName, in check_node()
17 SkDOM::Type expectedType) { in check_node()
42 SkDOM dom; in DEF_TEST()
45 const SkDOM::Node* root = dom.build(docStream); in DEF_TEST()
60 "elem1", SkDOM::kElement_Type); in DEF_TEST()
62 "elem2", SkDOM::kElement_Type); in DEF_TEST()
64 "elem3", SkDOM::kElement_Type); in DEF_TEST()
67 "subelem1", SkDOM::kElement_Type); in DEF_TEST()
70 "Some text.", SkDOM::kText_Type); in DEF_TEST()
[all …]
/external/skqp/tests/
DSkDOMTest.cpp15 static const SkDOM::Node* check_node(skiatest::Reporter* r, const SkDOM& dom, in check_node()
16 const SkDOM::Node* node, const char* expectedName, in check_node()
17 SkDOM::Type expectedType) { in check_node()
42 SkDOM dom; in DEF_TEST()
45 const SkDOM::Node* root = dom.build(docStream); in DEF_TEST()
60 "elem1", SkDOM::kElement_Type); in DEF_TEST()
62 "elem2", SkDOM::kElement_Type); in DEF_TEST()
64 "elem3", SkDOM::kElement_Type); in DEF_TEST()
67 "subelem1", SkDOM::kElement_Type); in DEF_TEST()
70 "Some text.", SkDOM::kText_Type); in DEF_TEST()
[all …]
DSVGDeviceTest.cpp43 const SkDOM& dom,
44 const SkDOM::Node* root,
53 const SkDOM::Node* textElem = dom.getFirstChild(root, "text");
58 REPORTER_ASSERT(reporter, dom.getType(textElem) == SkDOM::kElement_Type);
60 const SkDOM::Node* textNode= dom.getFirstChild(textElem);
63 REPORTER_ASSERT(reporter, dom.getType(textNode) == SkDOM::kText_Type);
115 SkDOM dom;
191 bool FindImageShaderNodes(skiatest::Reporter* reporter, const SkDOM* dom, const SkDOM::Node* root, in FindImageShaderNodes()
192 const SkDOM::Node** patternOut, const SkDOM::Node** imageOut, in FindImageShaderNodes()
193 const SkDOM::Node** rectOut) { in FindImageShaderNodes()
[all …]
/external/skia/experimental/svg/model/
DSkSVGDOM.cpp402 void parse_node_attributes(const SkDOM& xmlDom, const SkDOM::Node* xmlNode, in parse_node_attributes()
405 SkDOM::AttrIter attrIter(xmlDom, xmlNode); in parse_node_attributes()
416 sk_sp<SkSVGNode> construct_svg_node(const SkDOM& dom, const ConstructionContext& ctx, in construct_svg_node()
417 const SkDOM::Node* xmlNode) { in construct_svg_node()
419 const SkDOM::Type elemType = dom.getType(xmlNode); in construct_svg_node()
421 if (elemType == SkDOM::kText_Type) { in construct_svg_node()
427 SkASSERT(elemType == SkDOM::kElement_Type); in construct_svg_node()
461 sk_sp<SkSVGDOM> SkSVGDOM::MakeFromDOM(const SkDOM& xmlDom) { in MakeFromDOM()
474 SkDOM xmlDom; in MakeFromStream()
DSkSVGDOM.h17 class SkDOM; variable
26 static sk_sp<SkSVGDOM> MakeFromDOM(const SkDOM&);
/external/skqp/experimental/svg/model/
DSkSVGDOM.cpp402 void parse_node_attributes(const SkDOM& xmlDom, const SkDOM::Node* xmlNode, in parse_node_attributes()
405 SkDOM::AttrIter attrIter(xmlDom, xmlNode); in parse_node_attributes()
416 sk_sp<SkSVGNode> construct_svg_node(const SkDOM& dom, const ConstructionContext& ctx, in construct_svg_node()
417 const SkDOM::Node* xmlNode) { in construct_svg_node()
419 const SkDOM::Type elemType = dom.getType(xmlNode); in construct_svg_node()
421 if (elemType == SkDOM::kText_Type) { in construct_svg_node()
427 SkASSERT(elemType == SkDOM::kElement_Type); in construct_svg_node()
461 sk_sp<SkSVGDOM> SkSVGDOM::MakeFromDOM(const SkDOM& xmlDom) { in MakeFromDOM()
474 SkDOM xmlDom; in MakeFromStream()
DSkSVGDOM.h17 class SkDOM; variable
26 static sk_sp<SkSVGDOM> MakeFromDOM(const SkDOM&);
/external/skqp/samplecode/
DSampleSVGFile.cpp36 SkDOM xmlDom; in onOnceBeforeDraw()
DSampleCowboy.cpp51 SkDOM xmlDom; in onOnceBeforeDraw()
/external/skia/samplecode/
DSampleSVGFile.cpp36 SkDOM xmlDom; in onOnceBeforeDraw()
DSampleCowboy.cpp51 SkDOM xmlDom; in onOnceBeforeDraw()
/external/skia/tools/viewer/
DBisectSlide.cpp31 SkDOM xml; in Create()
/external/skqp/tools/viewer/
DBisectSlide.cpp31 SkDOM xml; in Create()
/external/skqp/tools/skpbench/
Dskpbench.cpp514 SkDOM xml; in create_skp_from_svg()

12