Lines Matching refs:SkSurface

3  * to an SkSurface with annotation, and detailed playback controls. It holds as many DebugCanvases
16 #include "include/core/SkSurface.h"
110 void drawTo(SkSurface* surface, int32_t index) {
131 void draw(SkSurface* surface) {
216 std::string jsonCommandList(sk_sp<SkSurface> surface) {
334 int findCommandByPixel(SkSurface* surface, int x, int y, int commandIndex) {
360 SkColor evaluateCommandColor(SkSurface* surface, int command, int x, int y) {
492 sk_sp<SkSurface> MakeOnScreenGLSurface(sk_sp<GrDirectContext> dContext, int width, int height) {
511 sk_sp<SkSurface> surface(SkSurface::MakeFromBackendRenderTarget(dContext.get(), target,
517 sk_sp<SkSurface> MakeRenderTarget(sk_sp<GrDirectContext> dContext, int width, int height) {
520 sk_sp<SkSurface> surface(SkSurface::MakeRenderTarget(dContext.get(),
528 sk_sp<SkSurface> MakeRenderTarget(sk_sp<GrDirectContext> dContext, SimpleImageInfo sii) {
529 sk_sp<SkSurface> surface(SkSurface::MakeRenderTarget(dContext.get(),
607 size_t rowBytes)->sk_sp<SkSurface> {
611 return SkSurface::MakeRasterDirect(imageInfo, pixels, rowBytes, nullptr);
613 class_<SkSurface>("SkSurface")
614 .smart_ptr<sk_sp<SkSurface>>("sk_sp<SkSurface>")
615 .function("width", &SkSurface::width)
616 .function("height", &SkSurface::height)
617 .function("_flush", optional_override([](SkSurface& self) {
620 .function("clear", optional_override([](SkSurface& self, JSColor color)->void {
623 .function("getCanvas", &SkSurface::getCanvas, allow_raw_pointers());
639 function("MakeRenderTarget", select_overload<sk_sp<SkSurface>(
641 function("MakeRenderTarget", select_overload<sk_sp<SkSurface>(