Chromium Code Reviews| Index: ui/gl/gl_image_win.cc |
| diff --git a/ui/gl/gl_image_win.cc b/ui/gl/gl_image_win.cc |
| index 8c54bf4ace14057891aee534fcb2f9b635a196a7..feb4a1a3c45fc59a497249f6aa62189e9cf9707c 100644 |
| --- a/ui/gl/gl_image_win.cc |
| +++ b/ui/gl/gl_image_win.cc |
| @@ -26,4 +26,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 |