/external/skia/src/gpu/ |
H A D | GrTextureRenderTargetProxy.cpp | 27 GrTextureRenderTargetProxy::GrTextureRenderTargetProxy(sk_sp<GrSurface> surf) argument 28 : GrSurfaceProxy(surf, SkBackingFit::kExact) 29 , GrTextureProxy(sk_ref_sp(surf->asTexture())) 30 , GrRenderTargetProxy(sk_ref_sp(surf->asRenderTarget())) { 31 SkASSERT(surf->asTexture()); 32 SkASSERT(surf->asRenderTarget());
|
H A D | GrRenderTargetProxy.cpp | 35 GrRenderTargetProxy::GrRenderTargetProxy(sk_sp<GrSurface> surf) argument 36 : INHERITED(std::move(surf), SkBackingFit::kExact) 49 GrSurface* surf = INHERITED::instantiate(resourceProvider); local 50 if (!surf || !surf->asRenderTarget()) { 55 SkASSERT(fRenderTargetFlags == surf->asRenderTarget()->renderTargetPriv().flags()); 57 return surf->asRenderTarget();
|
H A D | GrTextureProxy.cpp | 19 GrTextureProxy::GrTextureProxy(sk_sp<GrSurface> surf) argument 20 : INHERITED(std::move(surf), SkBackingFit::kExact) { 24 GrSurface* surf = this->INHERITED::instantiate(resourceProvider); local 25 if (!surf) {
|
H A D | GrSurfaceProxy.cpp | 119 sk_sp<GrSurfaceProxy> GrSurfaceProxy::MakeWrapped(sk_sp<GrSurface> surf) { argument 120 if (!surf) { 124 if (surf->asTexture()) { 125 if (surf->asRenderTarget()) { 126 return sk_sp<GrSurfaceProxy>(new GrTextureRenderTargetProxy(std::move(surf))); 128 return sk_sp<GrSurfaceProxy>(new GrTextureProxy(std::move(surf))); 131 SkASSERT(surf->asRenderTarget()); 134 return sk_sp<GrSurfaceProxy>(new GrRenderTargetProxy(std::move(surf)));
|
/external/mesa3d/src/gallium/winsys/svga/drm/ |
H A D | vmw_surface.h | 61 svga_winsys_surface(struct vmw_svga_winsys_surface *surf) argument 63 assert(!surf || surf->sid != SVGA3D_INVALID_ID); 64 return (struct svga_winsys_surface *)surf; 69 vmw_svga_winsys_surface(struct svga_winsys_surface *surf) argument 71 return (struct vmw_svga_winsys_surface *)surf;
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
H A D | brw_vs_surface_state.c | 97 const int surf = SURF_INDEX_VERT_CONST_BUFFER; local 100 &brw->vs.surf_offset[surf]);
|
/external/mesa3d/src/gallium/auxiliary/postprocess/ |
H A D | pp_program.h | 57 struct pipe_surface surf; member in struct:program
|
/external/mesa3d/src/gallium/tests/graw/ |
H A D | clear.c | 23 struct pipe_surface *surf; variable in typeref:struct:pipe_surface 34 graw_save_surface_to_file(ctx, surf, NULL); 89 surf = ctx->create_surface(ctx, tex, &surf_tmpl); 90 if (surf == NULL) 97 fb.cbufs[0] = surf;
|
/external/skia/gm/ |
H A D | cgm.c | 57 sk_surface_t* surf = sk_surface_new_raster(&info, &surfaceProps); local 58 do_draw(sk_surface_get_canvas(surf)); 60 sk_image_t* img0 = sk_surface_new_image_snapshot(surf); 61 sk_surface_unref(surf);
|
H A D | surface.cpp | 127 auto surf(canvas->makeSurface(info, nullptr)); 128 if (!surf) { 129 surf = SkSurface::MakeRaster(info); 131 drawInto(surf->getCanvas()); 133 sk_sp<SkImage> image(surf->makeImageSnapshot()); 136 auto surf2(surf->makeSurface(info)); 140 SkASSERT(equal(surf->props(), surf2->props())); 155 sk_sp<SkSurface> surf = canvas->makeSurface(info, nullptr); local 156 if (!surf) { 157 surf 176 sk_sp<SkSurface> surf = canvas->makeSurface(info, nullptr); local [all...] |
H A D | dstreadshuffle.cpp | 156 auto surf = canvas->makeSurface(info); variable 157 if (!surf) { 168 surf = SkSurface::MakeRaster(info); 172 DrawHairlines(surf->getCanvas()); 173 canvas->drawImage(surf->makeImageSnapshot(), 0.f, 0.f);
|
/external/skia/tests/ |
H A D | SpecialSurfaceTest.cpp | 20 static const SkIRect& Subset(const SkSpecialSurface* surf) { argument 21 return surf->subset(); 32 static void test_surface(const sk_sp<SkSpecialSurface>& surf, argument 36 const SkIRect surfSubset = TestingSpecialSurfaceAccess::Subset(surf.get()); 42 SkCanvas* canvas = surf->getCanvas(); 47 sk_sp<SkSpecialImage> img(surf->makeImageSnapshot()); 54 REPORTER_ASSERT(reporter, !surf->getCanvas()); 60 sk_sp<SkSpecialSurface> surf(SkSpecialSurface::MakeRaster(info)); 62 test_surface(surf, reporter, 0); 72 sk_sp<SkSpecialSurface> surf(SkSpecialSurfac [all...] |
H A D | PremulAlphaRoundTripTest.cpp | 64 static void test_premul_alpha_roundtrip(skiatest::Reporter* reporter, SkSurface* surf) { argument 65 SkCanvas* canvas = surf->getCanvas(); 102 sk_sp<SkSurface> surf(SkSurface::MakeRaster(info)); 104 test_premul_alpha_roundtrip(reporter, surf.get()); 110 sk_sp<SkSurface> surf(SkSurface::MakeRenderTarget(ctxInfo.grContext(), 113 test_premul_alpha_roundtrip(reporter, surf.get());
|
/external/mesa3d/src/gallium/drivers/rbug/ |
H A D | rbug_context.h | 71 struct rbug_resource *surf; member in struct:rbug_context::__anon14660
|
/external/mesa3d/src/egl/main/ |
H A D | eglcontext.c | 400 _EGLSurface *surf = ctx->DrawSurface; local 403 if (!surf) 405 if (surf->Type == EGL_WINDOW_BIT && ctx->WindowRenderBuffer != EGL_NONE) 408 rb = surf->RenderBuffer;
|
H A D | eglscreen.c | 194 _EGLScreen *scrn, _EGLSurface **surf) 196 *surf = scrn->CurrentSurface; 193 _eglQueryScreenSurfaceMESA(_EGLDriver *drv, _EGLDisplay *dpy, _EGLScreen *scrn, _EGLSurface **surf) argument
|
H A D | eglsurface.c | 48 _eglClampSwapInterval(_EGLSurface *surf, EGLint interval) argument 50 EGLint bound = surf->Config->MaxSwapInterval; 55 bound = surf->Config->MinSwapInterval; 59 surf->SwapInterval = interval; 65 _eglParseScreenSurfaceAttribList(_EGLSurface *surf, const EGLint *attrib_list) argument 82 surf->Width = val; 89 surf->Height = val; 111 _eglParseSurfaceAttribList(_EGLSurface *surf, const EGLint *attrib_list) argument 113 _EGLDisplay *dpy = surf->Resource.Display; 114 EGLint type = surf 279 _eglInitSurface(_EGLSurface *surf, _EGLDisplay *dpy, EGLint type, _EGLConfig *conf, const EGLint *attrib_list) argument 525 _eglSwapInterval(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *surf, EGLint interval) argument [all...] |
H A D | eglsurface.h | 82 _eglInitSurface(_EGLSurface *surf, _EGLDisplay *dpy, EGLint type, 87 _eglQuerySurface(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *surf, EGLint attribute, EGLint *value); 91 _eglSurfaceAttrib(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *surf, EGLint attribute, EGLint value); 95 _eglBindTexImage(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *surf, EGLint buffer); 99 _eglSwapInterval(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *surf, EGLint interval); 106 _eglGetSurface(_EGLSurface *surf) argument 108 if (surf) 109 _eglGetResource(&surf->Resource); 110 return surf; 118 _eglPutSurface(_EGLSurface *surf) argument 129 _eglLinkSurface(_EGLSurface *surf) argument 141 _eglUnlinkSurface(_EGLSurface *surf) argument 154 _EGLSurface *surf = (_EGLSurface *) surface; local 165 _eglGetSurfaceHandle(_EGLSurface *surf) argument [all...] |
H A D | egldisplay.c | 307 _EGLSurface *surf = (_EGLSurface *) list; local 310 _eglUnlinkSurface(surf); 311 drv->API.DestroySurface(drv, display, surf);
|
/external/mesa3d/src/gallium/state_trackers/egl/common/ |
H A D | egl_g3d_st.c | 157 _EGLSurface *surf = (_EGLSurface *) stfbi->st_manager_private; local 158 struct egl_g3d_surface *gsurf = egl_g3d_surface(surf); 193 _EGLSurface *surf = (_EGLSurface *) stfbi->st_manager_private; local 194 struct egl_g3d_surface *gsurf = egl_g3d_surface(surf); 209 _EGLSurface *surf = (_EGLSurface *) stfbi->st_manager_private; local 210 struct egl_g3d_surface *gsurf = egl_g3d_surface(surf); 289 egl_g3d_create_st_framebuffer(_EGLSurface *surf) argument 291 struct egl_g3d_surface *gsurf = egl_g3d_surface(surf);
|
/external/mesa3d/src/gallium/state_trackers/vdpau/ |
H A D | presentation.c | 206 vlVdpOutputSurface *surf; local 220 surf = vlGetDataHTAB(surface); 221 if (!surf) 242 surf->timestamp = (vlVdpTime)earliest_presentation_time; 266 vl_compositor_set_rgba_layer(cstate, compositor, 0, surf->sampler_view, &src_rect, NULL, NULL); 278 pipe->screen->fence_reference(pipe->screen, &surf->fence, NULL); 279 pipe->flush(pipe, &surf->fence); 313 vlVdpOutputSurface *surf; local 323 surf = vlGetDataHTAB(surface); 324 if (!surf) 347 vlVdpOutputSurface *surf; local [all...] |
/external/mesa3d/src/egl/drivers/dri2/ |
H A D | platform_drm.c | 43 struct gbm_dri_surface *surf = (struct gbm_dri_surface *) _surf; local 44 struct dri2_egl_surface *dri2_surf = surf->dri_private; 62 struct gbm_dri_surface *surf = (struct gbm_dri_surface *) _surf; local 63 struct dri2_egl_surface *dri2_surf = surf->dri_private; 76 struct gbm_dri_surface *surf = (struct gbm_dri_surface *) _surf; local 77 struct dri2_egl_surface *dri2_surf = surf->dri_private; 95 struct gbm_dri_surface *surf; local 113 surf = gbm_dri_surface((struct gbm_surface *) window); 114 dri2_surf->gbm_surf = surf; 115 dri2_surf->base.Width = surf 151 dri2_destroy_surface(_EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *surf) argument 184 struct gbm_dri_surface *surf = dri2_surf->gbm_surf; local [all...] |
/external/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_surface.c | 51 u_surface_default_template(struct pipe_surface *surf, argument 55 memset(surf, 0, sizeof(*surf)); 57 surf->format = texture->format; 59 surf->usage = bind;
|
/external/mesa3d/src/gallium/auxiliary/vl/ |
H A D | vl_video_buffer.c | 352 unsigned i, j, depth, surf; local 359 for (i = 0, surf = 0; i < depth; ++i ) { 360 for (j = 0; j < VL_NUM_COMPONENTS; ++j, ++surf) { 361 assert(surf < (VL_NUM_COMPONENTS * 2)); 364 pipe_surface_reference(&buf->surfaces[surf], NULL); 368 if (!buf->surfaces[surf]) { 373 buf->surfaces[surf] = pipe->create_surface(pipe, buf->resources[j], &surf_templ); 374 if (!buf->surfaces[surf])
|
/external/mesa3d/src/gallium/drivers/i915/ |
H A D | i915_surface.c | 309 struct pipe_surface *surf) 311 pipe_resource_reference(&surf->texture, NULL); 312 FREE(surf); 308 i915_surface_destroy(struct pipe_context *ctx, struct pipe_surface *surf) argument
|