| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "gpu/ipc/service/gpu_memory_buffer_factory_surface_texture.h" | 5 #include "gpu/ipc/service/gpu_memory_buffer_factory_surface_texture.h" |
| 6 | 6 |
| 7 #include "gpu/ipc/common/android/surface_texture_manager.h" | 7 #include "gpu/ipc/common/android/surface_texture_manager.h" |
| 8 #include "ui/gl/android/surface_texture.h" | 8 #include "ui/gl/android/surface_texture.h" |
| 9 #include "ui/gl/gl_image_surface_texture.h" | 9 #include "ui/gl/gl_image_surface_texture.h" |
| 10 | 10 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 return scoped_refptr<gl::GLImage>(); | 87 return scoped_refptr<gl::GLImage>(); |
| 88 | 88 |
| 89 scoped_refptr<gl::GLImageSurfaceTexture> image( | 89 scoped_refptr<gl::GLImageSurfaceTexture> image( |
| 90 new gl::GLImageSurfaceTexture(size)); | 90 new gl::GLImageSurfaceTexture(size)); |
| 91 if (!image->Initialize(it->second.get())) | 91 if (!image->Initialize(it->second.get())) |
| 92 return scoped_refptr<gl::GLImage>(); | 92 return scoped_refptr<gl::GLImage>(); |
| 93 | 93 |
| 94 return image; | 94 return image; |
| 95 } | 95 } |
| 96 | 96 |
| 97 scoped_refptr<gl::GLImage> |
| 98 GpuMemoryBufferFactorySurfaceTexture::CreateAnonymousImage( |
| 99 const gfx::Size& size, |
| 100 gfx::BufferFormat format, |
| 101 unsigned internalformat) { |
| 102 NOTIMPLEMENTED(); |
| 103 return nullptr; |
| 104 } |
| 105 |
| 97 } // namespace gpu | 106 } // namespace gpu |
| OLD | NEW |