| Index: ui/gl/gl_image_x11.cc
|
| diff --git a/ui/gl/gl_image_x11.cc b/ui/gl/gl_image_x11.cc
|
| index a6c09a1513710aa8634b4bfa41a0814d4a02f6bf..03529991c313af9f46711a52c51ba37ea58aa067 100644
|
| --- a/ui/gl/gl_image_x11.cc
|
| +++ b/ui/gl/gl_image_x11.cc
|
| @@ -61,4 +61,20 @@ scoped_refptr<GLImage> GLImage::CreateGLImageForGpuMemoryBuffer(
|
| }
|
| }
|
|
|
| +scoped_refptr<GLImage> GLImage::CreateGLImageForStreamTexture(
|
| + unsigned int texture_id) {
|
| + TRACE_EVENT0("gpu", "GLImage::CreateGLImageForStreamTexture");
|
| + switch (GetGLImplementation()) {
|
| + case kGLImplementationOSMesaGL:
|
| + case kGLImplementationDesktopGL:
|
| + case kGLImplementationEGLGLES2:
|
| + return NULL;
|
| + case kGLImplementationMockGL:
|
| + return new GLImageStub;
|
| + default:
|
| + NOTREACHED();
|
| + return NULL;
|
| + }
|
| +}
|
| +
|
| } // namespace gfx
|
|
|