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 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
877 } | 877 } |
878 | 878 |
879 void WebGLRenderingContextBase::markLayerComposited() | 879 void WebGLRenderingContextBase::markLayerComposited() |
880 { | 880 { |
881 if (!isContextLost()) | 881 if (!isContextLost()) |
882 drawingBuffer()->markLayerComposited(); | 882 drawingBuffer()->markLayerComposited(); |
883 } | 883 } |
884 | 884 |
885 void WebGLRenderingContextBase::setIsHidden(bool hidden) | 885 void WebGLRenderingContextBase::setIsHidden(bool hidden) |
886 { | 886 { |
887 if (!isContextLost()) | 887 if (drawingBuffer()) |
888 drawingBuffer()->setIsHidden(hidden); | 888 drawingBuffer()->setIsHidden(hidden); |
889 } | 889 } |
890 | 890 |
891 void WebGLRenderingContextBase::paintRenderingResultsToCanvas() | 891 void WebGLRenderingContextBase::paintRenderingResultsToCanvas() |
892 { | 892 { |
893 if (isContextLost()) { | 893 if (isContextLost()) { |
894 canvas()->clearPresentationCopy(); | 894 canvas()->clearPresentationCopy(); |
895 return; | 895 return; |
896 } | 896 } |
897 | 897 |
(...skipping 4876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5774 return m_sharedWebGraphicsContext3D ? m_sharedWebGraphicsContext3D->drawingB
uffer() : 0; | 5774 return m_sharedWebGraphicsContext3D ? m_sharedWebGraphicsContext3D->drawingB
uffer() : 0; |
5775 } | 5775 } |
5776 #else | 5776 #else |
5777 DrawingBuffer* WebGLRenderingContextBase::drawingBuffer() const | 5777 DrawingBuffer* WebGLRenderingContextBase::drawingBuffer() const |
5778 { | 5778 { |
5779 return m_drawingBuffer.get(); | 5779 return m_drawingBuffer.get(); |
5780 } | 5780 } |
5781 #endif | 5781 #endif |
5782 | 5782 |
5783 } // namespace blink | 5783 } // namespace blink |
OLD | NEW |