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

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

Issue 381113003: Revert 177827 "WebGL: Free temporary GPU resources held by inact..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 years, 5 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
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 811 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « trunk/Source/core/html/canvas/WebGLRenderingContextBase.h ('k') | trunk/Source/platform/graphics/gpu/DrawingBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698