Home
last modified time | relevance | path

Searched refs:sk_surface_t (Results 1 – 7 of 7) sorted by relevance

/third_party/skia/include/c/
Dsk_surface.h29 SK_API sk_surface_t* sk_surface_new_raster(const sk_imageinfo_t*, const sk_surfaceprops_t*);
48 SK_API sk_surface_t* sk_surface_new_raster_direct(const sk_imageinfo_t*,
58 SK_API void sk_surface_unref(sk_surface_t*);
64 SK_API sk_canvas_t* sk_surface_get_canvas(sk_surface_t*);
69 SK_API sk_image_t* sk_surface_new_image_snapshot(sk_surface_t*);
Dsk_types.h218 typedef struct sk_surface_t sk_surface_t; typedef
/third_party/skia/experimental/c-api-example/
Dskia-c-example.c17 static sk_surface_t* make_surface(int32_t w, int32_t h) { in make_surface()
20 sk_surface_t* result = sk_surface_new_raster(info, NULL); in make_surface()
25 static void emit_png(const char* path, sk_surface_t* surface) { in emit_png()
78 sk_surface_t* surface = make_surface(640, 480); in main()
Dc.md37 static sk_surface_t* make_surface(int32_t w, int32_t h) {
46 static void emit_png(const char* path, sk_surface_t* surface) {
99 sk_surface_t* surface = make_surface(640, 480);
/third_party/skia/src/c/
Dsk_surface.cpp370 sk_surface_t* sk_surface_new_raster(const sk_imageinfo_t* cinfo, in sk_surface_new_raster()
379 return (sk_surface_t*)SkSurface::MakeRaster(*info, &surfProps).release(); in sk_surface_new_raster()
382 sk_surface_t* sk_surface_new_raster_direct(const sk_imageinfo_t* cinfo, void* pixels, in sk_surface_new_raster_direct()
392 … return (sk_surface_t*)SkSurface::MakeRasterDirect(*info, pixels, rowBytes, &surfProps).release(); in sk_surface_new_raster_direct()
395 void sk_surface_unref(sk_surface_t* csurf) { in sk_surface_unref()
399 sk_canvas_t* sk_surface_get_canvas(sk_surface_t* csurf) { in sk_surface_get_canvas()
404 sk_image_t* sk_surface_new_image_snapshot(sk_surface_t* csurf) { in sk_surface_new_image_snapshot()
/third_party/skia/tests/
DCTest.cpp22 sk_surface_t* surface = sk_surface_new_raster(info, nullptr); in shader_test()
66 sk_surface_t* surface = sk_surface_new_raster_direct(info, pixel, sizeof(uint32_t), in test_c()
/third_party/skia/gm/
Dcgm.c61 sk_surface_t* surf = sk_surface_new_raster(info, &surfaceProps); in sk_test_c_api()