Searched defs:surf (Results 1 - 25 of 81) sorted by relevance

1234

/external/skia/src/gpu/
H A DGrTextureRenderTargetProxy.cpp27 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 DGrRenderTargetProxy.cpp35 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 DGrTextureProxy.cpp19 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 DGrSurfaceProxy.cpp119 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 Dvmw_surface.h61 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 Dbrw_vs_surface_state.c97 const int surf = SURF_INDEX_VERT_CONST_BUFFER; local
100 &brw->vs.surf_offset[surf]);
/external/mesa3d/src/gallium/auxiliary/postprocess/
H A Dpp_program.h57 struct pipe_surface surf; member in struct:program
/external/mesa3d/src/gallium/tests/graw/
H A Dclear.c23 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 Dcgm.c57 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 Dsurface.cpp127 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 Ddstreadshuffle.cpp156 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 DSpecialSurfaceTest.cpp20 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 DPremulAlphaRoundTripTest.cpp64 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 Drbug_context.h71 struct rbug_resource *surf; member in struct:rbug_context::__anon14660
/external/mesa3d/src/egl/main/
H A Deglcontext.c400 _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 Deglscreen.c194 _EGLScreen *scrn, _EGLSurface **surf)
196 *surf = scrn->CurrentSurface;
193 _eglQueryScreenSurfaceMESA(_EGLDriver *drv, _EGLDisplay *dpy, _EGLScreen *scrn, _EGLSurface **surf) argument
H A Deglsurface.c48 _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 Deglsurface.h82 _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 Degldisplay.c307 _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 Degl_g3d_st.c157 _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 Dpresentation.c206 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 Dplatform_drm.c43 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 Du_surface.c51 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 Dvl_video_buffer.c352 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 Di915_surface.c309 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

Completed in 538 milliseconds

1234