OSDN Git Service

drm_hwcomposer: fix typo in formats switch statement
[android-x86/external-drm_hwcomposer.git] / platform.h
index 70e5e81..e417bf7 100644 (file)
@@ -38,6 +38,10 @@ class Importer {
   // Creates a platform-specific importer instance
   static Importer *CreateInstance(DrmResources *drm);
 
+  // Imports EGLImage for glcompositor, since NV handles this in non-standard
+  // way, and fishing out the details is specific to the gralloc used.
+  virtual EGLImageKHR ImportImage(EGLDisplay egl_display, buffer_handle_t handle) = 0;
+
   // Imports the buffer referred to by handle into bo.
   //
   // Note: This can be called from a different thread than ReleaseBuffer. The