| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/command_buffer/tests/texture_image_factory.h" | 5 #include "gpu/command_buffer/tests/texture_image_factory.h" |
| 6 | 6 |
| 7 #include "ui/gl/gl_bindings.h" | 7 #include "ui/gl/gl_bindings.h" |
| 8 #include "ui/gl/gl_image.h" | 8 #include "ui/gl/gl_image.h" |
| 9 | 9 |
| 10 namespace gpu { | 10 namespace gpu { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 private: | 48 private: |
| 49 ~TextureImage() override {} | 49 ~TextureImage() override {} |
| 50 gfx::Size size_; | 50 gfx::Size size_; |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 scoped_refptr<gl::GLImage> TextureImageFactory::CreateImageForGpuMemoryBuffer( | 53 scoped_refptr<gl::GLImage> TextureImageFactory::CreateImageForGpuMemoryBuffer( |
| 54 const gfx::GpuMemoryBufferHandle& handle, | 54 const gfx::GpuMemoryBufferHandle& handle, |
| 55 const gfx::Size& size, | 55 const gfx::Size& size, |
| 56 gfx::BufferFormat format, | 56 gfx::BufferFormat format, |
| 57 unsigned internalformat, | 57 unsigned internalformat, |
| 58 int client_id) { | 58 int client_id, |
| 59 SurfaceHandle surface_handle) { |
| 59 return nullptr; | 60 return nullptr; |
| 60 } | 61 } |
| 61 | 62 |
| 62 scoped_refptr<gl::GLImage> TextureImageFactory::CreateAnonymousImage( | 63 scoped_refptr<gl::GLImage> TextureImageFactory::CreateAnonymousImage( |
| 63 const gfx::Size& size, | 64 const gfx::Size& size, |
| 64 gfx::BufferFormat format, | 65 gfx::BufferFormat format, |
| 65 unsigned internalformat) { | 66 unsigned internalformat) { |
| 66 return new TextureImage(size); | 67 return new TextureImage(size); |
| 67 } | 68 } |
| 68 | 69 |
| 69 unsigned TextureImageFactory::RequiredTextureType() { | 70 unsigned TextureImageFactory::RequiredTextureType() { |
| 70 return required_texture_type_; | 71 return required_texture_type_; |
| 71 } | 72 } |
| 72 | 73 |
| 73 bool TextureImageFactory::SupportsFormatRGB() { | 74 bool TextureImageFactory::SupportsFormatRGB() { |
| 74 return false; | 75 return false; |
| 75 } | 76 } |
| 76 | 77 |
| 77 void TextureImageFactory::SetRequiredTextureType(unsigned type) { | 78 void TextureImageFactory::SetRequiredTextureType(unsigned type) { |
| 78 required_texture_type_ = type; | 79 required_texture_type_ = type; |
| 79 } | 80 } |
| 80 | 81 |
| 81 } // namespace gpu | 82 } // namespace gpu |
| OLD | NEW |