Bug 990871 - Move TextureClientDrawTarget into TextureClient. r=mattwoodrow

This commit is contained in:
Nicolas Silva
2014-04-10 10:14:28 +02:00
parent a293a531fd
commit dca99e78f0
17 changed files with 106 additions and 103 deletions

View File

@@ -88,7 +88,7 @@ CanvasClient2D::Update(gfx::IntSize aSize, ClientCanvasLayer* aLayer)
{
// Restrict drawTarget to a scope so that terminates before Unlock.
RefPtr<DrawTarget> target =
mBuffer->AsTextureClientDrawTarget()->GetAsDrawTarget();
mBuffer->GetAsDrawTarget();
if (target) {
aLayer->UpdateTarget(target);
updated = true;