Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: Source/core/html/canvas/WebGLRenderingContextBase.cpp

Issue 556303002: Adjust DrawingBuffer's visibility tracking behavior with lost context (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Always delete mailboxes. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/platform/graphics/gpu/DrawingBuffer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/platform/graphics/gpu/DrawingBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698