mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 02:25:34 +00:00
Bug 720353 - Backout of 964b118ac852 (Bug 694964). r=bgirard
This commit is contained in:
parent
45a458920c
commit
264f45ebef
@ -2305,13 +2305,10 @@ BasicShadowableThebesLayer::SetBackBufferAndAttrs(const OptionalThebesBuffer& aB
|
||||
{
|
||||
if (OptionalThebesBuffer::Tnull_t == aBuffer.type()) {
|
||||
mBackBuffer = SurfaceDescriptor();
|
||||
} else if (!IsSurfaceDescriptorValid(mBackBuffer)) {
|
||||
} else {
|
||||
mBackBuffer = aBuffer.get_ThebesBuffer().buffer();
|
||||
mBackBufferRect = aBuffer.get_ThebesBuffer().rect();
|
||||
mBackBufferRectRotation = aBuffer.get_ThebesBuffer().rotation();
|
||||
} else {
|
||||
SurfaceDescriptor obsoleteBuffer = aBuffer.get_ThebesBuffer().buffer();
|
||||
BasicManager()->ShadowLayerForwarder::DestroySharedSurface(&obsoleteBuffer);
|
||||
}
|
||||
mFrontAndBackBufferDiffer = true;
|
||||
mROFrontBuffer = aReadOnlyFrontBuffer;
|
||||
@ -2414,8 +2411,6 @@ BasicShadowableThebesLayer::PaintBuffer(gfxContext* aContext,
|
||||
mBuffer.BufferRect(),
|
||||
mBuffer.BufferRotation(),
|
||||
mBackBuffer);
|
||||
mROFrontBuffer = ThebesBuffer(mBackBuffer, mBuffer.BufferRect(), mBuffer.BufferRotation());
|
||||
mBackBuffer = SurfaceDescriptor();
|
||||
}
|
||||
|
||||
already_AddRefed<gfxASurface>
|
||||
|
Loading…
Reference in New Issue
Block a user