Chromium Code Reviews| Index: ui/gl/gl_image_linux.cc |
| diff --git a/ui/gl/gl_image_linux.cc b/ui/gl/gl_image_linux.cc |
| index 75efd2ab2778aea26fd0af57cd1e88f99e6618ff..dc256fe6efea3054ac4d4c60ee9889cbe8d0befa 100644 |
| --- a/ui/gl/gl_image_linux.cc |
| +++ b/ui/gl/gl_image_linux.cc |
| @@ -35,4 +35,21 @@ scoped_refptr<GLImage> GLImage::CreateGLImage(gfx::PluginWindowHandle window) { |
| } |
| } |
| +scoped_refptr<GLImage> GLImage::CreateGLImageForPixelBuffer( |
| + gfx::PixelBufferHandle buffer, const gfx::Size& size) { |
| + TRACE_EVENT0("gpu", "GLImage::CreateGLImageForPixelBuffer"); |
| + switch (GetGLImplementation()) { |
| + case kGLImplementationOSMesaGL: |
| + case kGLImplementationDesktopGL: |
| + case kGLImplementationEGLGLES2: { |
|
apatrick_chromium
2013/04/05 17:35:58
nit: braces are redundant
kaanb
2013/04/05 18:49:25
Done.
|
| + return NULL; |
| + } |
| + case kGLImplementationMockGL: |
| + return new GLImageStub; |
| + default: |
| + NOTREACHED(); |
| + return NULL; |
| + } |
| +} |
| + |
| } // namespace gfx |