| OLD | NEW |
| 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 791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 802 if (m_multisampleFBO && !m_contentsChangeCommitted) { | 802 if (m_multisampleFBO && !m_contentsChangeCommitted) { |
| 803 m_gl->BindFramebuffer(GL_READ_FRAMEBUFFER_ANGLE, m_multisampleFBO); | 803 m_gl->BindFramebuffer(GL_READ_FRAMEBUFFER_ANGLE, m_multisampleFBO); |
| 804 m_gl->BindFramebuffer(GL_DRAW_FRAMEBUFFER_ANGLE, m_fbo); | 804 m_gl->BindFramebuffer(GL_DRAW_FRAMEBUFFER_ANGLE, m_fbo); |
| 805 | 805 |
| 806 if (m_scissorEnabled) | 806 if (m_scissorEnabled) |
| 807 m_gl->Disable(GL_SCISSOR_TEST); | 807 m_gl->Disable(GL_SCISSOR_TEST); |
| 808 | 808 |
| 809 int width = m_size.width(); | 809 int width = m_size.width(); |
| 810 int height = m_size.height(); | 810 int height = m_size.height(); |
| 811 // Use NEAREST, because there is no scale performed during the blit. | 811 // Use NEAREST, because there is no scale performed during the blit. |
| 812 m_context->blitFramebufferCHROMIUM(0, 0, width, height, 0, 0, width, hei
ght, GL_COLOR_BUFFER_BIT, GL_NEAREST); | 812 m_gl->BlitFramebufferCHROMIUM(0, 0, width, height, 0, 0, width, height,
GL_COLOR_BUFFER_BIT, GL_NEAREST); |
| 813 | 813 |
| 814 if (m_scissorEnabled) | 814 if (m_scissorEnabled) |
| 815 m_gl->Enable(GL_SCISSOR_TEST); | 815 m_gl->Enable(GL_SCISSOR_TEST); |
| 816 } | 816 } |
| 817 | 817 |
| 818 m_gl->BindFramebuffer(GL_FRAMEBUFFER, m_fbo); | 818 m_gl->BindFramebuffer(GL_FRAMEBUFFER, m_fbo); |
| 819 if (m_antiAliasingMode == ScreenSpaceAntialiasing) { | 819 if (m_antiAliasingMode == ScreenSpaceAntialiasing) { |
| 820 m_gl->ApplyScreenSpaceAntialiasingCHROMIUM(); | 820 m_gl->ApplyScreenSpaceAntialiasingCHROMIUM(); |
| 821 } | 821 } |
| 822 m_contentsChangeCommitted = true; | 822 m_contentsChangeCommitted = true; |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |