| Index: ui/gl/gl_image_x11.cc
|
| diff --git a/ui/gl/gl_image_x11.cc b/ui/gl/gl_image_x11.cc
|
| index 6f7d8c6e85b3c735d07c1d0feccbee89d5c458be..8a85096d9eabbf7075b246a32bc88045643bca1f 100644
|
| --- a/ui/gl/gl_image_x11.cc
|
| +++ b/ui/gl/gl_image_x11.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "base/debug/trace_event.h"
|
| #include "ui/gl/gl_image_glx.h"
|
| +#include "ui/gl/gl_image_linux_dma_buffer.h"
|
| #include "ui/gl/gl_image_shm.h"
|
| #include "ui/gl/gl_image_stub.h"
|
| #include "ui/gl/gl_implementation.h"
|
| @@ -52,6 +53,14 @@ scoped_refptr<GLImage> GLImage::CreateGLImageForGpuMemoryBuffer(
|
|
|
| return image;
|
| }
|
| + case INTEL_DRM_BUFFER: {
|
| + scoped_refptr<GLImageLinuxDMABuffer> image(
|
| + new GLImageLinuxDMABuffer(size, internalformat));
|
| + if (!image->Initialize(buffer))
|
| + return NULL;
|
| +
|
| + return image;
|
| + }
|
| default:
|
| NOTREACHED();
|
| return NULL;
|
|
|