| 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..cf0024053b38b706668775dee6069735b2d4904c 100644
|
| --- a/ui/gl/gl_image_x11.cc
|
| +++ b/ui/gl/gl_image_x11.cc
|
| @@ -5,6 +5,7 @@
|
| #include "ui/gl/gl_image.h"
|
|
|
| #include "base/debug/trace_event.h"
|
| +#include "ui/gl/gl_image_foobar.h"
|
| #include "ui/gl/gl_image_glx.h"
|
| #include "ui/gl/gl_image_shm.h"
|
| #include "ui/gl/gl_image_stub.h"
|
| @@ -52,6 +53,13 @@ scoped_refptr<GLImage> GLImage::CreateGLImageForGpuMemoryBuffer(
|
|
|
| return image;
|
| }
|
| + case FOOBAR_BUFFER: {
|
| + scoped_refptr<GLImageFoobar> image(new GLImageFoobar(size));
|
| + if (!image->Initialize(buffer))
|
| + return NULL;
|
| +
|
| + return image;
|
| + }
|
| default:
|
| NOTREACHED();
|
| return NULL;
|
|
|