Lines Matching refs:batch
224 void GrDrawTarget::drawBatch(const GrPipelineBuilder& pipelineBuilder, GrDrawBatch* batch) { in drawBatch() argument
228 if (!fClipMaskManager->setupClipping(pipelineBuilder, &ars, &batch->bounds(), &clip)) { in drawBatch()
238 if (!this->installPipelineInDrawBatch(&pipelineBuilder, &clip.scissorState(), batch)) { in drawBatch()
244 batch->pipeline()->addDependenciesTo(fRenderTarget); in drawBatch()
247 this->recordBatch(batch); in drawBatch()
312 GrBatch* batch = GrStencilPathBatch::Create(viewMatrix, in stencilPath() local
317 this->recordBatch(batch); in stencilPath()
318 batch->unref(); in stencilPath()
322 GrDrawPathBatchBase* batch) { in drawPathBatch() argument
331 if (!fClipMaskManager->setupClipping(pipelineBuilder, &ars, &batch->bounds(), &clip)) { in drawPathBatch()
345 this->getPathStencilSettingsForFilltype(batch->fillType(), sb, &stencilSettings); in drawPathBatch()
346 batch->setStencilSettings(stencilSettings); in drawPathBatch()
349 if (!this->installPipelineInDrawBatch(&pipelineBuilder, &clip.scissorState(), batch)) { in drawPathBatch()
353 this->recordBatch(batch); in drawPathBatch()
388 SkAutoTUnref<GrDrawBatch> batch( in clear() local
391 this->drawBatch(pipelineBuilder, batch); in clear()
393 GrBatch* batch = new GrClearBatch(*rect, color, renderTarget); in clear() local
394 this->recordBatch(batch); in clear()
395 batch->unref(); in clear()
401 GrBatch* batch = new GrDiscardBatch(renderTarget); in discard() local
402 this->recordBatch(batch); in discard()
403 batch->unref(); in discard()
413 GrBatch* batch = GrCopySurfaceBatch::Create(dst, src, srcRect, dstPoint); in copySurface() local
414 if (!batch) { in copySurface()
421 this->recordBatch(batch); in copySurface()
422 batch->unref(); in copySurface()
432 void GrDrawTarget::recordBatch(GrBatch* batch) { in recordBatch() argument
440 GR_AUDIT_TRAIL_ADDBATCH(fAuditTrail, batch->name(), batch->bounds()); in recordBatch()
443 batch->name(), in recordBatch()
444 batch->uniqueID(), in recordBatch()
445 batch->bounds().fLeft, batch->bounds().fRight, in recordBatch()
446 batch->bounds().fTop, batch->bounds().fBottom); in recordBatch()
447 GrBATCH_INFO(SkTabString(batch->dumpInfo(), 1).c_str()); in recordBatch()
455 if (candidate->renderTargetUniqueID() != batch->renderTargetUniqueID()) { in recordBatch()
460 if (candidate->combineIfPossible(batch, *this->caps())) { in recordBatch()
468 if (intersect(candidate->bounds(), batch->bounds())) { in recordBatch()
482 fBatches.push_back().reset(SkRef(batch)); in recordBatch()
489 GrDrawBatch* batch) { in installPipelineInDrawBatch() argument
494 batch->getPipelineOptimizations(&args.fOpts); in installPipelineInDrawBatch()
504 ibounds.fLeft = SkTPin(SkScalarFloorToInt(batch->bounds().fLeft), viewport.fLeft, in installPipelineInDrawBatch()
506 ibounds.fTop = SkTPin(SkScalarFloorToInt(batch->bounds().fTop), viewport.fBottom, in installPipelineInDrawBatch()
508 ibounds.fRight = SkTPin(SkScalarCeilToInt(batch->bounds().fRight), viewport.fLeft, in installPipelineInDrawBatch()
510 ibounds.fBottom = SkTPin(SkScalarCeilToInt(batch->bounds().fBottom), viewport.fBottom, in installPipelineInDrawBatch()
526 batch->bounds())) { in installPipelineInDrawBatch()
530 if (!batch->installPipeline(args)) { in installPipelineInDrawBatch()
538 GrBatch* batch = new GrClearStencilClipBatch(rect, insideClip, rt); in clearStencilClip() local
539 this->recordBatch(batch); in clearStencilClip()
540 batch->unref(); in clearStencilClip()