Lines Matching refs:surface

45     SwSurface* surface = nullptr;  member
154 … if (!shapeGenFillColors(&shape, fill, transform, surface, opacity, ctable)) goto err; in run()
168 … if (!shapeGenStrokeFillColors(&shape, fill, transform, surface, opacity, ctable)) goto err; in run()
222 rasterConvertCS(source, surface->cs); in run()
274 static void _renderFill(SwShapeTask* task, SwSurface* surface, uint8_t opacity) in _renderFill() argument
278 rasterGradientShape(surface, &task->shape, fill, opacity); in _renderFill()
282 if (a > 0) rasterShape(surface, &task->shape, r, g, b, a); in _renderFill()
286 static void _renderStroke(SwShapeTask* task, SwSurface* surface, uint8_t opacity) in _renderStroke() argument
290 rasterGradientStroke(surface, &task->shape, strokeFill, opacity); in _renderStroke()
294 if (a > 0) rasterStroke(surface, &task->shape, r, g, b, a); in _renderStroke()
307 delete(surface); in ~SwRenderer()
331 if (surface) { in clear()
333 vport.w = surface->w; in clear()
334 vport.h = surface->h; in clear()
366 if (!surface) surface = new SwSurface; in target()
368 surface->data = data; in target()
369 surface->stride = stride; in target()
370 surface->w = w; in target()
371 surface->h = h; in target()
372 surface->cs = cs; in target()
373 surface->channelSize = CHANNEL_SIZE(cs); in target()
374 surface->premultiplied = true; in target()
376 return rasterCompositor(surface); in target()
401 if (surface->cs == ColorSpace::ABGR8888S || surface->cs == ColorSpace::ARGB8888S) { in postRender()
402 rasterUnpremultiply(surface); in postRender()
422 return rasterImage(surface, &task->image, task->transform, task->bbox, task->opacity); in renderImage()
437 _renderStroke(task, surface, task->opacity); in renderShape()
438 _renderFill(task, surface, task->opacity); in renderShape()
440 _renderFill(task, surface, task->opacity); in renderShape()
441 _renderStroke(task, surface, task->opacity); in renderShape()
450 if (surface->blendMethod == method) return true; in blend()
451 surface->blendMethod = method; in blend()
455 surface->blender = nullptr; in blend()
458 surface->blender = opBlendMultiply; in blend()
461 surface->blender = opBlendScreen; in blend()
464 surface->blender = opBlendOverlay; in blend()
467 surface->blender = opBlendDarken; in blend()
470 surface->blender = opBlendLighten; in blend()
473 surface->blender = opBlendColorDodge; in blend()
476 surface->blender = opBlendColorBurn; in blend()
479 surface->blender = opBlendHardLight; in blend()
482 surface->blender = opBlendSoftLight; in blend()
485 surface->blender = opBlendDifference; in blend()
488 surface->blender = opBlendExclusion; in blend()
491 surface->blender = opBlendAdd; in blend()
495 surface->blender = nullptr; in blend()
518 surface = p->recoverSfc; in beginComposite()
519 surface->compositor = p; in beginComposite()
548 return surface; in mainSurface()
567 cmp = new SwSurface(surface); in request()
569 cmp->compositor->image.data = (pixel_t*)malloc(channelSize * surface->stride * surface->h); in request()
570 cmp->compositor->image.w = surface->w; in request()
571 cmp->compositor->image.h = surface->h; in request()
572 cmp->compositor->image.stride = surface->stride; in request()
595 auto sw = static_cast<int32_t>(surface->w); in target()
596 auto sh = static_cast<int32_t>(surface->h); in target()
609 cmp->compositor->recoverSfc = surface; in target()
610 cmp->compositor->recoverCmp = surface->compositor; in target()
619 auto color = (surface->blender && !surface->compositor) ? 0x00ffffff : 0x00000000; in target()
623 surface = cmp; in target()
637 surface = p->recoverSfc; in endComposite()
638 surface->compositor = p->recoverCmp; in endComposite()
643 return rasterImage(surface, &p->image, m, p->bbox, p->opacity); in endComposite()
662 auto& buffer = request(surface->channelSize)->compositor->image; in effect()
673 if (surface) return surface->cs; in colorSpace()
692 if (!surface) return task; in prepareCommon()
710 task->surface = surface; in prepareCommon()
715 …task->bbox.max.x = std::min(static_cast<SwCoord>(surface->w), static_cast<SwCoord>(vport.x + vport… in prepareCommon()
716 …task->bbox.max.y = std::min(static_cast<SwCoord>(surface->h), static_cast<SwCoord>(vport.y + vport… in prepareCommon()
729 RenderData SwRenderer::prepare(RenderSurface* surface, RenderData data, const Matrix& transform, Ar… in prepare() argument
736 task->source = surface; in prepare()