Lines Matching refs:SkSurface
110 void drawTo(SkSurface* surface, int32_t index) { in drawTo()
131 void draw(SkSurface* surface) { in draw()
216 std::string jsonCommandList(sk_sp<SkSurface> surface) { in jsonCommandList()
334 int findCommandByPixel(SkSurface* surface, int x, int y, int commandIndex) { in findCommandByPixel()
360 SkColor evaluateCommandColor(SkSurface* surface, int command, int x, int y) { in evaluateCommandColor()
492 sk_sp<SkSurface> MakeOnScreenGLSurface(sk_sp<GrDirectContext> dContext, int width, int height) { in MakeOnScreenGLSurface()
511 sk_sp<SkSurface> surface(SkSurface::MakeFromBackendRenderTarget(dContext.get(), target, in MakeOnScreenGLSurface()
517 sk_sp<SkSurface> MakeRenderTarget(sk_sp<GrDirectContext> dContext, int width, int height) { in MakeRenderTarget()
520 sk_sp<SkSurface> surface(SkSurface::MakeRenderTarget(dContext.get(), in MakeRenderTarget()
528 sk_sp<SkSurface> MakeRenderTarget(sk_sp<GrDirectContext> dContext, SimpleImageInfo sii) { in MakeRenderTarget()
529 sk_sp<SkSurface> surface(SkSurface::MakeRenderTarget(dContext.get(), in MakeRenderTarget()
607 size_t rowBytes)->sk_sp<SkSurface> { in EMSCRIPTEN_BINDINGS()
611 return SkSurface::MakeRasterDirect(imageInfo, pixels, rowBytes, nullptr); in EMSCRIPTEN_BINDINGS()
613 class_<SkSurface>("SkSurface") in EMSCRIPTEN_BINDINGS()
614 .smart_ptr<sk_sp<SkSurface>>("sk_sp<SkSurface>") in EMSCRIPTEN_BINDINGS()
615 .function("width", &SkSurface::width) in EMSCRIPTEN_BINDINGS()
616 .function("height", &SkSurface::height) in EMSCRIPTEN_BINDINGS()
617 .function("_flush", optional_override([](SkSurface& self) { in EMSCRIPTEN_BINDINGS()
620 .function("clear", optional_override([](SkSurface& self, JSColor color)->void { in EMSCRIPTEN_BINDINGS()
623 .function("getCanvas", &SkSurface::getCanvas, allow_raw_pointers()); in EMSCRIPTEN_BINDINGS()
639 function("MakeRenderTarget", select_overload<sk_sp<SkSurface>( in EMSCRIPTEN_BINDINGS()
641 function("MakeRenderTarget", select_overload<sk_sp<SkSurface>( in EMSCRIPTEN_BINDINGS()