| 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..7698b8471a4472d80c4d08d81dba6b8ada31f64c 100644
|
| --- a/ui/gl/gl_image_win.cc
|
| +++ b/ui/gl/gl_image_win.cc
|
| @@ -15,9 +15,24 @@ scoped_refptr<GLImage> GLImage::CreateGLImage(gfx::PluginWindowHandle window) {
|
| switch (GetGLImplementation()) {
|
| case kGLImplementationOSMesaGL:
|
| case kGLImplementationDesktopGL:
|
| - case kGLImplementationEGLGLES2: {
|
| + case kGLImplementationEGLGLES2:
|
| + return NULL;
|
| + case kGLImplementationMockGL:
|
| + return new GLImageStub;
|
| + default:
|
| + NOTREACHED();
|
| + return NULL;
|
| + }
|
| +}
|
| +
|
| +scoped_refptr<GLImage> GLImage::CreateGLImageForGpuMemoryBuffer(
|
| + gfx::GpuMemoryBufferHandle buffer, gfx::Size size) {
|
| + TRACE_EVENT0("gpu", "GLImage::CreateGLImageForGpuMemoryBuffer");
|
| + switch (GetGLImplementation()) {
|
| + case kGLImplementationOSMesaGL:
|
| + case kGLImplementationDesktopGL:
|
| + case kGLImplementationEGLGLES2:
|
| return NULL;
|
| - }
|
| case kGLImplementationMockGL:
|
| return new GLImageStub;
|
| default:
|
|
|