Chromium Code Reviews| Index: gpu/command_buffer/service/framebuffer_manager.cc |
| diff --git a/gpu/command_buffer/service/framebuffer_manager.cc b/gpu/command_buffer/service/framebuffer_manager.cc |
| index 0b42bf5e267ce3045d4200c0fd2c468e5a4ca0a2..32c212ed0cf2dbcdf8908cebf28017c774a9bfb0 100644 |
| --- a/gpu/command_buffer/service/framebuffer_manager.cc |
| +++ b/gpu/command_buffer/service/framebuffer_manager.cc |
| @@ -472,6 +472,15 @@ bool Framebuffer::HasStencilAttachment() const { |
| attachments_.find(GL_STENCIL_ATTACHMENT) != attachments_.end(); |
| } |
| +GLenum Framebuffer::GetColorAttachmentFormat() const { |
|
Zhenyao Mo
2016/02/12 21:06:06
Name this GetColorAttachment0Format.
halliwell
2016/02/12 22:52:56
Done.
|
| + AttachmentMap::const_iterator it = attachments_.find(GL_COLOR_ATTACHMENT0); |
| + if (it == attachments_.end()) { |
| + return 0; |
| + } |
| + const Attachment* attachment = it->second.get(); |
| + return attachment->internal_format(); |
| +} |
| + |
| GLenum Framebuffer::GetReadBufferInternalFormat() const { |
| if (read_buffer_ == GL_NONE) |
| return 0; |