]> git.cworth.org Git - apitrace/blobdiff - retrace/glws_egl_xlib.cpp
stash: Trace and replay of glx-tfp works
[apitrace] / retrace / glws_egl_xlib.cpp
index 5aacdfed2b5bea5c0b738b907711d936610a93f8..9c233f969b6f48574097031ad7d1c11b1cff3e5c 100644 (file)
@@ -481,5 +481,30 @@ processEvents(void) {
     return true;
 }
 
+void
+createWindow(Drawable *drawable, const Visual *_visual)
+{
+    EglDrawable *eglDrawable = static_cast<EglDrawable *>(drawable);
+    const EglVisual *visual = static_cast<const EglVisual *>(_visual);
+
+    eglDrawable->surface = eglCreateWindowSurface(display, visual->config,
+                                                  eglDrawable->window, NULL);
+}
+
+void
+destroyWindow(Drawable *drawable)
+{
+    EglDrawable *eglDrawable = static_cast<EglDrawable *>(drawable);
+
+    eglDestroySurface(display, eglDrawable->surface);
+}
+
+Pixmap
+createPixmap(unsigned width, unsigned height, unsigned depth)
+{
+    return XCreatePixmap(display, DefaultRootWindow(display),
+                         width, height, depth);
+}
+
 
 } /* namespace glws */