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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp

Issue 1824433002: Remove getError() and synthesizeGLError() from WebGraphicsContext3D. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@simples-tplus
Patch Set: errors: rebase Created 4 years, 9 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010, Google Inc. All rights reserved. 2 * Copyright (c) 2010, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 } 667 }
668 668
669 bool DrawingBuffer::resizeMultisampleFramebuffer(const IntSize& size) 669 bool DrawingBuffer::resizeMultisampleFramebuffer(const IntSize& size)
670 { 670 {
671 if (m_antiAliasingMode == MSAAExplicitResolve) { 671 if (m_antiAliasingMode == MSAAExplicitResolve) {
672 m_gl->BindFramebuffer(GL_FRAMEBUFFER, m_multisampleFBO); 672 m_gl->BindFramebuffer(GL_FRAMEBUFFER, m_multisampleFBO);
673 673
674 m_gl->BindRenderbuffer(GL_RENDERBUFFER, m_multisampleColorBuffer); 674 m_gl->BindRenderbuffer(GL_RENDERBUFFER, m_multisampleColorBuffer);
675 m_gl->RenderbufferStorageMultisampleCHROMIUM(GL_RENDERBUFFER, m_sampleCo unt, m_colorBuffer.parameters.internalRenderbufferFormat, size.width(), size.hei ght()); 675 m_gl->RenderbufferStorageMultisampleCHROMIUM(GL_RENDERBUFFER, m_sampleCo unt, m_colorBuffer.parameters.internalRenderbufferFormat, size.width(), size.hei ght());
676 676
677 if (m_context->getError() == GL_OUT_OF_MEMORY) 677 if (m_gl->GetError() == GL_OUT_OF_MEMORY)
678 return false; 678 return false;
679 679
680 m_gl->FramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_R ENDERBUFFER, m_multisampleColorBuffer); 680 m_gl->FramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_R ENDERBUFFER, m_multisampleColorBuffer);
681 resizeDepthStencil(size); 681 resizeDepthStencil(size);
682 if (m_gl->CheckFramebufferStatus(GL_FRAMEBUFFER) != GL_FRAMEBUFFER_COMPL ETE) 682 if (m_gl->CheckFramebufferStatus(GL_FRAMEBUFFER) != GL_FRAMEBUFFER_COMPL ETE)
683 return false; 683 return false;
684 } 684 }
685 685
686 return true; 686 return true;
687 } 687 }
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
1038 1038
1039 if (m_antiAliasingMode == MSAAImplicitResolve) 1039 if (m_antiAliasingMode == MSAAImplicitResolve)
1040 m_gl->FramebufferTexture2DMultisampleEXT(GL_FRAMEBUFFER, GL_COLOR_ATTACH MENT0, target, m_colorBuffer.textureId, 0, m_sampleCount); 1040 m_gl->FramebufferTexture2DMultisampleEXT(GL_FRAMEBUFFER, GL_COLOR_ATTACH MENT0, target, m_colorBuffer.textureId, 0, m_sampleCount);
1041 else 1041 else
1042 m_gl->FramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, target, m_colorBuffer.textureId, 0); 1042 m_gl->FramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, target, m_colorBuffer.textureId, 0);
1043 1043
1044 m_gl->BindTexture(GL_TEXTURE_2D, m_texture2DBinding); 1044 m_gl->BindTexture(GL_TEXTURE_2D, m_texture2DBinding);
1045 } 1045 }
1046 1046
1047 } // namespace blink 1047 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698