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 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
643 m_contextEvictionManager->forciblyLoseOldestContext("WARNING: WebGL cont
exts have exceeded the maximum allowed backbuffer area. Oldest context will be l
ost."); | 643 m_contextEvictionManager->forciblyLoseOldestContext("WARNING: WebGL cont
exts have exceeded the maximum allowed backbuffer area. Oldest context will be l
ost."); |
644 | 644 |
645 if (adjustedSize != m_size) { | 645 if (adjustedSize != m_size) { |
646 do { | 646 do { |
647 // resize multisample FBO | 647 // resize multisample FBO |
648 if (!resizeMultisampleFramebuffer(adjustedSize) || !resizeFramebuffe
r(adjustedSize)) { | 648 if (!resizeMultisampleFramebuffer(adjustedSize) || !resizeFramebuffe
r(adjustedSize)) { |
649 adjustedSize.scale(s_resourceAdjustedRatio); | 649 adjustedSize.scale(s_resourceAdjustedRatio); |
650 continue; | 650 continue; |
651 } | 651 } |
652 | 652 |
653 #if OS(DARWIN) | 653 #if OS(MACOSX) |
654 // FIXME: This can be removed once renderbufferStorageMultisample st
arts reporting GL_OUT_OF_MEMORY properly on OSX. | 654 // FIXME: This can be removed once renderbufferStorageMultisample st
arts reporting GL_OUT_OF_MEMORY properly on OSX. |
655 if (!checkBufferIntegrity()) { | 655 if (!checkBufferIntegrity()) { |
656 adjustedSize.scale(s_resourceAdjustedRatio); | 656 adjustedSize.scale(s_resourceAdjustedRatio); |
657 continue; | 657 continue; |
658 } | 658 } |
659 #endif | 659 #endif |
660 break; | 660 break; |
661 } while (!adjustedSize.isEmpty()); | 661 } while (!adjustedSize.isEmpty()); |
662 | 662 |
663 setSize(adjustedSize); | 663 setSize(adjustedSize); |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
729 | 729 |
730 void DrawingBuffer::bind() | 730 void DrawingBuffer::bind() |
731 { | 731 { |
732 if (!m_context) | 732 if (!m_context) |
733 return; | 733 return; |
734 | 734 |
735 m_context->bindFramebuffer(GraphicsContext3D::FRAMEBUFFER, m_multisampleFBO
? m_multisampleFBO : m_fbo); | 735 m_context->bindFramebuffer(GraphicsContext3D::FRAMEBUFFER, m_multisampleFBO
? m_multisampleFBO : m_fbo); |
736 } | 736 } |
737 | 737 |
738 } // namespace WebCore | 738 } // namespace WebCore |
OLD | NEW |