Searched refs:surface (Results 276 - 300 of 446) sorted by relevance

<<1112131415161718

/external/skia/src/image/
H A DSkImage_Raster.cpp257 auto surface(SkSurface::MakeRaster(info));
258 if (!surface) {
261 surface->getCanvas()->clear(0);
262 surface->getCanvas()->drawImage(this, SkIntToScalar(-subset.x()), SkIntToScalar(-subset.y()),
264 return surface->makeImageSnapshot();
341 // When we're a snapshot from a surface, our bitmap may not be marked immutable
/external/swiftshader/src/D3D9/
H A DDirect3DDevice9.hpp68 long __stdcall ColorFill(IDirect3DSurface9 *surface, const RECT *rect, D3DCOLOR color);
71 long __stdcall CreateDepthStencilSurface(unsigned int width, unsigned int height, D3DFORMAT format, D3DMULTISAMPLE_TYPE multiSample, unsigned long multiSampleQuality, int discard, IDirect3DSurface9 **surface, void **sharedHandle);
73 long __stdcall CreateOffscreenPlainSurface(unsigned int width, unsigned int height, D3DFORMAT format, D3DPOOL pool, IDirect3DSurface9 **surface, void **sharedHandle);
76 long __stdcall CreateRenderTarget(unsigned int width, unsigned int height, D3DFORMAT format, D3DMULTISAMPLE_TYPE multiSample, unsigned long multiSampleQuality, int lockable, IDirect3DSurface9 **surface, void **sharedHandle);
202 bool validRectangle(const RECT *rect, IDirect3DSurface9 *surface);
/external/deqp/modules/egl/
H A DteglNativeColorMappingTests.cpp21 * \brief Test for mapping client color values to native surface colors
326 eglu::UniqueSurface surface (egl, display, eglu::createWindowSurface(nativeDisplay, nativeWindow, display, config, DE_NULL));
333 EGLU_CHECK_CALL(egl, makeCurrent(display, *surface, *surface, context));
345 EGLU_CHECK_CALL(egl, swapBuffers(display, *surface));
369 eglu::UniqueSurface surface (egl, display, eglu::createPixmapSurface(nativeDisplay, nativePixmap, display, config, DE_NULL));
376 EGLU_CHECK_CALL(egl, makeCurrent(display, *surface, *surface, context));
409 eglu::UniqueSurface surface (egl, display, egl.createPbufferSurface(display, config, DE_NULL));
416 EGLU_CHECK_CALL(egl, makeCurrent(display, *surface, *surfac
[all...]
H A DteglCreateContextExtTests.cpp181 void executeForSurface (EGLConfig config, EGLSurface surface);
902 eglu::UniqueSurface surface (egl, m_display, egl.createPbufferSurface(m_display, config, attribList));
905 executeForSurface(config, *surface);
912 eglu::UniqueSurface surface (egl, m_display, eglu::createWindowSurface(m_eglTestCtx.getNativeDisplay(), *window, m_display, config, DE_NULL));
914 executeForSurface(config, *surface);
921 eglu::UniqueSurface surface (egl, m_display, eglu::createPixmapSurface(m_eglTestCtx.getNativeDisplay(), *pixmap, m_display, config, DE_NULL));
923 executeForSurface(config, *surface);
925 else // No supported surface type
926 TCU_FAIL("Invalid or empty surface type bits");
947 void CreateContextExtCase::executeForSurface (EGLConfig config, EGLSurface surface) argument
[all...]
/external/swiftshader/src/OpenGL/libGLES_CM/
H A DTexture.cpp481 void Texture2D::bindTexImage(egl::Surface *surface) argument
485 switch(surface->getInternalFormat())
511 image[0] = surface->getRenderTarget();
513 mSurface = surface;
854 egl::Image *surface = new egl::Image(width, height, format, multiSampleDepth, lockable);
856 if(!surface)
862 return surface;
/external/mesa3d/src/gallium/drivers/r600/
H A Devergreen_state.c1030 width = tmp->surface.level[0].npix_x;
1031 height = tmp->surface.level[0].npix_y;
1032 depth = tmp->surface.level[0].npix_z;
1033 pitch = tmp->surface.level[0].nblk_x * util_format_get_blockwidth(state->format);
1036 switch (tmp->surface.level[0].mode) {
1051 tile_split = tmp->surface.tile_split;
1052 macro_aspect = tmp->surface.mtilea;
1053 bankw = tmp->surface.bankw;
1054 bankh = tmp->surface.bankh;
1085 view->tex_resource_words[2] = (tmp->surface
[all...]
H A Dr600_resource.h58 struct radeon_surface surface; member in struct:r600_texture
H A Dr600_state.c1057 width = tmp->surface.level[offset_level].npix_x;
1058 height = tmp->surface.level[offset_level].npix_y;
1059 depth = tmp->surface.level[offset_level].npix_z;
1060 pitch = tmp->surface.level[offset_level].nblk_x * util_format_get_blockwidth(state->format);
1069 switch (tmp->surface.level[offset_level].mode) {
1094 view->tex_resource_words[2] = tmp->surface.level[offset_level].offset >> 8;
1095 if (offset_level >= tmp->surface.last_level) {
1096 view->tex_resource_words[3] = tmp->surface.level[offset_level].offset >> 8;
1098 view->tex_resource_words[3] = tmp->surface.level[offset_level + 1].offset >> 8;
1275 offset = rtex->surface
[all...]
/external/mesa3d/src/gallium/drivers/radeonsi/
H A Dsi_state.c1472 offset = rtex->surface.level[level].offset;
1473 if (rtex->surface.level[level].mode < RADEON_SURF_MODE_1D) {
1474 offset += rtex->surface.level[level].slice_size *
1477 pitch = (rtex->surface.level[level].nblk_x) / 8 - 1;
1478 slice = (rtex->surface.level[level].nblk_x * rtex->surface.level[level].nblk_y) / 64;
1484 switch (rtex->surface.level[level].mode) {
1590 if (rtex->surface.level[level].mode < RADEON_SURF_MODE_1D) {
1634 z_offs += rtex->surface.level[level].offset;
1637 s_offs += rtex->surface
[all...]
/external/mesa3d/src/mesa/state_tracker/
H A Dst_cb_clear.c390 const GLboolean isDS = util_format_is_depth_and_stencil(strb->surface->format);
414 const GLboolean isDS = util_format_is_depth_and_stencil(strb->surface->format);
432 * value held in the surface when it comes time to issue the clear,
472 if (!strb || !strb->surface)
487 if (strb->surface) {
500 if (strb->surface) {
511 if (strb->surface) {
H A Dst_cb_eglimage.c92 pipe_surface_reference(&strb->surface, ps);
119 /* switch to surface based */
/external/skia/tools/viewer/sk_app/
H A DVulkanWindowContext.cpp172 // Pick our surface format. For now, just make sure it matches our sRGB request:
208 swapchainCreateInfo.surface = fSurface;
528 SkSurface* surface = fSurfaces[backbuffer->fImageIndex].get(); local
529 surface->getRenderTargetHandle((GrBackendObject*)&imageInfo,
533 return sk_ref_sp(surface);
540 SkSurface* surface = fSurfaces[backbuffer->fImageIndex].get(); local
541 surface->getRenderTargetHandle((GrBackendObject*)&imageInfo,
/external/icu/icu4c/source/samples/layout/
H A Dcgnomelayout.c220 rs_surface *surface = rs_gnomeRenderingSurfaceOpen(widget); local
222 pf_draw(context->paragraph, surface, firstLine, (maxLines < lastLine)? maxLines : lastLine);
224 rs_gnomeRenderingSurfaceClose(surface);
/external/mesa3d/src/gallium/drivers/trace/
H A Dtr_context.c64 struct pipe_surface *surface)
69 if(!surface)
72 assert(surface->texture);
73 if(!surface->texture)
74 return surface;
76 tr_surf = trace_surface(surface);
78 assert(tr_surf->surface);
79 assert(tr_surf->surface->texture->screen == tr_scr->screen);
81 return tr_surf->surface;
933 * surface
63 trace_surface_unwrap(struct trace_context *tr_ctx, struct pipe_surface *surface) argument
977 struct pipe_surface *surface = tr_surf->surface; local
[all...]
/external/mesa3d/src/gallium/state_trackers/d3d1x/dxgi/src/
H A Ddxgi_native.cpp616 * surface and the contents become undefined.
880 struct native_surface* surface; member in struct:GalliumDXGISwapChain
905 : GalliumDXGIObject<IDXGISwapChain, GalliumDXGIFactory>(factory), desc(p_desc), surface(0)
948 if(surface)
950 surface->destroy(surface);
951 surface = 0;
977 surface = adapter->display->create_window_surface(adapter->display, (EGLNativeWindowType)window, config);
978 surface->user_data = this;
1052 if(!surface
[all...]
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
H A DMediaRecorderTest.java130 Surface surface = Robolectric.newInstanceOf(Surface.class);
131 mediaRecorder.setPreviewDisplay(surface);
133 assertThat(shadowMediaRecorder.getPreviewDisplay(), sameInstance(surface));
/external/skia/samplecode/
H A DSampleAtlas.cpp44 auto surface(SkSurface::MakeRaster(info));
45 SkCanvas* canvas = surface->getCanvas();
65 return surface->makeImageSnapshot();
/external/ImageMagick/coders/
H A Dpango.c110 *surface;
396 surface=cairo_image_surface_create_for_data(pixels,CAIRO_FORMAT_ARGB32,
398 cairo_image=cairo_create(surface);
408 cairo_surface_destroy(surface);
412 Convert surface to image.
108 *surface; local
/external/mesa3d/src/glx/apple/
H A Dapple_glx_drawable.h110 struct apple_glx_surface surface; member in union:apple_glx_drawable::__anon15019
/external/skia/tools/skpbench/
H A Dskpbench.cpp307 sk_sp<SkSurface> surface = local
309 if (!surface) {
322 SkCanvas* canvas = surface->getCanvas();
339 if (!surface->getCanvas()->readPixels(&bmp, 0, 0)) {
/external/swiftshader/src/OpenGL/libGLESv2/
H A DDevice.cpp280 egl::Image *surface = new egl::Image(width, height, format, multiSampleDepth, lockable); local
282 if(!surface)
288 return surface;
299 egl::Image *surface = new egl::Image(width, height, format, multiSampleDepth, lockable); local
301 if(!surface)
307 return surface;
851 bool Device::validRectangle(const sw::Rect *rect, sw::Surface *surface) argument
868 if(rect->x1 > (int)surface->getWidth() || rect->y1 > (int)surface->getHeight())
H A DDevice.hpp75 bool validRectangle(const sw::Rect *rect, sw::Surface *surface);
/external/vulkan-validation-layers/demos/smoke/
H A DShell.h59 VkSurfaceKHR surface; member in struct:Shell::Context
/external/vulkan-validation-layers/layers/
H A Dswapchain.h39 SWAPCHAIN_CREATE_UNSUPPORTED_SURFACE, // Called vkCreateSwapchainKHR() with a pCreateInfo->surface that wasn't seen as supported
68 SWAPCHAIN_SURFACE_NOT_SUPPORTED_WITH_QUEUE, // A surface is not supported by a given queueFamilyIndex, as seen by
140 VkSurfaceKHR surface; member in struct:SwpSurface
154 // surface allocates and initializes this array to false for all
180 // TODO: Record/use this info per-surface, not per-device, once a
181 // non-dispatchable surface object is added to WSI:
186 // TODO: Record/use this info per-surface, not per-device, once a
187 // non-dispatchable surface object is added to WSI:
192 // TODO: Record/use this info per-surface, not per-device, once a
193 // non-dispatchable surface objec
[all...]
/external/skia/src/gpu/gl/
H A DGrGLGpu.cpp719 static bool check_write_and_transfer_input(GrGLTexture* glTex, GrSurface* surface, argument
726 if (GrPixelConfigIsSRGB(surface->config()) != GrPixelConfigIsSRGB(config)) {
738 bool GrGLGpu::onWritePixels(GrSurface* surface, argument
742 GrGLTexture* glTex = static_cast<GrGLTexture*>(surface->asTexture());
744 if (!check_write_and_transfer_input(glTex, surface, config)) {
765 bool GrGLGpu::onTransferPixels(GrSurface* surface, argument
769 GrGLTexture* glTex = static_cast<GrGLTexture*>(surface->asTexture());
771 if (!check_write_and_transfer_input(glTex, surface, config)) {
839 * @param desc The surface descriptor for the texture being created.
949 * @param desc The surface descripto
2376 onReadPixels(GrSurface* surface, int left, int top, int width, int height, GrPixelConfig config, void* buffer, size_t rowBytes) argument
3422 bindSurfaceFBOForPixelOps(GrSurface* surface, GrGLenum fboTarget, GrGLIRect* viewport, TempFBOTarget tempFBOTarget) argument
3454 unbindTextureFBOForPixelOps(GrGLenum fboTarget, GrSurface* surface) argument
[all...]

Completed in 2754 milliseconds

<<1112131415161718