Home
last modified time | relevance | path

Searched refs:asSurfaceProxy (Results 1 – 25 of 34) sorted by relevance

12

/external/skqp/src/gpu/
DGrSurfaceContext.h39 int width() const { return this->asSurfaceProxy()->width(); } in width()
40 int height() const { return this->asSurfaceProxy()->height(); } in height()
92 virtual GrSurfaceProxy* asSurfaceProxy() = 0;
93 virtual const GrSurfaceProxy* asSurfaceProxy() const = 0;
DGrSurfaceContext.cpp48 !GrPixelConfigIsOpaque(this->asSurfaceProxy()->config())) { in readPixels()
85 if (!fContext->contextPriv().caps()->canCopySurface(this->asSurfaceProxy(), src, srcRect, in copy()
90 return this->getOpList()->copySurface(fContext, this->asSurfaceProxy(), in copy()
DGrTextureContext.h30 GrSurfaceProxy* asSurfaceProxy() override { return fTextureProxy.get(); } in asSurfaceProxy() function
31 const GrSurfaceProxy* asSurfaceProxy() const override { return fTextureProxy.get(); } in asSurfaceProxy() function
DGrContext.cpp405 ASSERT_OWNED_PROXY_PRIV(dst->asSurfaceProxy()); in writeSurfacePixels()
412 if (!dst->asSurfaceProxy()->instantiate(this->resourceProvider())) { in writeSurfacePixels()
416 GrSurfaceProxy* dstProxy = dst->asSurfaceProxy(); in writeSurfacePixels()
591 ASSERT_OWNED_PROXY_PRIV(src->asSurfaceProxy()); in readSurfacePixels()
600 if (!src->asSurfaceProxy()->instantiate(this->resourceProvider())) { in readSurfacePixels()
604 GrSurfaceProxy* srcProxy = src->asSurfaceProxy(); in readSurfacePixels()
DGrRenderTargetContext.h404 GrSurfaceProxy* asSurfaceProxy() override { return fRenderTargetProxy.get(); } in asSurfaceProxy() function
405 const GrSurfaceProxy* asSurfaceProxy() const override { return fRenderTargetProxy.get(); } in asSurfaceProxy() function
DSkGpuDevice.cpp268 SkASSERT(newRTC->asSurfaceProxy()->priv().isExact()); in replaceRenderTargetContext()
274 newRTC->copy(fRenderTargetContext->asSurfaceProxy()); in replaceRenderTargetContext()
1266 this->accessRenderTargetContext()->asSurfaceProxy(), in snapSpecial()
1299 SkASSERT(rtc->asSurfaceProxy()); in snapBackImage()
1302 GrSurfaceProxy::Copy(ctx, rtc->asSurfaceProxy(), rtc->mipMapped(), subset, in snapBackImage()
1303 SkBackingFit::kApprox, rtc->asSurfaceProxy()->isBudgeted()); in snapBackImage()
1808 const GrBackendFormat& origFormat = fRenderTargetContext->asSurfaceProxy()->backendFormat(); in onCreateDevice()
/external/skqp/gm/
Dclockwise.cpp157 rtc->asSurfaceProxy()->backendFormat(), SkBackingFit::kExact, 100, 200, in onDraw()
158 rtc->asSurfaceProxy()->config(), nullptr, 1, GrMipMapped::kNo, in onDraw()
173 rtc->asSurfaceProxy()->backendFormat(), SkBackingFit::kExact, 100, 200, in onDraw()
174 rtc->asSurfaceProxy()->config(), nullptr, 1, GrMipMapped::kNo, in onDraw()
/external/skia/src/image/
DSkSurface_Gpu.cpp35 SkASSERT(fDevice->surfaceDrawContext()->asSurfaceProxy()->priv().isExact()); in SkSurface_Gpu()
66 dContext->priv().flushSurface(sdc->asSurfaceProxy()); in prepare_rt_for_external_access()
113 if (!sdc->asSurfaceProxy()) { in onNewImageSnapshot()
119 SkBudgeted budgeted = sdc->asSurfaceProxy()->isBudgeted(); in onNewImageSnapshot()
206 if (static_cast<SkImage_Gpu*>(image.get())->surfaceMustCopyOnWrite(sdc->asSurfaceProxy())) { in onCopyOnWrite()
225 return dContext->priv().flushSurface(sdc->asSurfaceProxy(), access, info, newState); in onFlush()
261 GrBackendFormat format = sdc->asSurfaceProxy()->backendFormat(); in onCharacterize()
370 GrProtected isProtected = sdc->asSurfaceProxy()->isProtected(); in onIsCompatible()
376 characterization.backendFormat() == sdc->asSurfaceProxy()->backendFormat() && in onIsCompatible()
/external/skia/gm/
Dclear_swizzle.cpp31 rtCtx->asSurfaceProxy()->backendFormat(), in __anon219885010102()
34 rtCtx->asSurfaceProxy()->isProtected(), in __anon219885010102()
Dpreservefillrule.cpp96 dContext->priv().flushSurface(rtc->asSurfaceProxy()); in onDraw()
/external/skqp/src/image/
DSkSurface_Gpu.cpp30 SkASSERT(fDevice->accessRenderTargetContext()->asSurfaceProxy()->priv().isExact()); in SkSurface_Gpu()
94 if (!rtc->asSurfaceProxy()) { in onNewImageSnapshot()
98 SkBudgeted budgeted = rtc->asSurfaceProxy()->isBudgeted(); in onNewImageSnapshot()
103 srcProxy = GrSurfaceProxy::Copy(ctx, rtc->asSurfaceProxy(), rtc->mipMapped(), *subset, in onNewImageSnapshot()
109 SkASSERT(rtc->origin() == rtc->asSurfaceProxy()->origin()); in onNewImageSnapshot()
111 srcProxy = GrSurfaceProxy::Copy(ctx, rtc->asSurfaceProxy(), rtc->mipMapped(), in onNewImageSnapshot()
145 if (rtc->asSurfaceProxy()->underlyingUniqueID() == imageProxy->underlyingUniqueID()) { in onCopyOnWrite()
DSkImage_GpuBase.cpp349 if (!renderTargetContext->asSurfaceProxy()) { in RenderYUVAToRGBA()
363 ctx->contextPriv().flushSurfaceWrites(renderTargetContext->asSurfaceProxy()); in RenderYUVAToRGBA()
/external/skia/src/gpu/
DGrSurfaceContext.cpp436 if (this->asSurfaceProxy()->readOnly()) { in internalWritePixels()
448 GrSurfaceProxy* dstProxy = this->asSurfaceProxy(); in internalWritePixels()
662 auto backendFormatOfFinalContext = this->asSurfaceProxy()->backendFormat(); in asyncRescaleAndReadPixels()
810 if (!dContext || this->asSurfaceProxy()->isProtected() == GrProtected::kYes) { in asyncReadPixels()
869 dContext->priv().flushSurface(this->asSurfaceProxy(), in asyncReadPixels()
901 if (this->asSurfaceProxy()->isProtected() == GrProtected::kYes) { in asyncRescaleAndReadPixelsYUV420()
1102 dContext->priv().flushSurface(this->asSurfaceProxy(), in asyncRescaleAndReadPixelsYUV420()
1118 SkASSERT(src->backendFormat() == this->asSurfaceProxy()->backendFormat()); in copy()
1120 if (this->asSurfaceProxy()->framebufferOnly()) { in copy()
1124 if (!caps->canCopySurface(this->asSurfaceProxy(), src.get(), srcRect, dstPoint)) { in copy()
[all …]
DGrSurfaceFillContext.cpp265 fOpsTask = sk_ref_sp(context->priv().drawingManager()->getLastOpsTask(this->asSurfaceProxy())); in GrSurfaceFillContext()
266 SkASSERT(this->asSurfaceProxy() == fWriteView.proxy()); in GrSurfaceFillContext()
300 if (!bounds.intersect(this->asSurfaceProxy()->getBoundsRect())) { in addDrawOp()
382 GrScissorState scissorState(this->asSurfaceProxy()->backingStoreDimensions()); in internalClear()
DGrSurfaceContext.h151 GrSurfaceProxy* asSurfaceProxy() { return fReadView.proxy(); } in asSurfaceProxy() function
152 const GrSurfaceProxy* asSurfaceProxy() const { return fReadView.proxy(); } in asSurfaceProxy() function
DGrSurfaceDrawContext.cpp460 SkRect r = this->asSurfaceProxy()->getBoundsRect(); in drawPaint()
468 SkIRect bounds = SkIRect::MakeSize(this->asSurfaceProxy()->dimensions()); in drawPaint()
512 SkRect rtRect = this->asSurfaceProxy()->getBoundsRect(); in attemptQuadOptimization()
891 GrScissorState scissorState(this->asSurfaceProxy()->backingStoreDimensions()); in internalStencilClear()
1655 return this->asSurfaceProxy()->isBudgeted(); in isBudgeted()
1916 GrAppliedClip appliedClip(this->dimensions(), this->asSurfaceProxy()->backingStoreDimensions()); in addDrawOp()
1938 skipDraw = !bounds.intersect(this->asSurfaceProxy()->getBoundsRect()); in addDrawOp()
2014 SkIRect copyRect = SkIRect::MakeSize(this->asSurfaceProxy()->backingStoreDimensions()); in setupDstProxyView()
DGrSurfaceDrawContext.h613 GrSurfaceProxy::UniqueID uniqueID() const { return this->asSurfaceProxy()->uniqueID(); } in uniqueID()
653 GrRenderTarget* accessRenderTarget() { return this->asSurfaceProxy()->peekRenderTarget(); } in accessRenderTarget()
DSkGpuDevice.cpp214 SkASSERT(sdc->asSurfaceProxy()->priv().isExact());
728 SkASSERT(sdc->asSurfaceProxy());
995 fSurfaceDrawContext->asSurfaceProxy()->isProtected(), kBottomLeft_GrSurfaceOrigin,
/external/skia/src/gpu/vk/
DGrVkSecondaryCBDrawContext.cpp36 SkASSERT(rtc->asSurfaceProxy()->isInstantiated()); in Make()
68 dContext->priv().flushSurface(fDevice->surfaceDrawContext()->asSurfaceProxy()); in flush()
/external/skia/tests/
DDefaultPathRendererTest.cpp100 dContext->priv().flushSurface(rtc->asSurfaceProxy()); in run_test()
DWrappedSurfaceCopyOnWriteTest.cpp40 return sdc->asSurfaceProxy()->uniqueID(); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
/external/skqp/tests/
DEGLImageTest.cpp196 test_copy_from_surface(reporter, context0, surfaceContext->asSurfaceProxy(), in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
/external/skia/src/gpu/ccpr/
DGrCCPerFlushResources.cpp168 if (surfaceDrawContext->asSurfaceProxy()->requiresManualMSAAResolve()) { in flushRenderedPaths()
/external/skia/src/gpu/tessellate/
DGrTessellationPathRenderer.cpp446 if (rtc->asSurfaceProxy()->requiresManualMSAAResolve()) { in renderAtlas()
/external/skqp/tools/debugger/
DSkDebugCanvas.cpp172 GrSurfaceProxy::UniqueID proxyID = rtc->asSurfaceProxy()->uniqueID(); in drawTo()

12