Commit cfc36a68 authored by Linshizhi's avatar Linshizhi

skia_svg_render use white color as background.

parent 74bf1ba9
...@@ -37,6 +37,8 @@ int main(int argc, char *argv[]) { ...@@ -37,6 +37,8 @@ int main(int argc, char *argv[]) {
return 1; return 1;
} }
canvas->clear(SkColors::kWhite);
auto fDom = SkSVGDOM::MakeFromStream(svgStream); auto fDom = SkSVGDOM::MakeFromStream(svgStream);
fDom->setContainerSize(SkSize::Make(width, height)); fDom->setContainerSize(SkSize::Make(width, height));
fDom->render(canvas.get()); fDom->render(canvas.get());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment