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 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
824 webContext()->stencilMaskSeparate(GL_FRONT, m_stencilMask); | 824 webContext()->stencilMaskSeparate(GL_FRONT, m_stencilMask); |
825 webContext()->depthMask(m_depthMask); | 825 webContext()->depthMask(m_depthMask); |
826 } | 826 } |
827 | 827 |
828 void WebGLRenderingContextBase::markLayerComposited() | 828 void WebGLRenderingContextBase::markLayerComposited() |
829 { | 829 { |
830 if (!isContextLost()) | 830 if (!isContextLost()) |
831 m_drawingBuffer->markLayerComposited(); | 831 m_drawingBuffer->markLayerComposited(); |
832 } | 832 } |
833 | 833 |
834 void WebGLRenderingContextBase::setIsHidden(bool hidden) | |
835 { | |
836 if (!isContextLost()) | |
837 m_drawingBuffer->setIsHidden(hidden); | |
838 } | |
839 | |
840 void WebGLRenderingContextBase::paintRenderingResultsToCanvas() | 834 void WebGLRenderingContextBase::paintRenderingResultsToCanvas() |
841 { | 835 { |
842 if (isContextLost()) { | 836 if (isContextLost()) { |
843 canvas()->clearPresentationCopy(); | 837 canvas()->clearPresentationCopy(); |
844 return; | 838 return; |
845 } | 839 } |
846 | 840 |
847 if (canvas()->document().printing()) | 841 if (canvas()->document().printing()) |
848 canvas()->clearPresentationCopy(); | 842 canvas()->clearPresentationCopy(); |
849 | 843 |
(...skipping 4850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5700 if (m_textureUnits[i].m_texture2DBinding | 5694 if (m_textureUnits[i].m_texture2DBinding |
5701 || m_textureUnits[i].m_textureCubeMapBinding) { | 5695 || m_textureUnits[i].m_textureCubeMapBinding) { |
5702 m_onePlusMaxNonDefaultTextureUnit = i + 1; | 5696 m_onePlusMaxNonDefaultTextureUnit = i + 1; |
5703 return; | 5697 return; |
5704 } | 5698 } |
5705 } | 5699 } |
5706 m_onePlusMaxNonDefaultTextureUnit = 0; | 5700 m_onePlusMaxNonDefaultTextureUnit = 0; |
5707 } | 5701 } |
5708 | 5702 |
5709 } // namespace WebCore | 5703 } // namespace WebCore |
OLD | NEW |