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..92c249671dfdb4bc98565973fd197e8a0ffd4116 100644 |
--- a/ui/gl/gl_image_win.cc |
+++ b/ui/gl/gl_image_win.cc |
@@ -26,4 +26,17 @@ scoped_refptr<GLImage> GLImage::CreateGLImage(gfx::PluginWindowHandle window) { |
} |
} |
+scoped_refptr<GLImage> GLImage::CreateGLImageForPixelBuffer( |
+ gfx::PluginWindowHandle 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 |