forked from WebKit/WebKit-http
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chromium] Texture layer should not generate zero textureId quads
https://bugs.webkit.org/show_bug.cgi?id=94550 Patch by Alexandre Elias <aelias@google.com> on 2012-08-20 Reviewed by Adrienne Walker. After a context loss, CCTextureLayerImpl would clear its textureId but continued to produce external resources and quads with the zero textureid. Add early returns so that CCTextureLayerImpl becomes inert after a context loss. Added assertion in read lock so that dontUseOldResourcesAfterLostContext test catches the problem. * platform/graphics/chromium/cc/CCResourceProvider.h: (WebCore::CCScopedLockResourceForRead::CCScopedLockResourceForRead): * platform/graphics/chromium/cc/CCTextureLayerImpl.cpp: (WebCore::CCTextureLayerImpl::willDraw): (WebCore::CCTextureLayerImpl::appendQuads): (WebCore::CCTextureLayerImpl::didDraw): (WebCore::CCTextureLayerImpl::didLoseContext): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126122 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
04e8f83
commit 9824c71
Showing
3 changed files
with
34 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters