| 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 04f05f6c89a02e14a3c148937a7cfe8c48f19c59..0c5d96708e856d8e9c3d8578eb785c9f2d18c71e 100644
|
| --- a/gpu/command_buffer/service/framebuffer_manager.cc
|
| +++ b/gpu/command_buffer/service/framebuffer_manager.cc
|
| @@ -552,6 +552,10 @@ void Framebuffer::MarkAttachmentsAsCleared(
|
| }
|
| }
|
|
|
| +bool Framebuffer::HasColorAttachment(int index) const {
|
| + return attachments_.find(GL_COLOR_ATTACHMENT0 + index) != attachments_.end();
|
| +}
|
| +
|
| bool Framebuffer::HasDepthAttachment() const {
|
| return attachments_.find(GL_DEPTH_STENCIL_ATTACHMENT) != attachments_.end() ||
|
| attachments_.find(GL_DEPTH_ATTACHMENT) != attachments_.end();
|
|
|