| Index: ui/gl/gl_image_mac.cc
|
| diff --git a/ui/gl/gl_image_mac.cc b/ui/gl/gl_image_mac.cc
|
| index 54cbd522907007d7fde7e0286a2e22629fd14432..b244a22ad939033083260080219e40553fe544b8 100644
|
| --- a/ui/gl/gl_image_mac.cc
|
| +++ b/ui/gl/gl_image_mac.cc
|
| @@ -5,6 +5,7 @@
|
| #include "ui/gl/gl_image.h"
|
|
|
| #include "base/debug/trace_event.h"
|
| +#include "ui/gl/gl_image_shm.h"
|
| #include "ui/gl/gl_image_stub.h"
|
| #include "ui/gl/gl_implementation.h"
|
|
|
| @@ -32,7 +33,18 @@ scoped_refptr<GLImage> GLImage::CreateGLImageForGpuMemoryBuffer(
|
| case kGLImplementationOSMesaGL:
|
| case kGLImplementationDesktopGL:
|
| case kGLImplementationAppleGL:
|
| - return NULL;
|
| + switch (buffer.type) {
|
| + case SHARED_MEMORY_BUFFER: {
|
| + scoped_refptr<GLImageShm> image(new GLImageShm(size));
|
| + if (!image->Initialize(buffer))
|
| + return NULL;
|
| +
|
| + return image;
|
| + }
|
| + default:
|
| + NOTREACHED();
|
| + return NULL;
|
| + }
|
| case kGLImplementationMockGL:
|
| return new GLImageStub;
|
| default:
|
|
|