| 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/command_buffer/service/image_factory.h" | 5 #include "gpu/command_buffer/service/image_factory.h" |
| 6 | 6 |
| 7 #include "ui/gl/gl_image.h" | 7 #include "ui/gl/gl_image.h" |
| 8 | 8 |
| 9 namespace gpu { | 9 namespace gpu { |
| 10 | 10 |
| 11 ImageFactory::ImageFactory() { | 11 ImageFactory::ImageFactory() { |
| 12 } | 12 } |
| 13 | 13 |
| 14 ImageFactory::~ImageFactory() { | 14 ImageFactory::~ImageFactory() { |
| 15 } | 15 } |
| 16 | 16 |
| 17 scoped_refptr<gl::GLImage> ImageFactory::CreateAnonymousImage( | 17 scoped_refptr<gl::GLImage> ImageFactory::CreateAnonymousImage( |
| 18 const gfx::Size& size, | 18 const gfx::Size& size, |
| 19 gfx::BufferFormat format, | 19 gfx::BufferFormat format, |
| 20 gfx::BufferUsage usage, |
| 20 unsigned internalformat) { | 21 unsigned internalformat) { |
| 21 NOTREACHED(); | 22 NOTREACHED(); |
| 22 return nullptr; | 23 return nullptr; |
| 23 } | 24 } |
| 24 | 25 |
| 25 unsigned ImageFactory::RequiredTextureType() { | 26 unsigned ImageFactory::RequiredTextureType() { |
| 26 NOTIMPLEMENTED(); | 27 NOTIMPLEMENTED(); |
| 27 return 0; | 28 return 0; |
| 28 } | 29 } |
| 29 | 30 |
| 30 bool ImageFactory::SupportsFormatRGB() { | 31 bool ImageFactory::SupportsFormatRGB() { |
| 31 return true; | 32 return true; |
| 32 } | 33 } |
| 33 | 34 |
| 34 } // namespace gpu | 35 } // namespace gpu |
| OLD | NEW |