| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 822 webContext()->stencilMaskSeparate(GL_FRONT, m_stencilMask); | 822 webContext()->stencilMaskSeparate(GL_FRONT, m_stencilMask); |
| 823 webContext()->depthMask(m_depthMask); | 823 webContext()->depthMask(m_depthMask); |
| 824 } | 824 } |
| 825 | 825 |
| 826 void WebGLRenderingContextBase::markLayerComposited() | 826 void WebGLRenderingContextBase::markLayerComposited() |
| 827 { | 827 { |
| 828 if (!isContextLost()) | 828 if (!isContextLost()) |
| 829 m_drawingBuffer->markLayerComposited(); | 829 m_drawingBuffer->markLayerComposited(); |
| 830 } | 830 } |
| 831 | 831 |
| 832 void WebGLRenderingContextBase::setIsHidden(bool hidden) | |
| 833 { | |
| 834 if (!isContextLost()) | |
| 835 m_drawingBuffer->setIsHidden(hidden); | |
| 836 } | |
| 837 | |
| 838 void WebGLRenderingContextBase::paintRenderingResultsToCanvas() | 832 void WebGLRenderingContextBase::paintRenderingResultsToCanvas() |
| 839 { | 833 { |
| 840 if (isContextLost()) { | 834 if (isContextLost()) { |
| 841 canvas()->clearPresentationCopy(); | 835 canvas()->clearPresentationCopy(); |
| 842 return; | 836 return; |
| 843 } | 837 } |
| 844 | 838 |
| 845 if (canvas()->document().printing()) | 839 if (canvas()->document().printing()) |
| 846 canvas()->clearPresentationCopy(); | 840 canvas()->clearPresentationCopy(); |
| 847 | 841 |
| (...skipping 4855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5703 if (m_textureUnits[i].m_texture2DBinding | 5697 if (m_textureUnits[i].m_texture2DBinding |
| 5704 || m_textureUnits[i].m_textureCubeMapBinding) { | 5698 || m_textureUnits[i].m_textureCubeMapBinding) { |
| 5705 m_onePlusMaxNonDefaultTextureUnit = i + 1; | 5699 m_onePlusMaxNonDefaultTextureUnit = i + 1; |
| 5706 return; | 5700 return; |
| 5707 } | 5701 } |
| 5708 } | 5702 } |
| 5709 m_onePlusMaxNonDefaultTextureUnit = 0; | 5703 m_onePlusMaxNonDefaultTextureUnit = 0; |
| 5710 } | 5704 } |
| 5711 | 5705 |
| 5712 } // namespace WebCore | 5706 } // namespace WebCore |
| OLD | NEW |