/external/mesa3d/src/gallium/state_trackers/egl/wayland/ |
D | native_wayland.c | 148 struct wayland_surface *surface = data; in wayland_release_pending_resource() local 153 if (!surface->pending_resource) in wayland_release_pending_resource() 156 pipe_resource_reference(&surface->pending_resource, NULL); in wayland_release_pending_resource() 164 wayland_window_surface_handle_resize(struct wayland_surface *surface) in wayland_window_surface_handle_resize() argument 166 struct wayland_display *display = surface->display; in wayland_window_surface_handle_resize() 171 front_resource = resource_surface_get_single_resource(surface->rsurf, in wayland_window_surface_handle_resize() 173 if (resource_surface_set_size(surface->rsurf, in wayland_window_surface_handle_resize() 174 surface->win->width, surface->win->height)) { in wayland_window_surface_handle_resize() 176 if (surface->pending_resource) in wayland_window_surface_handle_resize() 182 surface->pending_resource = front_resource; in wayland_window_surface_handle_resize() [all …]
|
/external/mesa3d/src/gallium/drivers/radeonsi/ |
D | r600_texture.c | 72 return rtex->surface.level[level].offset + in r600_texture_get_offset() 73 layer * rtex->surface.level[level].slice_size; in r600_texture_get_offset() 76 static int r600_init_surface(struct radeon_surface *surface, in r600_init_surface() argument 80 surface->npix_x = ptex->width0; in r600_init_surface() 81 surface->npix_y = ptex->height0; in r600_init_surface() 82 surface->npix_z = ptex->depth0; in r600_init_surface() 83 surface->blk_w = util_format_get_blockwidth(ptex->format); in r600_init_surface() 84 surface->blk_h = util_format_get_blockheight(ptex->format); in r600_init_surface() 85 surface->blk_d = 1; in r600_init_surface() 86 surface->array_size = 1; in r600_init_surface() [all …]
|
/external/skia/tests/ |
D | SurfaceTest.cpp | 110 SkAutoTUnref<SkSurface> surface( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 112 REPORTER_ASSERT(reporter, surface); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 113 if (surface) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 119 surface->getCanvas()->drawRect(SkRect::MakeWH(SkIntToScalar(kW), SkIntToScalar(kH)/2), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 122 surface->readPixels(readInfo, pixels.get(), kW * sizeof(uint32_t), 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 155 SkSurface* surface, in test_canvas_peek() argument 162 surface->getCanvas()->clear(color); in test_canvas_peek() 164 const void* addr = surface->getCanvas()->peekPixels(&info, &rowBytes); in test_canvas_peek() 170 const void* addr2 = surface->peekPixels(&info2, &rb2); in test_canvas_peek() 187 SkAutoTUnref<SkSurface> surface(surface_func(kPremul_SkAlphaType, &requestInfo)); in DEF_TEST() local [all …]
|
D | DrawPathTest.cpp | 98 SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterN32Premul(640, 480)); in test_crbug131181() local 102 surface->getCanvas()->drawPath(path, paint); in test_crbug131181() 135 SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterN32Premul(640, 480)); in test_inversepathwithclip() local 136 SkCanvas* canvas = surface->getCanvas(); in test_inversepathwithclip() 174 SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterN32Premul(640, 480)); in test_bug533() local 175 surface->getCanvas()->drawPath(path, paint); in test_bug533() 216 SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterN32Premul(640, 480)); in test_bigcubic() local 217 surface->getCanvas()->drawPath(path, paint); in test_bigcubic() 244 SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterN32Premul(640, 480)); in test_halfway() local 245 SkCanvas* canvas = surface->getCanvas(); in test_halfway() [all …]
|
/external/mesa3d/src/gallium/state_trackers/xvmc/ |
D | surface.c | 46 XvMCSurfacePrivate *surface, in MacroBlocksToPipe() argument 99 GetPictureDescription(XvMCSurfacePrivate *surface, struct pipe_mpeg12_picture_desc *desc) in GetPictureDescription() argument 103 assert(surface && desc); in GetPictureDescription() 107 desc->picture_structure = surface->picture_structure; in GetPictureDescription() 109 if (surface->ref[i]) { in GetPictureDescription() 110 XvMCSurfacePrivate *ref = surface->ref[i]->privData; in GetPictureDescription() 119 RecursiveEndFrame(XvMCSurfacePrivate *surface) in RecursiveEndFrame() argument 124 assert(surface); in RecursiveEndFrame() 126 context_priv = surface->context->privData; in RecursiveEndFrame() 129 if (surface->ref[i]) { in RecursiveEndFrame() [all …]
|
/external/mesa3d/src/gallium/drivers/r600/ |
D | r600_texture.c | 64 return rtex->surface.level[level].offset + in r600_texture_get_offset() 65 layer * rtex->surface.level[level].slice_size; in r600_texture_get_offset() 69 struct radeon_surface *surface, in r600_init_surface() argument 81 surface->npix_x = ptex->width0; in r600_init_surface() 82 surface->npix_y = ptex->height0; in r600_init_surface() 83 surface->npix_z = ptex->depth0; in r600_init_surface() 84 surface->blk_w = util_format_get_blockwidth(ptex->format); in r600_init_surface() 85 surface->blk_h = util_format_get_blockheight(ptex->format); in r600_init_surface() 86 surface->blk_d = 1; in r600_init_surface() 87 surface->array_size = 1; in r600_init_surface() [all …]
|
/external/mesa3d/src/egl/main/ |
D | eglsurface.c | 352 _eglQuerySurface(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *surface, in _eglQuerySurface() argument 357 *value = surface->Width; in _eglQuerySurface() 360 *value = surface->Height; in _eglQuerySurface() 363 *value = surface->Config->ConfigID; in _eglQuerySurface() 366 *value = surface->LargestPbuffer; in _eglQuerySurface() 370 if (surface->Type == EGL_PBUFFER_BIT) in _eglQuerySurface() 371 *value = surface->TextureFormat; in _eglQuerySurface() 374 if (surface->Type == EGL_PBUFFER_BIT) in _eglQuerySurface() 375 *value = surface->TextureTarget; in _eglQuerySurface() 378 if (surface->Type == EGL_PBUFFER_BIT) in _eglQuerySurface() [all …]
|
/external/mesa3d/src/gallium/winsys/svga/drm/ |
D | vmw_context.c | 80 } surface; member 168 for(i = 0; i < vswc->surface.used + vswc->surface.staged; ++i) { in vmw_swc_flush() 170 vswc->surface.handles[i]; in vmw_swc_flush() 172 vmw_svga_winsys_surface_reference(&vswc->surface.handles[i], NULL); in vmw_swc_flush() 175 vswc->surface.used = 0; in vmw_swc_flush() 176 vswc->surface.reserved = 0; in vmw_swc_flush() 221 vswc->surface.used + nr_relocs > vswc->surface.size || in vmw_swc_reserve() 232 assert(vswc->surface.used + nr_relocs <= vswc->surface.size); in vmw_swc_reserve() 236 vswc->surface.reserved = nr_relocs; in vmw_swc_reserve() 237 vswc->surface.staged = 0; in vmw_swc_reserve() [all …]
|
/external/harfbuzz_ng/util/ |
D | helper-cairo-ansi.cc | 34 helper_cairo_surface_write_to_ansi_stream (cairo_surface_t *surface, in helper_cairo_surface_write_to_ansi_stream() argument 38 unsigned int width = cairo_image_surface_get_width (surface); in helper_cairo_surface_write_to_ansi_stream() 39 unsigned int height = cairo_image_surface_get_height (surface); in helper_cairo_surface_write_to_ansi_stream() 40 if (cairo_image_surface_get_format (surface) != CAIRO_FORMAT_RGB24) { in helper_cairo_surface_write_to_ansi_stream() 43 if (cairo_image_surface_get_format (surface) == CAIRO_FORMAT_A8) { in helper_cairo_surface_write_to_ansi_stream() 47 cairo_mask_surface (cr, surface, 0, 0); in helper_cairo_surface_write_to_ansi_stream() 51 cairo_set_source_surface (cr, surface, 0, 0); in helper_cairo_surface_write_to_ansi_stream() 55 surface = new_surface; in helper_cairo_surface_write_to_ansi_stream() 57 cairo_surface_reference (surface); in helper_cairo_surface_write_to_ansi_stream() 59 unsigned int stride = cairo_image_surface_get_stride (surface); in helper_cairo_surface_write_to_ansi_stream() [all …]
|
D | helper-cairo.cc | 50 cairo_surface_t *surface; in _cairo_eps_surface_create_for_stream() local 52 surface = cairo_ps_surface_create_for_stream (write_func, closure, width, height); in _cairo_eps_surface_create_for_stream() 53 cairo_ps_surface_set_eps (surface, true); in _cairo_eps_surface_create_for_stream() 55 return surface; in _cairo_eps_surface_create_for_stream() 152 cairo_surface_t *surface; member 163 status = helper_cairo_surface_write_to_ansi_stream (closure->surface, in finalize_ansi() 178 cairo_surface_t *surface; in _cairo_ansi_surface_create_for_stream() local 184 surface = cairo_image_surface_create (CAIRO_FORMAT_A8, w, h); in _cairo_ansi_surface_create_for_stream() 188 surface = cairo_image_surface_create (CAIRO_FORMAT_RGB24, w, h); in _cairo_ansi_surface_create_for_stream() 191 surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, w, h); in _cairo_ansi_surface_create_for_stream() [all …]
|
/external/deqp/modules/egl/ |
D | teglQuerySurfaceTests.cpp | 64 …s (tcu::TestLog& log, const Library& egl, EGLDisplay display, EGLSurface surface, const EGLint* at… in logSurfaceAttributes() argument 67 …logSurfaceAttribute(log, attributes[ndx], eglu::querySurfaceInt(egl, display, surface, attributes[… in logSurfaceAttributes() 70 …onSurfaceAttributes (tcu::TestLog& log, const Library& egl, EGLDisplay display, EGLSurface surface) in logCommonSurfaceAttributes() argument 87 logSurfaceAttributes(log, egl, display, surface, attributes, DE_LENGTH_OF_ARRAY(attributes)); in logCommonSurfaceAttributes() 90 …erSurfaceAttributes (tcu::TestLog& log, const Library& egl, EGLDisplay display, EGLSurface surface) in logPbufferSurfaceAttributes() argument 101 logSurfaceAttributes(log, egl, display, surface, attributes, DE_LENGTH_OF_ARRAY(attributes)); in logPbufferSurfaceAttributes() 109 void checkCommonAttributes (EGLDisplay display, EGLSurface surface, const ConfigInfo& info); 110 void checkNonPbufferAttributes (EGLDisplay display, EGLSurface surface); 118 void QuerySurfaceCase::checkCommonAttributes (EGLDisplay display, EGLSurface surface, const ConfigI… in checkCommonAttributes() argument 127 const EGLint id = eglu::querySurfaceInt(egl, display, surface, EGL_CONFIG_ID); in checkCommonAttributes() [all …]
|
D | teglNegativeApiTests.cpp | 201 …eglu::UniqueSurface surface (egl, display, egl.createPbufferSurface(display, config, s_validGeneri… in init() 841 EGLSurface surface = EGL_NO_SURFACE; in init() 846 surface = eglCreatePbufferSurface(display, config, s_validGenericPbufferAttrib); in init() 862 if (surface != EGL_NO_SURFACE && context != EGL_NO_CONTEXT) in init() 869 expectFalse(eglMakeCurrent(display, surface, (EGLSurface)-1, context)); in init() 872 expectFalse(eglMakeCurrent(display, (EGLSurface)-1, surface, context)); in init() 878 if (surface) in init() 882 expectFalse(eglMakeCurrent(display, surface, surface, (EGLContext)-1)); in init() 888 if (surface != EGL_NO_SURFACE) in init() 892 expectFalse(eglMakeCurrent(display, surface, EGL_NO_SURFACE, EGL_NO_CONTEXT)); in init() [all …]
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_atom_framebuffer.c | 61 if (!strb->surface || in update_renderbuffer_surface() 62 strb->surface->format != format || in update_renderbuffer_surface() 63 strb->surface->texture != resource || in update_renderbuffer_surface() 64 strb->surface->width != rtt_width || in update_renderbuffer_surface() 65 strb->surface->height != rtt_height) { in update_renderbuffer_surface() 79 pipe_surface_reference(&strb->surface, NULL); in update_renderbuffer_surface() 81 strb->surface = pipe->create_surface(pipe, in update_renderbuffer_surface() 86 strb->surface->width, strb->surface->height, in update_renderbuffer_surface() 130 if (strb->surface) { in update_framebuffer_state() 132 strb->surface); in update_framebuffer_state() [all …]
|
D | st_cb_blit.c | 82 info->src.layer = srcRb->surface->u.tex.first_layer; in st_BlitFramebuffer_resolve() 84 info->dst.level = dstRb->surface->u.tex.level; in st_BlitFramebuffer_resolve() 85 info->dst.layer = dstRb->surface->u.tex.first_layer; in st_BlitFramebuffer_resolve() 116 info->src.layer = srcRb->surface->u.tex.first_layer; in st_BlitFramebuffer_resolve() 118 info->dst.level = dstRb->surface->u.tex.level; in st_BlitFramebuffer_resolve() 119 info->dst.layer = dstRb->surface->u.tex.first_layer; in st_BlitFramebuffer_resolve() 132 info->src.layer = srcRb->surface->u.tex.first_layer; in st_BlitFramebuffer_resolve() 134 info->dst.level = dstRb->surface->u.tex.level; in st_BlitFramebuffer_resolve() 135 info->dst.layer = dstRb->surface->u.tex.first_layer; in st_BlitFramebuffer_resolve() 236 struct pipe_surface *dstSurf = dstRb->surface; in st_BlitFramebuffer() [all …]
|
/external/skia/gm/ |
D | discard.cpp | 48 SkSurface* surface = SkSurface::NewRenderTarget(context, SkBudgeted::kNo, info); in onDraw() local 50 if (nullptr == surface) { in onDraw() 59 surface->getCanvas()->discard(); in onDraw() 64 surface->getCanvas()->drawColor(color); in onDraw() 67 surface->getCanvas()->clear(color); in onDraw() 73 surface->getCanvas()->drawPaint(paint); in onDraw() 76 surface->draw(canvas, 10.f*x, 10.f*y, nullptr); in onDraw() 80 surface->getCanvas()->discard(); in onDraw() 81 surface->unref(); in onDraw()
|
/external/mesa3d/src/gallium/state_trackers/xvmc/tests/ |
D | test_surface.c | 43 XvMCSurface surface = {0}; in main() local 74 assert(XvMCCreateSurface(display, NULL, &surface) == XvMCBadContext); in main() 78 assert(XvMCCreateSurface(display, &context, &surface) == Success); in main() 80 assert(surface.surface_id != 0); in main() 82 assert(surface.context_id == context.context_id); in main() 84 assert(surface.surface_type_id == surface_type_id); in main() 86 assert(surface.width == width && surface.height == height); in main() 88 assert(XvMCDestroySurface(display, &surface) == Success); in main()
|
/external/mesa3d/src/gallium/drivers/noop/ |
D | noop_state.c | 109 struct pipe_surface *surface = CALLOC_STRUCT(pipe_surface); in noop_create_surface() local 111 if (surface == NULL) in noop_create_surface() 113 pipe_reference_init(&surface->reference, 1); in noop_create_surface() 114 pipe_resource_reference(&surface->texture, texture); in noop_create_surface() 115 surface->context = ctx; in noop_create_surface() 116 surface->format = surf_tmpl->format; in noop_create_surface() 117 surface->width = texture->width0; in noop_create_surface() 118 surface->height = texture->height0; in noop_create_surface() 119 surface->usage = surf_tmpl->usage; in noop_create_surface() 120 surface->texture = texture; in noop_create_surface() [all …]
|
/external/mesa3d/src/gallium/state_trackers/vdpau/ |
D | bitmap.c | 43 VdpBitmapSurface *surface) in vlVdpBitmapSurfaceCreate() argument 62 if (!surface) in vlVdpBitmapSurfaceCreate() 100 *surface = vlAddDataHTAB(vlsurface); in vlVdpBitmapSurfaceCreate() 101 if (*surface == 0) { in vlVdpBitmapSurfaceCreate() 113 vlVdpBitmapSurfaceDestroy(VdpBitmapSurface surface) in vlVdpBitmapSurfaceDestroy() argument 117 vlsurface = vlGetDataHTAB(surface); in vlVdpBitmapSurfaceDestroy() 125 vlRemoveDataHTAB(surface); in vlVdpBitmapSurfaceDestroy() 135 vlVdpBitmapSurfaceGetParameters(VdpBitmapSurface surface, in vlVdpBitmapSurfaceGetParameters() argument 143 vlsurface = vlGetDataHTAB(surface); in vlVdpBitmapSurfaceGetParameters() 164 vlVdpBitmapSurfacePutBitsNative(VdpBitmapSurface surface, in vlVdpBitmapSurfacePutBitsNative() argument [all …]
|
D | device.c | 262 vlVdpResolveDelayedRendering(vlVdpDevice *dev, struct pipe_surface *surface, struct u_rect *dirty_a… in vlVdpResolveDelayedRendering() argument 273 vlsurface = vlGetDataHTAB(dev->delayed_rendering.surface); in vlVdpResolveDelayedRendering() 277 if (!surface) { in vlVdpResolveDelayedRendering() 278 surface = vlsurface->surface; in vlVdpResolveDelayedRendering() 282 vl_compositor_render(cstate, &dev->compositor, surface, dirty_area); in vlVdpResolveDelayedRendering() 284 dev->delayed_rendering.surface = VDP_INVALID_HANDLE; in vlVdpResolveDelayedRendering() 288 if (surface->texture != vlsurface->sampler_view->texture) { in vlVdpResolveDelayedRendering() 289 struct pipe_resource *res = surface->texture; in vlVdpResolveDelayedRendering() 301 vlVdpSave4DelayedRendering(vlVdpDevice *dev, VdpOutputSurface surface, struct vl_compositor_state *… in vlVdpSave4DelayedRendering() argument 307 dev->delayed_rendering.surface = surface; in vlVdpSave4DelayedRendering()
|
D | output.c | 47 VdpOutputSurface *surface) in vlVdpOutputSurfaceCreate() argument 104 vlsurface->surface = pipe->create_surface(pipe, res, &surf_templ); in vlVdpOutputSurfaceCreate() 105 if (!vlsurface->surface) { in vlVdpOutputSurfaceCreate() 112 *surface = vlAddDataHTAB(vlsurface); in vlVdpOutputSurfaceCreate() 113 if (*surface == 0) { in vlVdpOutputSurfaceCreate() 133 vlVdpOutputSurfaceDestroy(VdpOutputSurface surface) in vlVdpOutputSurfaceDestroy() argument 138 vlsurface = vlGetDataHTAB(surface); in vlVdpOutputSurfaceDestroy() 147 pipe_surface_reference(&vlsurface->surface, NULL); in vlVdpOutputSurfaceDestroy() 153 vlRemoveDataHTAB(surface); in vlVdpOutputSurfaceDestroy() 163 vlVdpOutputSurfaceGetParameters(VdpOutputSurface surface, in vlVdpOutputSurfaceGetParameters() argument [all …]
|
/external/mesa3d/src/gallium/drivers/r300/ |
D | r300_texture.c | 1079 struct r300_surface* surface = CALLOC_STRUCT(r300_surface); in r300_create_surface_custom() local 1084 if (surface) { in r300_create_surface_custom() 1087 pipe_reference_init(&surface->base.reference, 1); in r300_create_surface_custom() 1088 pipe_resource_reference(&surface->base.texture, texture); in r300_create_surface_custom() 1089 surface->base.context = ctx; in r300_create_surface_custom() 1090 surface->base.format = surf_tmpl->format; in r300_create_surface_custom() 1091 surface->base.width = u_minify(width0_override, level); in r300_create_surface_custom() 1092 surface->base.height = u_minify(height0_override, level); in r300_create_surface_custom() 1093 surface->base.usage = surf_tmpl->usage; in r300_create_surface_custom() 1094 surface->base.u.tex.level = level; in r300_create_surface_custom() [all …]
|
/external/webrtc/webrtc/modules/audio_processing/test/android/apmtest/jni/ |
D | main.c | 53 EGLSurface surface; member 81 EGLSurface surface; in engine_init_display() local 101 surface = eglCreateWindowSurface(display, config, engine->app->window, NULL); in engine_init_display() 104 if (eglMakeCurrent(display, surface, surface, context) == EGL_FALSE) { in engine_init_display() 109 eglQuerySurface(display, surface, EGL_WIDTH, &w); in engine_init_display() 110 eglQuerySurface(display, surface, EGL_HEIGHT, &h); in engine_init_display() 114 engine->surface = surface; in engine_init_display() 142 eglSwapBuffers(engine->display, engine->surface); in engine_draw_frame() 154 if (engine->surface != EGL_NO_SURFACE) { in engine_term_display() 155 eglDestroySurface(engine->display, engine->surface); in engine_term_display() [all …]
|
/external/mesa3d/src/gallium/drivers/trace/ |
D | tr_texture.c | 78 struct pipe_surface *surface) in trace_surf_create() argument 82 if(!surface) in trace_surf_create() 85 assert(surface->texture == tr_res->resource); in trace_surf_create() 91 memcpy(&tr_surf->base, surface, sizeof(struct pipe_surface)); in trace_surf_create() 96 tr_surf->surface = surface; in trace_surf_create() 101 pipe_surface_reference(&surface, NULL); in trace_surf_create() 110 pipe_surface_reference(&tr_surf->surface, NULL); in trace_surf_destroy()
|
/external/deqp/framework/egl/wrapper/ |
D | eglwFuncPtrLibraryImpl.inl | 12 EGLBoolean FuncPtrLibrary::bindTexImage (EGLDisplay dpy, EGLSurface surface, EGLint buffer) const argument 14 return m_egl.bindTexImage(dpy, surface, buffer); 32 EGLBoolean FuncPtrLibrary::copyBuffers (EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType tar… argument 34 return m_egl.copyBuffers(dpy, surface, target); 117 EGLBoolean FuncPtrLibrary::destroySurface (EGLDisplay dpy, EGLSurface surface) const 119 return m_egl.destroySurface(dpy, surface); 197 EGLBoolean FuncPtrLibrary::lockSurfaceKHR (EGLDisplay dpy, EGLSurface surface, const EGLint *attrib… argument 199 return m_egl.lockSurfaceKHR(dpy, surface, attrib_list); 222 EGLBoolean FuncPtrLibrary::querySurface (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLi… argument 224 return m_egl.querySurface(dpy, surface, attribute, value); [all …]
|
/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_surface.h | 88 svga_surface(struct pipe_surface *surface) in svga_surface() argument 90 assert(surface); in svga_surface() 91 return (struct svga_surface *)surface; in svga_surface() 96 svga_surface_const(const struct pipe_surface *surface) in svga_surface_const() argument 98 assert(surface); in svga_surface_const() 99 return (const struct svga_surface *)surface; in svga_surface_const()
|