Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Unified Diff: gpu/command_buffer/service/framebuffer_manager.cc

Issue 1700433002: Complete disable_gl_rgb_format workaround for Mali-400 GPU (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698