Lines Matching defs:surface
110 void drawTo(SkSurface* surface, int32_t index) {
118 auto* canvas = surface->getCanvas();
122 fLayerManager->drawLayerEventTo(surface, fInspectedLayer, fp);
125 frames[fp]->drawTo(surface->getCanvas(), index);
127 surface->flush();
131 void draw(SkSurface* surface) {
132 auto* canvas = surface->getCanvas();
134 frames[fp]->draw(surface->getCanvas());
135 surface->getCanvas()->flush();
216 std::string jsonCommandList(sk_sp<SkSurface> surface) {
220 visibleCanvas()->toJSON(writer, udm, surface->getCanvas());
334 int findCommandByPixel(SkSurface* surface, int x, int y, int commandIndex) {
336 SkColor finalColor = evaluateCommandColor(surface, commandIndex, x, y);
343 auto c = evaluateCommandColor(surface, command, x, y);
351 drawTo(surface, commandIndex);
358 // Has side effect of flushing to surface.
360 SkColor evaluateCommandColor(SkSurface* surface, int command, int x, int y) {
361 drawTo(surface, command);
366 surface->readPixels(pixmap, x, y);
511 sk_sp<SkSurface> surface(SkSurface::MakeFromBackendRenderTarget(dContext.get(), target,
514 return surface;
520 sk_sp<SkSurface> surface(SkSurface::MakeRenderTarget(dContext.get(),
525 return surface;
529 sk_sp<SkSurface> surface(SkSurface::MakeRenderTarget(dContext.get(),
534 return surface;
592 // Symbols needed by cpu.js to perform surface creation and flushing.
610 SkDebugf("Made raster direct surface.\n");