Home
last modified time | relevance | path

Searched refs:drawable (Results 1 – 25 of 280) sorted by relevance

12345678910>>...12

/third_party/mesa3d/src/gallium/frontends/dri/
Ddri_drawable.c51 struct dri_drawable *drawable = in dri_st_framebuffer_validate() local
53 struct dri_screen *screen = dri_screen(drawable->sPriv); in dri_st_framebuffer_validate()
59 drawable->stvis.samples > 1 ? drawable->msaa_textures in dri_st_framebuffer_validate()
60 : drawable->textures; in dri_st_framebuffer_validate()
67 new_mask = (statt_mask & ~drawable->texture_mask); in dri_st_framebuffer_validate()
75 lastStamp = drawable->dPriv->lastStamp; in dri_st_framebuffer_validate()
76 new_stamp = (drawable->texture_stamp != lastStamp); in dri_st_framebuffer_validate()
79 if (new_stamp && drawable->update_drawable_info) in dri_st_framebuffer_validate()
80 drawable->update_drawable_info(drawable); in dri_st_framebuffer_validate()
82 drawable->allocate_textures(ctx, drawable, statts, count); in dri_st_framebuffer_validate()
[all …]
Dkopper.c82 struct dri_drawable *drawable = dri_drawable(dPriv); in kopper_invalidate_drawable() local
84 drawable->texture_stamp = dPriv->lastStamp - 1; in kopper_invalidate_drawable()
86 p_atomic_inc(&drawable->base.stamp); in kopper_invalidate_drawable()
207 struct dri_drawable *drawable = dri_drawable(dPriv); in drisw_present_texture() local
208 struct dri_screen *screen = dri_screen(drawable->sPriv); in drisw_present_texture()
210 screen->base.screen->flush_frontbuffer(screen->base.screen, pipe, ptex, 0, 0, drawable, sub_box); in drisw_present_texture()
214 dri_image_drawable_get_buffers(struct dri_drawable *drawable,
486 struct dri_drawable *drawable, in kopper_allocate_textures() argument
490 struct dri_screen *screen = dri_screen(drawable->sPriv); in kopper_allocate_textures()
496 __DRIdrawable *dri_drawable = drawable->dPriv; in kopper_allocate_textures()
[all …]
Ddrisw.c149 drisw_update_drawable_info(struct dri_drawable *drawable) in drisw_update_drawable_info() argument
151 __DRIdrawable *dPriv = drawable->dPriv; in drisw_update_drawable_info()
158 drisw_get_image(struct dri_drawable *drawable, in drisw_get_image() argument
162 __DRIdrawable *dPriv = drawable->dPriv; in drisw_get_image()
170 drisw_put_image(struct dri_drawable *drawable, in drisw_put_image() argument
173 __DRIdrawable *dPriv = drawable->dPriv; in drisw_put_image()
179 drisw_put_image2(struct dri_drawable *drawable, in drisw_put_image2() argument
183 __DRIdrawable *dPriv = drawable->dPriv; in drisw_put_image2()
189 drisw_put_image_shm(struct dri_drawable *drawable, in drisw_put_image_shm() argument
195 __DRIdrawable *dPriv = drawable->dPriv; in drisw_put_image_shm()
[all …]
Ddri2.c81 struct dri_drawable *drawable = dri_drawable(dPriv); in dri2_invalidate_drawable() local
84 drawable->dPriv->lastStamp = drawable->dPriv->dri2.stamp; in dri2_invalidate_drawable()
85 drawable->texture_mask = 0; in dri2_invalidate_drawable()
87 p_atomic_inc(&drawable->base.stamp); in dri2_invalidate_drawable()
102 dri2_drawable_get_buffers(struct dri_drawable *drawable, in dri2_drawable_get_buffers() argument
106 __DRIdrawable *dri_drawable = drawable->dPriv; in dri2_drawable_get_buffers()
107 const __DRIdri2LoaderExtension *loader = drawable->sPriv->dri2.loader; in dri2_drawable_get_buffers()
116 with_format = dri_with_format(drawable->sPriv); in dri2_drawable_get_buffers()
129 dri_drawable_get_format(drawable, atts[i], &format, &bind); in dri2_drawable_get_buffers()
213 dri_image_drawable_get_buffers(struct dri_drawable *drawable,
[all …]
/third_party/mesa3d/src/glx/apple/
Dapple_glx_context.c153 ac->drawable = NULL; in apple_glx_create_context()
260 if (ac->drawable) { in apple_glx_destroy_context()
261 ac->drawable->destroy(ac->drawable); in apple_glx_destroy_context()
285 GLXDrawable drawable) in apple_glx_make_current_context() argument
295 __func__, (void *) oldac, (void *) ac, drawable); in apple_glx_make_current_context()
304 if (ac && ac->drawable && ac->drawable->drawable == drawable) { in apple_glx_make_current_context()
322 if (oldac->drawable) { in apple_glx_make_current_context()
323 oldac->drawable->destroy(oldac->drawable); in apple_glx_make_current_context()
324 oldac->drawable = NULL; in apple_glx_make_current_context()
334 if (None == drawable) { in apple_glx_make_current_context()
[all …]
Dapple_glx_surface.c48 update_viewport_and_scissor(Display * dpy, GLXDrawable drawable) in update_viewport_and_scissor() argument
54 XGetGeometry(dpy, drawable, &root, &x, &y, &width, &height, &bd, &depth); in update_viewport_and_scissor()
84 update_viewport_and_scissor(ac->drawable->display, in surface_make_current()
85 ac->drawable->drawable); in surface_make_current()
89 apple_glx_diagnostic("%s: drawable 0x%lx\n", __func__, d->drawable); in surface_make_current()
119 d->drawable); in surface_destroy()
123 d->drawable, s->uid); in surface_destroy()
139 assert(None != d->drawable); in create_surface()
143 if (XAppleDRICreateSurface(dpy, screen, d->drawable, id, key, &s->uid)) { in create_surface()
154 " with uid %u\n", __func__, d->drawable, s->uid); in create_surface()
[all …]
Dglx_empty.c56 glXGetSyncValuesOML(Display * dpy, GLXDrawable drawable, in glXGetSyncValuesOML() argument
60 (void) drawable; in glXGetSyncValuesOML()
68 glXSwapBuffersMscOML(Display * dpy, GLXDrawable drawable, in glXSwapBuffersMscOML() argument
72 (void) drawable; in glXSwapBuffersMscOML()
81 glXWaitForMscOML(Display * dpy, GLXDrawable drawable, in glXWaitForMscOML() argument
87 (void) drawable; in glXWaitForMscOML()
99 glXWaitForSbcOML(Display * dpy, GLXDrawable drawable, in glXWaitForSbcOML() argument
104 (void) drawable; in glXWaitForSbcOML()
138 glXCopySubBufferMESA(Display * dpy, GLXDrawable drawable, in glXCopySubBufferMESA() argument
142 (void) drawable; in glXCopySubBufferMESA()
[all …]
Dapple_glx_drawable.c73 apple_glx_find_drawable(Display * dpy, GLXDrawable drawable) in apple_glx_find_drawable() argument
80 if (i->drawable == drawable) { in apple_glx_find_drawable()
239 common_init(Display * dpy, GLXDrawable drawable, struct apple_glx_drawable *d) in common_init() argument
246 d->drawable = drawable; in common_init()
320 GLXDrawable drawable, in apple_glx_drawable_create() argument
333 common_init(dpy, drawable, d); in apple_glx_drawable_create()
404 XGetGeometry(dpy, d->drawable, &root, &x, &y, &width, &height, &bd, in apple_glx_garbage_collect_drawables()
442 apple_glx_drawable_find_by_type(GLXDrawable drawable, int type, int flags) in apple_glx_drawable_find_by_type() argument
449 if (d->type == type && d->drawable == drawable) { in apple_glx_drawable_find_by_type()
468 apple_glx_drawable_find(GLXDrawable drawable, int flags) in apple_glx_drawable_find() argument
[all …]
Dappledri.c245 XAppleDRICreateSurface(dpy, screen, drawable, client_id, key, uid) in XAppleDRICreateSurface() argument
248 Drawable drawable;
265 req->drawable = drawable;
284 XAppleDRIDestroySurface(dpy, screen, drawable) in XAppleDRIDestroySurface() argument
287 Drawable drawable;
300 req->drawable = drawable;
308 XAppleDRICreateSharedBuffer(Display * dpy, int screen, Drawable drawable, in XAppleDRICreateSharedBuffer() argument
323 req->drawable = drawable; in XAppleDRICreateSharedBuffer()
357 XAppleDRISwapBuffers(Display * dpy, int screen, Drawable drawable) in XAppleDRISwapBuffers() argument
369 req->drawable = drawable; in XAppleDRISwapBuffers()
[all …]
Dapple_glx_drawable.h103 GLXDrawable drawable; member
146 GLXDrawable drawable);
151 GLXDrawable drawable,
159 GLXDrawable drawable,
171 drawable, int type,
174 struct apple_glx_drawable *apple_glx_drawable_find(GLXDrawable drawable,
178 bool apple_glx_drawable_destroy_by_type(Display * dpy, GLXDrawable drawable,
186 bool apple_glx_surface_create(Display * dpy, int screen, GLXDrawable drawable,
/third_party/mesa3d/src/glx/
Dglx_pbuffer.c63 ChangeDrawableAttribute(Display * dpy, GLXDrawable drawable, in ChangeDrawableAttribute() argument
74 if ((priv == NULL) || (dpy == NULL) || (drawable == 0)) { in ChangeDrawableAttribute()
92 req->drawable = drawable; in ChangeDrawableAttribute()
105 output[0] = (CARD32) drawable; in ChangeDrawableAttribute()
116 pdraw = GetGLXDRIDrawable(dpy, drawable); in ChangeDrawableAttribute()
174 XID drawable, XID glxdrawable, int type, in CreateDRIDrawable() argument
191 pdraw = psc->driScreen->createDrawable(psc, drawable, glxdrawable, in CreateDRIDrawable()
213 DestroyDRIDrawable(Display *dpy, GLXDrawable drawable) in DestroyDRIDrawable() argument
217 __GLXDRIdrawable *pdraw = GetGLXDRIDrawable(dpy, drawable); in DestroyDRIDrawable()
221 __glxHashDelete(priv->drawHash, drawable); in DestroyDRIDrawable()
[all …]
Dg_glxglvnddispatchfuncs.c108 static void dispatch_BindTexImageEXT(Display *dpy, GLXDrawable drawable, in dispatch_BindTexImageEXT() argument
114 dd = GetDispatchFromDrawable(dpy, drawable); in dispatch_BindTexImageEXT()
122 pBindTexImageEXT(dpy, drawable, buffer, attrib_list); in dispatch_BindTexImageEXT()
407 static void dispatch_GetSelectedEventSGIX(Display *dpy, GLXDrawable drawable, in dispatch_GetSelectedEventSGIX() argument
413 dd = GetDispatchFromDrawable(dpy, drawable); in dispatch_GetSelectedEventSGIX()
421 pGetSelectedEventSGIX(dpy, drawable, mask); in dispatch_GetSelectedEventSGIX()
504 static void dispatch_ReleaseTexImageEXT(Display *dpy, GLXDrawable drawable, in dispatch_ReleaseTexImageEXT() argument
510 dd = GetDispatchFromDrawable(dpy, drawable); in dispatch_ReleaseTexImageEXT()
518 pReleaseTexImageEXT(dpy, drawable, buffer); in dispatch_ReleaseTexImageEXT()
523 static void dispatch_SelectEventSGIX(Display *dpy, GLXDrawable drawable, in dispatch_SelectEventSGIX() argument
[all …]
Ddri2.c103 pdraw = dri2GetGlxDrawableFromXDrawableId(dpy, awire->drawable); in DRI2WireToEvent()
108 aevent->type = dri2GetSwapEventType(dpy, awire->drawable); in DRI2WireToEvent()
115 aevent->drawable = awire->drawable; in DRI2WireToEvent()
133 glxDraw = GetGLXDrawable(dpy, pdraw->drawable); in DRI2WireToEvent()
149 dri2InvalidateBuffers(dpy, awire->drawable); in DRI2WireToEvent()
366 DRI2CreateDrawable(Display * dpy, XID drawable) in DRI2CreateDrawable() argument
377 req->drawable = drawable; in DRI2CreateDrawable()
383 DRI2DestroyDrawable(Display * dpy, XID drawable) in DRI2DestroyDrawable() argument
396 req->drawable = drawable; in DRI2DestroyDrawable()
402 DRI2GetBuffers(Display * dpy, XID drawable, in DRI2GetBuffers() argument
[all …]
/third_party/openGLES/extensions/EXT/
DEXT_swap_control.txt49 for a particular drawable. It also allows an application to query
51 interval of a drawable.
72 drawables. BadWindow should be returned if the <drawable> argument
74 the swap interval of a non-window drawable should be undefined.
79 RESOVLED: These are both properties of a GLX drawable, so they are
85 GLXDrawable drawable,
123 periods per buffer swap for a particular GLX drawable (e.g. a value
126 is first called on the drawable subsequent to the glXSwapIntervalEXT
140 interval for a particular drawable can be obtained by calling
143 glXQueryDrawable is undefined if the drawable is not a GLXWindow
[all …]
/third_party/skia/third_party/externals/opengl-registry/extensions/EXT/
DEXT_swap_control.txt49 for a particular drawable. It also allows an application to query
51 interval of a drawable.
72 drawables. BadWindow should be returned if the <drawable> argument
74 the swap interval of a non-window drawable should be undefined.
79 RESOVLED: These are both properties of a GLX drawable, so they are
85 GLXDrawable drawable,
123 periods per buffer swap for a particular GLX drawable (e.g. a value
126 is first called on the drawable subsequent to the glXSwapIntervalEXT
140 interval for a particular drawable can be obtained by calling
143 glXQueryDrawable is undefined if the drawable is not a GLXWindow
[all …]
/third_party/skia/tests/
DSkGlyphBufferTest.cpp161 SkDrawableGlyphBuffer drawable; in DEF_TEST() local
162 drawable.ensureSize(100); in DEF_TEST()
163 drawable.startSource(source); in DEF_TEST()
164 for (auto [i, packedID, pos] : SkMakeEnumerate(drawable.input())) { in DEF_TEST()
171 SkDrawableGlyphBuffer drawable; in DEF_TEST() local
172 drawable.ensureSize(100); in DEF_TEST()
175 drawable.startBitmapDevice(source, {100, 100}, matrix, rounding); in DEF_TEST()
176 for (auto [i, packedID, pos] : SkMakeEnumerate(drawable.input())) { in DEF_TEST()
185 SkDrawableGlyphBuffer drawable; in DEF_TEST() local
186 drawable.ensureSize(100); in DEF_TEST()
[all …]
/third_party/mesa3d/src/glx/windows/
Dwindows_drawable.c163 windows_destroy_drawable(windowsDrawable *drawable) in windows_destroy_drawable() argument
165 switch (drawable->callbacks->type) in windows_destroy_drawable()
173 SelectObject(drawable->dibDC, drawable->hOldDIB); in windows_destroy_drawable()
176 DeleteDC(drawable->dibDC); in windows_destroy_drawable()
179 DeleteObject(drawable->hDIB); in windows_destroy_drawable()
182 CloseHandle(drawable->hSection); in windows_destroy_drawable()
191 free(drawable); in windows_destroy_drawable()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/glx/
DFunctionsGLX.cpp310 Bool FunctionsGLX::makeCurrent(glx::Drawable drawable, glx::Context context) const in makeCurrent() argument
313 return mFnPtrs->makeCurrentPtr(mXDisplay, drawable, ctx); in makeCurrent()
315 void FunctionsGLX::swapBuffers(glx::Drawable drawable) const in swapBuffers()
317 mFnPtrs->swapBuffersPtr(mXDisplay, drawable); in swapBuffers()
334 GLXDrawable drawable = mFnPtrs->getCurrentDrawablePtr(); in getCurrentDrawable() local
335 return reinterpret_cast<glx::Drawable>(drawable); in getCurrentDrawable()
398 void FunctionsGLX::queryDrawable(glx::Drawable drawable, int attribute, unsigned int *value) const in queryDrawable() argument
400 mFnPtrs->queryDrawablePtr(mXDisplay, drawable, attribute, value); in queryDrawable()
428 void FunctionsGLX::swapIntervalEXT(glx::Drawable drawable, int intervals) const in swapIntervalEXT() argument
430 mFnPtrs->swapIntervalEXTPtr(mXDisplay, drawable, intervals); in swapIntervalEXT()
[all …]
DFunctionsGLX.h42 Bool makeCurrent(glx::Drawable drawable, glx::Context context) const;
43 void swapBuffers(glx::Drawable drawable) const;
64 void queryDrawable(glx::Drawable drawable, int attribute, unsigned int *value) const;
75 void swapIntervalEXT(glx::Drawable drawable, int interval) const;
84 bool getSyncValuesOML(glx::Drawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc) const;
85 bool getMscRateOML(glx::Drawable drawable, int32_t *numerator, int32_t *denominator) const;
88 void bindTexImageEXT(glx::Drawable drawable, int buffer, const int *attribList) const;
89 void releaseTexImageEXT(glx::Drawable drawable, int buffer) const;
/third_party/mesa3d/src/gallium/auxiliary/vl/
Dvl_winsys_dri.c61 xcb_drawable_t drawable; member
140 scrn->swap_cookie = xcb_dri2_swap_buffers_unchecked(scrn->conn, scrn->drawable, in vl_dri2_flush_frontbuffer()
142 scrn->wait_cookie = xcb_dri2_wait_sbc_unchecked(scrn->conn, scrn->drawable, 0, 0); in vl_dri2_flush_frontbuffer()
143 scrn->buffers_cookie = xcb_dri2_get_buffers_unchecked(scrn->conn, scrn->drawable, in vl_dri2_flush_frontbuffer()
154 if (scrn->drawable) { in vl_dri2_destroy_drawable()
156 destroy_cookie = xcb_dri2_destroy_drawable_checked(scrn->conn, scrn->drawable); in vl_dri2_destroy_drawable()
163 vl_dri2_set_drawable(struct vl_dri_screen *scrn, Drawable drawable) in vl_dri2_set_drawable() argument
166 assert(drawable); in vl_dri2_set_drawable()
168 if (scrn->drawable == drawable) in vl_dri2_set_drawable()
173 xcb_dri2_create_drawable(scrn->conn, drawable); in vl_dri2_set_drawable()
[all …]
/third_party/skia/gm/
Ddrawable.cpp39 DEF_SIMPLE_GM(drawable, canvas, 180, 275) {
40 sk_sp<SkDrawable> drawable(new MyDrawable);
43 canvas->drawDrawable(drawable.get());
44 canvas->drawDrawable(drawable.get(), 0, 150);
48 canvas->drawDrawable(drawable.get(), &m);
51 canvas->drawDrawable(drawable.get(), &m);
/third_party/mesa3d/include/GL/
Dglx.h190 extern Bool glXMakeCurrent( Display *dpy, GLXDrawable drawable,
196 extern void glXSwapBuffers( Display *dpy, GLXDrawable drawable );
279 extern void glXSelectEvent( Display *dpy, GLXDrawable drawable,
282 extern void glXGetSelectedEvent( Display *dpy, GLXDrawable drawable,
372 extern int glXGetFrameUsageMESA(Display *dpy, GLXDrawable drawable, float *usage);
373 extern int glXBeginFrameTrackingMESA(Display *dpy, GLXDrawable drawable);
374 extern int glXEndFrameTrackingMESA(Display *dpy, GLXDrawable drawable);
375 extern int glXQueryFrameTrackingMESA(Display *dpy, GLXDrawable drawable, int64_t *swapCount, int64_…
377 typedef int (*PFNGLXGETFRAMEUSAGEMESAPROC) (Display *dpy, GLXDrawable drawable, float *usage);
378 typedef int (*PFNGLXBEGINFRAMETRACKINGMESAPROC)(Display *dpy, GLXDrawable drawable);
[all …]
Dglxext.h361 typedef void ( *PFNGLXSWAPINTERVALEXTPROC) (Display *dpy, GLXDrawable drawable, int interval);
363 void glXSwapIntervalEXT (Display *dpy, GLXDrawable drawable, int interval);
407 typedef void ( *PFNGLXBINDTEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer, const i…
408 typedef void ( *PFNGLXRELEASETEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer);
410 void glXBindTexImageEXT (Display *dpy, GLXDrawable drawable, int buffer, const int *attrib_list);
411 void glXReleaseTexImageEXT (Display *dpy, GLXDrawable drawable, int buffer);
460 typedef void ( *PFNGLXCOPYSUBBUFFERMESAPROC) (Display *dpy, GLXDrawable drawable, int x, int y, int…
462 void glXCopySubBufferMESA (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height);
501 typedef Bool ( *PFNGLXRELEASEBUFFERSMESAPROC) (Display *dpy, GLXDrawable drawable);
503 Bool glXReleaseBuffersMESA (Display *dpy, GLXDrawable drawable);
[all …]
/third_party/skia/third_party/externals/swiftshader/include/GL/
Dglxext.h353 typedef void ( *PFNGLXSWAPINTERVALEXTPROC) (Display *dpy, GLXDrawable drawable, int interval);
355 void glXSwapIntervalEXT (Display *dpy, GLXDrawable drawable, int interval);
399 typedef void ( *PFNGLXBINDTEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer, const i…
400 typedef void ( *PFNGLXRELEASETEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer);
402 void glXBindTexImageEXT (Display *dpy, GLXDrawable drawable, int buffer, const int *attrib_list);
403 void glXReleaseTexImageEXT (Display *dpy, GLXDrawable drawable, int buffer);
452 typedef void ( *PFNGLXCOPYSUBBUFFERMESAPROC) (Display *dpy, GLXDrawable drawable, int x, int y, int…
454 void glXCopySubBufferMESA (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height);
494 typedef Bool ( *PFNGLXRELEASEBUFFERSMESAPROC) (Display *dpy, GLXDrawable drawable);
496 Bool glXReleaseBuffersMESA (Display *dpy, GLXDrawable drawable);
[all …]
/third_party/skia/third_party/externals/opengl-registry/api/GL/
Dglxext.h353 typedef void ( *PFNGLXSWAPINTERVALEXTPROC) (Display *dpy, GLXDrawable drawable, int interval);
355 void glXSwapIntervalEXT (Display *dpy, GLXDrawable drawable, int interval);
399 typedef void ( *PFNGLXBINDTEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer, const i…
400 typedef void ( *PFNGLXRELEASETEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer);
402 void glXBindTexImageEXT (Display *dpy, GLXDrawable drawable, int buffer, const int *attrib_list);
403 void glXReleaseTexImageEXT (Display *dpy, GLXDrawable drawable, int buffer);
452 typedef void ( *PFNGLXCOPYSUBBUFFERMESAPROC) (Display *dpy, GLXDrawable drawable, int x, int y, int…
454 void glXCopySubBufferMESA (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height);
494 typedef Bool ( *PFNGLXRELEASEBUFFERSMESAPROC) (Display *dpy, GLXDrawable drawable);
496 Bool glXReleaseBuffersMESA (Display *dpy, GLXDrawable drawable);
[all …]

12345678910>>...12