Chromium Code Reviews| 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" | |
| 8 | |
| 7 namespace gpu { | 9 namespace gpu { |
| 8 | 10 |
| 9 ImageFactory::ImageFactory() { | 11 ImageFactory::ImageFactory() { |
| 10 } | 12 } |
| 11 | 13 |
| 12 ImageFactory::~ImageFactory() { | 14 ImageFactory::~ImageFactory() { |
| 13 } | 15 } |
| 14 | 16 |
| 17 scoped_refptr<gl::GLImage> ImageFactory::CreateAnonymousImage( | |
| 18 const gfx::Size& size, | |
| 19 gfx::BufferFormat format, | |
| 20 unsigned internalformat) { | |
| 21 NOTREACHED(); | |
| 22 return nullptr; | |
| 23 } | |
| 24 | |
| 25 unsigned ImageFactory::RequiredTextureType() { | |
| 26 NOTREACHED(); | |
|
piman
2016/06/27 22:46:15
nit: this is reached on !mac if the client request
erikchen
2016/06/28 01:38:42
Done.
| |
| 27 return 0; | |
| 28 } | |
| 29 | |
| 30 bool ImageFactory::SupportsFormatRGB() { | |
| 31 return true; | |
| 32 } | |
| 33 | |
| 15 } // namespace gpu | 34 } // namespace gpu |
| OLD | NEW |