Lines Matching refs:renderer
46 void BakedOpDispatcher::onMergedBitmapOps(BakedOpRenderer& renderer, in onMergedBitmapOps() argument
52 Texture* texture = renderer.caches().textureCache.get(bitmap); in onMergedBitmapOps()
69 renderer.dirtyRenderTarget(opBounds); in onMergedBitmapOps()
75 GlopBuilder(renderer.renderState(), renderer.caches(), &glop) in onMergedBitmapOps()
84 renderer.renderGlop(nullptr, clip, glop); in onMergedBitmapOps()
87 void BakedOpDispatcher::onMergedPatchOps(BakedOpRenderer& renderer, in onMergedPatchOps() argument
101 const Patch* opMesh = renderer.caches().patchCache.get( in onMergedPatchOps()
107 const bool dirtyRenderTarget = renderer.offscreenRenderTarget(); in onMergedPatchOps()
122 const Patch* opMesh = renderer.caches().patchCache.get( in onMergedPatchOps()
151 renderer.dirtyRenderTarget(Rect(tx, ty, in onMergedPatchOps()
159 renderer.dirtyRenderTarget(Rect(x, y, in onMergedPatchOps()
169 Texture* texture = renderer.caches().textureCache.get(firstOp.bitmap); in onMergedPatchOps()
179 GlopBuilder(renderer.renderState(), renderer.caches(), &glop) in onMergedPatchOps()
188 renderer.renderGlop(nullptr, clip, glop); in onMergedPatchOps()
191 static void renderTextShadow(BakedOpRenderer& renderer, in renderTextShadow() argument
195 FontRenderer& fontRenderer = renderer.caches().fontRenderer.getFontRenderer(); in renderTextShadow()
197 renderer.caches().textureState().activateTexture(0); in renderTextShadow()
204 renderer.caches().dropShadowCache.setFontRenderer(fontRenderer); in renderTextShadow()
205 ShadowTexture* texture = renderer.caches().dropShadowCache.get( in renderTextShadow()
216 GlopBuilder(renderer.renderState(), renderer.caches(), &glop) in renderTextShadow()
251 renderer.renderGlop(&shadowBounds, clipState, glop); in renderTextShadow()
259 static void renderText(BakedOpRenderer& renderer, const TextOp& op, const BakedOpState& state, in renderText() argument
261 FontRenderer& fontRenderer = renderer.caches().fontRenderer.getFontRenderer(); in renderText()
297 TextDrawFunctor functor(&renderer, &state, renderClip, in renderText()
301 bool mustDirtyRenderTarget = renderer.offscreenRenderTarget(); in renderText()
310 renderer.dirtyRenderTarget(layerBounds); in renderText()
314 void BakedOpDispatcher::onMergedTextOps(BakedOpRenderer& renderer, in onMergedTextOps() argument
319 renderTextShadow(renderer, op, state); in onMergedTextOps()
329 renderText(renderer, op, state, clip, renderType); in onMergedTextOps()
340 static void renderVertexBuffer(BakedOpRenderer& renderer, const BakedOpState& state, in renderVertexBuffer() argument
349 GlopBuilder(renderer.renderState(), renderer.caches(), &glop) in renderVertexBuffer()
356 renderer.renderGlop(state, glop); in renderVertexBuffer()
360 static void renderConvexPath(BakedOpRenderer& renderer, const BakedOpState& state, in renderConvexPath() argument
365 renderVertexBuffer(renderer, state, vertexBuffer, 0.0f, 0.0f, paint, 0); in renderConvexPath()
368 static void renderPathTexture(BakedOpRenderer& renderer, const BakedOpState& state, in renderPathTexture() argument
374 GlopBuilder(renderer.renderState(), renderer.caches(), &glop) in renderPathTexture()
381 renderer.renderGlop(state, glop); in renderPathTexture()
393 void BakedOpDispatcher::onArcOp(BakedOpRenderer& renderer, const ArcOp& op, const BakedOpState& sta… in onArcOp() argument
398 PathTexture* texture = renderer.caches().pathCache.getArc( in onArcOp()
403 renderPathTexture(renderer, state, op.unmappedBounds.left, op.unmappedBounds.top, in onArcOp()
416 renderConvexPath(renderer, state, path, *(op.paint)); in onArcOp()
420 void BakedOpDispatcher::onBitmapOp(BakedOpRenderer& renderer, const BitmapOp& op, const BakedOpStat… in onBitmapOp() argument
421 Texture* texture = renderer.getTexture(op.bitmap); in onBitmapOp()
428 GlopBuilder(renderer.renderState(), renderer.caches(), &glop) in onBitmapOp()
435 renderer.renderGlop(state, glop); in onBitmapOp()
438 void BakedOpDispatcher::onBitmapMeshOp(BakedOpRenderer& renderer, const BitmapMeshOp& op, const Bak… in onBitmapMeshOp() argument
439 Texture* texture = renderer.caches().textureCache.get(op.bitmap); in onBitmapMeshOp()
494 GlopBuilder(renderer.renderState(), renderer.caches(), &glop) in onBitmapMeshOp()
501 renderer.renderGlop(state, glop); in onBitmapMeshOp()
504 void BakedOpDispatcher::onBitmapRectOp(BakedOpRenderer& renderer, const BitmapRectOp& op, const Bak… in onBitmapRectOp() argument
505 Texture* texture = renderer.getTexture(op.bitmap); in onBitmapRectOp()
519 GlopBuilder(renderer.renderState(), renderer.caches(), &glop) in onBitmapRectOp()
526 renderer.renderGlop(state, glop); in onBitmapRectOp()
529 void BakedOpDispatcher::onColorOp(BakedOpRenderer& renderer, const ColorOp& op, const BakedOpState&… in onColorOp() argument
535 GlopBuilder(renderer.renderState(), renderer.caches(), &glop) in onColorOp()
542 renderer.renderGlop(state, glop); in onColorOp()
545 void BakedOpDispatcher::onFunctorOp(BakedOpRenderer& renderer, const FunctorOp& op, const BakedOpSt… in onFunctorOp() argument
546 renderer.renderFunctor(op, state); in onFunctorOp()
549 void BakedOpDispatcher::onLinesOp(BakedOpRenderer& renderer, const LinesOp& op, const BakedOpState&… in onLinesOp() argument
554 renderVertexBuffer(renderer, state, buffer, 0, 0, *(op.paint), displayFlags); in onLinesOp()
557 void BakedOpDispatcher::onOvalOp(BakedOpRenderer& renderer, const OvalOp& op, const BakedOpState& s… in onOvalOp() argument
559 PathTexture* texture = renderer.caches().pathCache.getOval( in onOvalOp()
563 renderPathTexture(renderer, state, op.unmappedBounds.left, op.unmappedBounds.top, in onOvalOp()
576 renderConvexPath(renderer, state, path, *(op.paint)); in onOvalOp()
580 void BakedOpDispatcher::onPatchOp(BakedOpRenderer& renderer, const PatchOp& op, const BakedOpState&… in onPatchOp() argument
588 const Patch* mesh = renderer.caches().patchCache.get( in onPatchOp()
592 Texture* texture = renderer.caches().textureCache.get(op.bitmap); in onPatchOp()
596 GlopBuilder(renderer.renderState(), renderer.caches(), &glop) in onPatchOp()
604 renderer.renderGlop(state, glop); in onPatchOp()
608 void BakedOpDispatcher::onPathOp(BakedOpRenderer& renderer, const PathOp& op, const BakedOpState& s… in onPathOp() argument
609 PathTexture* texture = renderer.caches().pathCache.get(op.path, op.paint); in onPathOp()
614 renderPathTexture(renderer, state, 0, 0, *texture, *(op.paint)); in onPathOp()
618 void BakedOpDispatcher::onPointsOp(BakedOpRenderer& renderer, const PointsOp& op, const BakedOpStat… in onPointsOp() argument
623 renderVertexBuffer(renderer, state, buffer, 0, 0, *(op.paint), displayFlags); in onPointsOp()
629 void BakedOpDispatcher::onRectOp(BakedOpRenderer& renderer, const RectOp& op, const BakedOpState& s… in onRectOp() argument
636 PathTexture* texture = renderer.caches().pathCache.getRect( in onRectOp()
640 renderPathTexture(renderer, state, op.unmappedBounds.left, op.unmappedBounds.top, in onRectOp()
646 renderConvexPath(renderer, state, path, *(op.paint)); in onRectOp()
652 renderConvexPath(renderer, state, path, *(op.paint)); in onRectOp()
656 GlopBuilder(renderer.renderState(), renderer.caches(), &glop) in onRectOp()
663 renderer.renderGlop(state, glop); in onRectOp()
668 void BakedOpDispatcher::onRoundRectOp(BakedOpRenderer& renderer, const RoundRectOp& op, const Baked… in onRoundRectOp() argument
670 PathTexture* texture = renderer.caches().pathCache.getRoundRect( in onRoundRectOp()
675 renderPathTexture(renderer, state, op.unmappedBounds.left, op.unmappedBounds.top, in onRoundRectOp()
679 const VertexBuffer* buffer = renderer.caches().tessellationCache.getRoundRect( in onRoundRectOp()
682 renderVertexBuffer(renderer, state, *buffer, in onRoundRectOp()
687 static void renderShadow(BakedOpRenderer& renderer, const BakedOpState& state, float casterAlpha, in renderShadow() argument
693 uint8_t ambientShadowAlpha = renderer.getLightInfo().ambientShadowAlpha; in renderShadow()
699 renderVertexBuffer(renderer, state, *ambientShadowVertexBuffer, 0, 0, in renderShadow()
703 uint8_t spotShadowAlpha = renderer.getLightInfo().spotShadowAlpha; in renderShadow()
709 renderVertexBuffer(renderer, state, *spotShadowVertexBuffer, 0, 0, in renderShadow()
714 void BakedOpDispatcher::onShadowOp(BakedOpRenderer& renderer, const ShadowOp& op, const BakedOpStat… in onShadowOp() argument
716 renderShadow(renderer, state, op.casterAlpha, buffers.first, buffers.second); in onShadowOp()
719 void BakedOpDispatcher::onSimpleRectsOp(BakedOpRenderer& renderer, const SimpleRectsOp& op, const B… in onSimpleRectsOp() argument
721 GlopBuilder(renderer.renderState(), renderer.caches(), &glop) in onSimpleRectsOp()
728 renderer.renderGlop(state, glop); in onSimpleRectsOp()
731 void BakedOpDispatcher::onTextOp(BakedOpRenderer& renderer, const TextOp& op, const BakedOpState& s… in onTextOp() argument
732 renderTextShadow(renderer, op, state); in onTextOp()
733 renderText(renderer, op, state, state.computedState.getClipIfNeeded(), TextRenderType::Flush); in onTextOp()
736 void BakedOpDispatcher::onTextOnPathOp(BakedOpRenderer& renderer, const TextOnPathOp& op, const Bak… in onTextOnPathOp() argument
741 FontRenderer& fontRenderer = renderer.caches().fontRenderer.getFontRenderer(); in onTextOnPathOp()
749 TextDrawFunctor functor(&renderer, &state, renderTargetClip, in onTextOnPathOp()
752 bool mustDirtyRenderTarget = renderer.offscreenRenderTarget(); in onTextOnPathOp()
760 renderer.dirtyRenderTarget(layerBounds); in onTextOnPathOp()
765 void BakedOpDispatcher::onTextureLayerOp(BakedOpRenderer& renderer, const TextureLayerOp& op, const… in onTextureLayerOp() argument
773 GlopBuilder(renderer.renderState(), renderer.caches(), &glop) in onTextureLayerOp()
780 renderer.renderGlop(state, glop); in onTextureLayerOp()
783 void renderRectForLayer(BakedOpRenderer& renderer, const LayerOp& op, const BakedOpState& state, in renderRectForLayer() argument
790 BakedOpDispatcher::onRectOp(renderer, rectOp, state); in renderRectForLayer()
793 void BakedOpDispatcher::onLayerOp(BakedOpRenderer& renderer, const LayerOp& op, const BakedOpState&… in onLayerOp() argument
801 GlopBuilder(renderer.renderState(), renderer.caches(), &glop) in onLayerOp()
809 renderer.renderGlop(state, glop); in onLayerOp()
815 renderRectForLayer(renderer, op, state, in onLayerOp()
819 renderRectForLayer(renderer, op, state, in onLayerOp()
825 void BakedOpDispatcher::onCopyToLayerOp(BakedOpRenderer& renderer, const CopyToLayerOp& op, const B… in onCopyToLayerOp() argument
827 *(op.layerHandle) = renderer.copyToLayer(state.computedState.clippedBounds); in onCopyToLayerOp()
831 void BakedOpDispatcher::onCopyFromLayerOp(BakedOpRenderer& renderer, const CopyFromLayerOp& op, con… in onCopyFromLayerOp() argument
840 BakedOpDispatcher::onRectOp(renderer, rectOp, state); in onCopyFromLayerOp()
846 GlopBuilder(renderer.renderState(), renderer.caches(), &glop) in onCopyFromLayerOp()
853 renderer.renderGlop(state, glop); in onCopyFromLayerOp()
855 renderer.renderState().layerPool().putOrDelete(*op.layerHandle); in onCopyFromLayerOp()