Lines Matching refs:surfaceDrawContext
93 const GrSurfaceDrawContext* surfaceDrawContext, in PathNeedsSWRenderer() argument
113 SkASSERT(surfaceDrawContext->numSamples() <= 1); in PathNeedsSWRenderer()
123 canDrawArgs.fProxy = surfaceDrawContext->asRenderTargetProxy(); in PathNeedsSWRenderer()
128 canDrawArgs.fSurfaceProps = &surfaceDrawContext->surfaceProps(); in PathNeedsSWRenderer()
146 const GrSurfaceDrawContext* surfaceDrawContext, in UseSWOnlyPath() argument
157 if (!surfaceDrawContext->asRenderTargetProxy()->canUseStencil(*context->priv().caps())) { in UseSWOnlyPath()
175 surfaceDrawContext, translate, element, needsStencil)) { in UseSWOnlyPath()
186 GrSurfaceDrawContext* surfaceDrawContext, in apply() argument
189 SkASSERT(surfaceDrawContext->width() == fDeviceSize.fWidth && in apply()
190 surfaceDrawContext->height() == fDeviceSize.fHeight); in apply()
208 int maxWindowRectangles = surfaceDrawContext->maxWindowRectangles(); in apply()
210 if (surfaceDrawContext->numSamples() > 1 || aa == GrAAType::kMSAA || hasUserStencilSettings) { in apply()
214 SkASSERT(surfaceDrawContext->asRenderTargetProxy()->canUseStencil(*context->priv().caps())); in apply()
238 if (!this->applyClipMask(context, surfaceDrawContext, reducedClip, hasUserStencilSettings, in apply()
247 uint32_t opsTaskID = surfaceDrawContext->getOpsTask()->uniqueID(); in apply()
261 GrSurfaceDrawContext* surfaceDrawContext, in applyClipMask() argument
266 SkIRect rtIBounds = SkIRect::MakeWH(surfaceDrawContext->width(), in applyClipMask()
267 surfaceDrawContext->height()); in applyClipMask()
272 if ((surfaceDrawContext->numSamples() <= 1 && reducedClip.maskRequiresAA()) || in applyClipMask()
273 !surfaceDrawContext->asRenderTargetProxy()->canUseStencil(*context->priv().caps())) { in applyClipMask()
275 if (UseSWOnlyPath(context, hasUserStencilSettings, surfaceDrawContext, reducedClip)) { in applyClipMask()
278 result = this->createSoftwareClipMask(context, reducedClip, surfaceDrawContext); in applyClipMask()
293 if (!surfaceDrawContext->asRenderTargetProxy()->canUseStencil(*context->priv().caps())) { in applyClipMask()
300 reducedClip.drawStencilClipMask(context, surfaceDrawContext); in applyClipMask()
453 GrSurfaceDrawContext* surfaceDrawContext) const { in createSoftwareClipMask()
474 if (taskGroup && surfaceDrawContext) { in createSoftwareClipMask()