Backed out changeset 14dfa550c783 (bug 1167235)
This commit is contained in:
@@ -66,30 +66,6 @@ CanvasClientBridge::UpdateAsync(AsyncCanvasRenderer* aRenderer)
|
||||
mAsyncID = asyncID;
|
||||
}
|
||||
|
||||
void
|
||||
CanvasClient2D::UpdateFromTexture(TextureClient* aTexture)
|
||||
{
|
||||
MOZ_ASSERT(aTexture);
|
||||
|
||||
if (!aTexture->IsSharedWithCompositor()) {
|
||||
if (!AddTextureClient(aTexture)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
mBackBuffer = aTexture;
|
||||
|
||||
AutoTArray<CompositableForwarder::TimedTextureClient,1> textures;
|
||||
CompositableForwarder::TimedTextureClient* t = textures.AppendElement();
|
||||
t->mTextureClient = mBackBuffer;
|
||||
t->mPictureRect = nsIntRect(nsIntPoint(0, 0), aTexture->GetSize());
|
||||
t->mFrameID = mFrameID;
|
||||
t->mInputFrameID = VRManagerChild::Get()->GetInputFrameID();
|
||||
|
||||
GetForwarder()->UseTextures(this, textures);
|
||||
aTexture->SyncWithObject(GetForwarder()->GetSyncObject());
|
||||
}
|
||||
|
||||
void
|
||||
CanvasClient2D::Update(gfx::IntSize aSize, ClientCanvasLayer* aLayer)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user