Hi,
In C++,I am trying to read a .skp file as SKPicture as below
const char* skpFilePath = "layer_0.skp";
SkFILEStream stream(skpFilePath);
sk_sp<SkPicture> skPicture =SkPicture::MakeFromStream(&stream);
canvas->drawPicture(skPicture.get());
This C++ code works fine. I want to do this in browser. I believe skia cannot run in browser without CanvasKit js binding.
But I cannot find any of these methods in Canvaskit.
I don't think there is any way to run a native C++ command in browser other than using JS bindings.