Home
last modified time | relevance | path

Searched refs:GrSurfaceProxy (Results 1 – 25 of 56) sorted by relevance

123

/external/skia/src/gpu/
DGrSurfaceProxy.cpp23 GrSurfaceProxy::GrSurfaceProxy(sk_sp<GrSurface> surface, SkBackingFit fit) in GrSurfaceProxy() function in GrSurfaceProxy
34 GrSurfaceProxy::~GrSurfaceProxy() { in ~GrSurfaceProxy()
41 GrSurface* GrSurfaceProxy::instantiate(GrResourceProvider* resourceProvider) { in instantiate()
67 int GrSurfaceProxy::worstCaseWidth(const GrCaps& caps) const { in worstCaseWidth()
83 int GrSurfaceProxy::worstCaseHeight(const GrCaps& caps) const { in worstCaseHeight()
99 void GrSurfaceProxy::setLastOpList(GrOpList* opList) { in setLastOpList()
111 GrRenderTargetOpList* GrSurfaceProxy::getLastRenderTargetOpList() { in getLastRenderTargetOpList()
115 GrTextureOpList* GrSurfaceProxy::getLastTextureOpList() { in getLastTextureOpList()
119 sk_sp<GrSurfaceProxy> GrSurfaceProxy::MakeWrapped(sk_sp<GrSurface> surf) { in MakeWrapped()
126 return sk_sp<GrSurfaceProxy>(new GrTextureRenderTargetProxy(std::move(surf))); in MakeWrapped()
[all …]
DGrSurfaceProxyPriv.h36 explicit GrSurfaceProxyPriv(GrSurfaceProxy* proxy) : fProxy(proxy) {} in GrSurfaceProxyPriv()
44 GrSurfaceProxy* fProxy;
46 friend class GrSurfaceProxy; // to construct/copy this type. variable
49 inline GrSurfaceProxyPriv GrSurfaceProxy::priv() { return GrSurfaceProxyPriv(this); } in priv()
51 inline const GrSurfaceProxyPriv GrSurfaceProxy::priv () const { in priv()
52 return GrSurfaceProxyPriv(const_cast<GrSurfaceProxy*>(this)); in priv()
DGrSurfaceContext.h23 class GrSurfaceProxy; variable
55 bool copy(GrSurfaceProxy* src, const SkIRect& srcRect, const SkIPoint& dstPoint) { in copy()
59 bool copy(GrSurfaceProxy* src) { in copy()
99 virtual GrSurfaceProxy* asSurfaceProxy() = 0;
100 virtual const GrSurfaceProxy* asSurfaceProxy() const = 0;
101 virtual sk_sp<GrSurfaceProxy> asSurfaceProxyRef() = 0;
136 virtual bool onCopy(GrSurfaceProxy* src,
DGrTextureContext.h30 GrSurfaceProxy* asSurfaceProxy() override { return fTextureProxy.get(); } in asSurfaceProxy()
31 const GrSurfaceProxy* asSurfaceProxy() const override { return fTextureProxy.get(); } in asSurfaceProxy()
32 sk_sp<GrSurfaceProxy> asSurfaceProxyRef() override { return fTextureProxy; } in asSurfaceProxyRef()
49 bool onCopy(GrSurfaceProxy* src, const SkIRect& srcRect, const SkIPoint& dstPoint) override;
DGrContext.cpp304 tempProxy = GrSurfaceProxy::MakeDeferred(this->resourceProvider(), in writeSurfacePixels()
592 sk_sp<GrSurfaceProxy> proxy(GrSurfaceProxy::MakeWrapped(std::move(rt))); in makeWrappedRenderTargetContext()
602 sk_sp<GrSurfaceContext> GrContextPriv::makeWrappedSurfaceContext(sk_sp<GrSurfaceProxy> proxy, in makeWrappedSurfaceContext()
618 sk_sp<GrSurfaceProxy> proxy(GrSurfaceProxy::MakeWrapped(std::move(surface))); in makeWrappedSurfaceContext()
630 sk_sp<GrTextureProxy> proxy = GrSurfaceProxy::MakeDeferred(fContext->resourceProvider(), in makeDeferredSurfaceContext()
648 sk_sp<GrSurfaceProxy> proxy(GrSurfaceProxy::MakeWrapped(std::move(surface))); in makeBackendSurfaceContext()
668 sk_sp<GrSurfaceProxy> proxy(GrSurfaceProxy::MakeWrapped(std::move(surface))); in makeBackendTextureRenderTargetContext()
688 sk_sp<GrSurfaceProxy> proxy(GrSurfaceProxy::MakeWrapped(std::move(rt))); in makeBackendRenderTargetRenderTargetContext()
710 sk_sp<GrSurfaceProxy> proxy(GrSurfaceProxy::MakeWrapped(std::move(surface))); in makeBackendTextureAsRenderTargetRenderTargetContext()
832 sk_sp<GrTextureProxy> rtp = GrSurfaceProxy::MakeDeferred(this->resourceProvider(), in makeDeferredRenderTargetContext()
DGrPreFlushResourceProvider.cpp23 sk_sp<GrSurfaceProxy> proxy = GrSurfaceProxy::MakeDeferred( in makeRenderTargetContext()
49 sk_sp<GrSurfaceProxy> proxy, in makeRenderTargetContext()
DGrOpList.h20 class GrSurfaceProxy; variable
25 GrOpList(GrSurfaceProxy* surfaceProxy, GrAuditTrail* auditTrail);
135 GrSurfaceProxy* fTarget;
DGrTextureRenderTargetProxy.cpp18 : GrSurfaceProxy(desc, fit, budgeted, flags) in GrTextureRenderTargetProxy()
28 : GrSurfaceProxy(surf, SkBackingFit::kExact) in GrTextureRenderTargetProxy()
DGrPreFlushResourceProvider.h23 class GrSurfaceProxy; variable
63 sk_sp<GrRenderTargetContext> makeRenderTargetContext(sk_sp<GrSurfaceProxy> proxy,
DGrContextPriv.h15 class GrSurfaceProxy; variable
33 sk_sp<GrSurfaceContext> makeWrappedSurfaceContext(sk_sp<GrSurfaceProxy> proxy,
DGrRenderTargetContext.h369 GrSurfaceProxy* asSurfaceProxy() override { return fRenderTargetProxy.get(); } in asSurfaceProxy()
370 const GrSurfaceProxy* asSurfaceProxy() const override { return fRenderTargetProxy.get(); } in asSurfaceProxy()
371 sk_sp<GrSurfaceProxy> asSurfaceProxyRef() override { return fRenderTargetProxy; } in asSurfaceProxyRef()
471 bool onCopy(GrSurfaceProxy* src, const SkIRect& srcRect, const SkIPoint& dstPoint) override;
DGrDrawingManager.h40 sk_sp<GrRenderTargetContext> makeRenderTargetContext(sk_sp<GrSurfaceProxy>,
43 sk_sp<GrTextureContext> makeTextureContext(sk_sp<GrSurfaceProxy>, sk_sp<SkColorSpace>);
/external/skia/tests/
DProxyRefTest.cpp52 GrSurfaceProxy* proxy, in check_refs()
68 static sk_sp<GrSurfaceProxy> make_deferred(GrResourceProvider* provider) { in make_deferred()
75 return GrSurfaceProxy::MakeDeferred(provider, desc, in make_deferred()
79 static sk_sp<GrSurfaceProxy> make_wrapped(GrResourceProvider* provider) { in make_wrapped()
91 return GrSurfaceProxy::MakeWrapped(std::move(tex)); in make_wrapped()
103 sk_sp<GrSurfaceProxy> sProxy((*make)(provider)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
105 GrPendingIOResource<GrSurfaceProxy, kWrite_GrIOType> fWrite(sProxy.get()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
123 sk_sp<GrSurfaceProxy> sProxy((*make)(provider)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
125 GrPendingIOResource<GrSurfaceProxy, kRead_GrIOType> fRead(sProxy.get()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
143 sk_sp<GrSurfaceProxy> sProxy((*make)(provider)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DProxyConversionTest.cpp18 static sk_sp<GrSurfaceProxy> make_wrapped_FBO0(GrResourceProvider* provider, in make_wrapped_FBO0()
33 return GrSurfaceProxy::MakeWrapped(std::move(defaultFBO)); in make_wrapped_FBO0()
36 static sk_sp<GrSurfaceProxy> make_wrapped_offscreen_rt(GrResourceProvider* provider, in make_wrapped_offscreen_rt()
44 return GrSurfaceProxy::MakeWrapped(std::move(tex)); in make_wrapped_offscreen_rt()
47 static sk_sp<GrSurfaceProxy> make_wrapped_texture(GrResourceProvider* provider, in make_wrapped_texture()
52 return GrSurfaceProxy::MakeWrapped(std::move(tex)); in make_wrapped_texture()
68 sk_sp<GrSurfaceProxy> sProxy(make_wrapped_FBO0(provider, reporter, desc)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
79 sk_sp<GrSurfaceProxy> sProxy(make_wrapped_offscreen_rt(provider, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
94 sk_sp<GrSurfaceProxy> sProxy(make_wrapped_texture(provider, desc, SkBudgeted::kYes)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
108 sk_sp<GrSurfaceProxy> sProxy(make_wrapped_texture(provider, desc, SkBudgeted::kYes)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DProxyTest.cpp21 GrSurfaceProxy* proxy, in check_surface()
50 GrSurfaceProxy::UniqueID idBefore = rtProxy->uniqueID(); in check_rendertarget()
87 GrSurfaceProxy::UniqueID idBefore = texProxy->uniqueID(); in check_texture()
143 sk_sp<GrTextureProxy> proxy(GrSurfaceProxy::MakeDeferred( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
176 sk_sp<GrTextureProxy> proxy(GrSurfaceProxy::MakeDeferred(provider, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
239 sk_sp<GrSurfaceProxy> sProxy(GrSurfaceProxy::MakeWrapped(defaultFBO)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
255 sk_sp<GrSurfaceProxy> sProxy(GrSurfaceProxy::MakeWrapped(rt)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
270 sk_sp<GrSurfaceProxy> sProxy(GrSurfaceProxy::MakeWrapped(tex)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DTestUtils.h13 class GrSurfaceProxy; variable
28 GrSurfaceProxy* proxy, uint32_t expectedPixelValues[],
DTestUtils.cpp70 GrSurfaceProxy* proxy, uint32_t expectedPixelValues[], in test_copy_from_surface()
84 sk_sp<GrSurfaceContext> dstContext(GrSurfaceProxy::TestCopy(context, copyDstDesc, proxy)); in test_copy_from_surface()
110 sk_sp<GrTextureProxy> src(GrSurfaceProxy::MakeDeferred(resourceProvider, in test_copy_to_surface()
DIntTextureTest.cpp74 sk_sp<GrTextureProxy> proxy = GrSurfaceProxy::MakeDeferred(context->resourceProvider(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
121 sk_sp<GrSurfaceContext> dstContext(GrSurfaceProxy::TestCopy(context, desc, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
150 sk_sp<GrSurfaceContext> dstContext(GrSurfaceProxy::TestCopy(context, nonIntDesc, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
160 sk_sp<GrSurfaceContext> dstContext(GrSurfaceProxy::TestCopy(context, nonIntDesc, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DRectangleTextureTest.cpp22 … sk_sp<GrSurfaceProxy> rectProxy, uint32_t expectedPixelValues[]) { in test_basic_draw_as_src()
136 sk_sp<GrSurfaceProxy> rectProxy = GrSurfaceProxy::MakeWrappedBackend(context, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
DCopySurfaceTest.cpp76 sk_sp<GrTextureProxy> src(GrSurfaceProxy::MakeDeferred( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
82 sk_sp<GrTextureProxy> dst(GrSurfaceProxy::MakeDeferred( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/external/skia/include/private/
DGrSurfaceProxy.h168 class GrSurfaceProxy : public GrIORefProxy {
170 static sk_sp<GrSurfaceProxy> MakeWrapped(sk_sp<GrSurface>);
183 static sk_sp<GrSurfaceProxy> MakeWrappedBackend(GrContext*, GrBackendTextureDesc&);
286 static sk_sp<GrTextureProxy> Copy(GrContext*, GrSurfaceProxy* src,
291 static sk_sp<GrTextureProxy> Copy(GrContext* context, GrSurfaceProxy* src,
296 GrSurfaceProxy* srcProxy);
308 GrSurfaceProxy(const GrSurfaceDesc& desc, SkBackingFit fit, SkBudgeted budgeted, uint32_t flags) in GrSurfaceProxy() function
321 GrSurfaceProxy(sk_sp<GrSurface> surface, SkBackingFit fit);
323 virtual ~GrSurfaceProxy();
DGrTextureProxy.h19 class GrTextureProxy : virtual public GrSurfaceProxy {
30 friend class GrSurfaceProxy; // for ctors
45 typedef GrSurfaceProxy INHERITED;
DGrRenderTargetProxy.h21 class GrRenderTargetProxy : virtual public GrSurfaceProxy {
60 friend class GrSurfaceProxy; // for ctors
83 typedef GrSurfaceProxy INHERITED;
/external/skia/include/gpu/
DGrProcessorUnitTest.h56 fProxies[0] = GrSurfaceProxy::MakeWrapped(sk_ref_sp(textures[0])); in GrProcessorTestData()
57 fProxies[1] = GrSurfaceProxy::MakeWrapped(sk_ref_sp(textures[1])); in GrProcessorTestData()
/external/skia/src/image/
DSkImage_Gpu.cpp267 sk_sp<GrTextureProxy> proxy(GrSurfaceProxy::MakeWrapped(std::move(tex))); in new_wrapped_texture_common()
319 sk_sp<GrSurfaceProxy> yProxy = GrSurfaceProxy::MakeWrappedBackend(ctx, yDesc); in make_from_yuv_textures_copy()
320 sk_sp<GrSurfaceProxy> uProxy = GrSurfaceProxy::MakeWrappedBackend(ctx, uDesc); in make_from_yuv_textures_copy()
321 sk_sp<GrSurfaceProxy> vProxy; in make_from_yuv_textures_copy()
334 vProxy = GrSurfaceProxy::MakeWrappedBackend(ctx, vDesc); in make_from_yuv_textures_copy()

123