Index: ui/gfx/gpu_memory_buffer.h |
diff --git a/ui/gfx/gpu_memory_buffer.h b/ui/gfx/gpu_memory_buffer.h |
index 1a622016c7c003f212ec8428f96cf3f1ae0cedba..8c131230cce3dc213d5e46247c315ebb9c850bb6 100644 |
--- a/ui/gfx/gpu_memory_buffer.h |
+++ b/ui/gfx/gpu_memory_buffer.h |
@@ -13,6 +13,10 @@ |
#include <third_party/khronos/EGL/egl.h> |
#endif |
+#if defined(USE_X11) |
+#include "ui/gfx/x/x11_types.h" |
+#endif |
+ |
namespace gfx { |
enum GpuMemoryBufferType { |
@@ -21,7 +25,8 @@ enum GpuMemoryBufferType { |
IO_SURFACE_BUFFER, |
ANDROID_NATIVE_BUFFER, |
SURFACE_TEXTURE_BUFFER, |
- GPU_MEMORY_BUFFER_TYPE_LAST = SURFACE_TEXTURE_BUFFER |
+ X11_PIXMAP_BUFFER, |
+ GPU_MEMORY_BUFFER_TYPE_LAST = X11_PIXMAP_BUFFER |
}; |
// TODO(alexst): Merge this with GpuMemoryBufferId as part of switchover to |
@@ -54,9 +59,11 @@ struct GFX_EXPORT GpuMemoryBufferHandle { |
uint32 io_surface_id; |
#endif |
#if defined(OS_ANDROID) |
- EGLClientBuffer native_buffer; |
SurfaceTextureId surface_texture_id; |
#endif |
+#if defined(USE_X11) |
+ XID pixmap; |
+#endif |
}; |
// This interface typically correspond to a type of shared memory that is also |