Lines Matching refs:SkSurface
39 #include "SkSurface.h"
115 sk_sp<SkSurface> MakeOnScreenGLSurface(sk_sp<GrContext> grContext, int width, int height) {
134 sk_sp<SkSurface> surface(SkSurface::MakeFromBackendRenderTarget(grContext.get(), target,
140 sk_sp<SkSurface> MakeRenderTarget(sk_sp<GrContext> grContext, int width, int height) {
143 sk_sp<SkSurface> surface(SkSurface::MakeRenderTarget(grContext.get(),
151 sk_sp<SkSurface> MakeRenderTarget(sk_sp<GrContext> grContext, SimpleImageInfo sii) {
152 sk_sp<SkSurface> surface(SkSurface::MakeRenderTarget(grContext.get(),
579 function("MakeRenderTarget", select_overload<sk_sp<SkSurface>(sk_sp<GrContext>, int, int)>(&MakeRenderTarget));
580 function("MakeRenderTarget", select_overload<sk_sp<SkSurface>(sk_sp<GrContext>, SimpleImageInfo)>(&MakeRenderTarget));
592 size_t rowBytes)->sk_sp<SkSurface> {
595 return SkSurface::MakeRasterDirect(imageInfo, pixels, rowBytes, nullptr);
597 function("_getRasterN32PremulSurface", optional_override([](int width, int height)->sk_sp<SkSurface> {
598 return SkSurface::MakeRasterN32Premul(width, height, nullptr);
791 .function("makeSurface", optional_override([](SkCanvas& self, SimpleImageInfo sii)->sk_sp<SkSurface> {
977 class_<SkSurface>("SkSurface")
978 .smart_ptr<sk_sp<SkSurface>>("sk_sp<SkSurface>")
979 .function("_flush", select_overload<void()>(&SkSurface::flush))
980 .function("getCanvas", &SkSurface::getCanvas, allow_raw_pointers())
981 .function("height", &SkSurface::height)
982 .function("makeImageSnapshot", select_overload<sk_sp<SkImage>()>(&SkSurface::makeImageSnapshot))
983 .function("makeImageSnapshot", select_overload<sk_sp<SkImage>(const SkIRect& bounds)>(&SkSurface::makeImageSnapshot))
984 .function("makeSurface", optional_override([](SkSurface& self, SimpleImageInfo sii)->sk_sp<SkSurface> {
987 .function("width", &SkSurface::width);