Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(760)

Unified Diff: ui/gfx/gpu_memory_buffer.h

Issue 331723003: gpu: Remove Create/DeleteImage IPC by adding an X11_PIXMAP_BUFFER GpuMemoryBuffer type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/services/gles2/command_buffer_impl.cc ('k') | ui/gfx/gpu_memory_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..d21725a31dc25ffc59d5ed6a3245e94419a5ae0c 100644
--- a/ui/gfx/gpu_memory_buffer.h
+++ b/ui/gfx/gpu_memory_buffer.h
@@ -9,8 +9,8 @@
#include "build/build_config.h"
#include "ui/gfx/gfx_export.h"
-#if defined(OS_ANDROID)
-#include <third_party/khronos/EGL/egl.h>
+#if defined(USE_X11)
+#include "ui/gfx/x/x11_types.h"
#endif
namespace gfx {
@@ -21,7 +21,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 +55,12 @@ struct GFX_EXPORT GpuMemoryBufferHandle {
uint32 io_surface_id;
#endif
#if defined(OS_ANDROID)
- EGLClientBuffer native_buffer;
+ long buffer_id;
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
« no previous file with comments | « mojo/services/gles2/command_buffer_impl.cc ('k') | ui/gfx/gpu_memory_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698