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..e58ad2edf17c78478a75c5f58508dd95415471bf 100644 |
| --- a/ui/gl/gl_image_linux.cc |
| +++ b/ui/gl/gl_image_linux.cc |
| @@ -35,4 +35,17 @@ scoped_refptr<GLImage> GLImage::CreateGLImage(gfx::PluginWindowHandle window) { |
| } |
| } |
| +scoped_refptr<GLImage> GLImage::CreateGLImageForPixelBuffer( |
| + gfx::PixelBufferHandle window, const gfx::Size& size) { |
| + TRACE_EVENT0("gpu", "GLImage::CreateGLImageForPixelBuffer"); |
| + switch (GetGLImplementation()) { |
|
reveman
2013/04/05 00:13:24
Please return NULL here for kGLImplementationOSMes
kaanb
2013/04/05 01:02:52
Done.
|
| + case kGLImplementationMockGL: |
| + return new GLImageStub; |
| + default: |
| + NOTREACHED(); |
| + return NULL; |
| + } |
| + return NULL; |
|
reveman
2013/04/05 00:13:24
nit: "return NULL" is redundant.
kaanb
2013/04/05 01:02:52
Done.
|
| +} |
| + |
| } // namespace gfx |