mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-25 22:29:07 +00:00
Bug 915944. Don't set TEXTURE_DEALLOCATE_HOST for deprecated canvas clients. r=mattwoodrow
This commit is contained in:
parent
47d90bb47f
commit
a48d09aed2
@ -42,9 +42,11 @@ CanvasClient::CreateCanvasClient(CanvasClientType aType,
|
||||
{
|
||||
if (aType == CanvasClientGLContext &&
|
||||
aForwarder->GetCompositorBackendType() == LAYERS_OPENGL) {
|
||||
aFlags &= ~TEXTURE_DEALLOCATE_HOST;
|
||||
return new DeprecatedCanvasClientSurfaceStream(aForwarder, aFlags);
|
||||
}
|
||||
if (gfxPlatform::GetPlatform()->UseDeprecatedTextures()) {
|
||||
aFlags &= ~TEXTURE_DEALLOCATE_HOST;
|
||||
return new DeprecatedCanvasClient2D(aForwarder, aFlags);
|
||||
}
|
||||
return new CanvasClient2D(aForwarder, aFlags);
|
||||
|
Loading…
x
Reference in New Issue
Block a user