icecat: add release icecat-140.8.0-2 for aramo
This commit is contained in:
parent
d9a6c0aa96
commit
d570f39e11
616 changed files with 39955 additions and 33937 deletions
|
|
@ -1843,20 +1843,28 @@ mozilla::ipc::IPCResult WebRenderBridgeParent::RecvGetSnapshot(
|
|||
TimeStamp start = TimeStamp::Now();
|
||||
MOZ_ASSERT(bufferTexture->GetBufferDescriptor().type() ==
|
||||
BufferDescriptor::TRGBDescriptor);
|
||||
DebugOnly<uint32_t> stride = ImageDataSerializer::GetRGBStride(
|
||||
bufferTexture->GetBufferDescriptor().get_RGBDescriptor());
|
||||
if (bufferTexture->GetBufferDescriptor().type() !=
|
||||
BufferDescriptor::TRGBDescriptor) {
|
||||
return IPC_FAIL_NO_REASON(this);
|
||||
}
|
||||
|
||||
uint8_t* buffer = bufferTexture->GetBuffer();
|
||||
MOZ_ASSERT(buffer);
|
||||
if (!buffer) {
|
||||
return IPC_FAIL_NO_REASON(this);
|
||||
}
|
||||
|
||||
IntSize size = bufferTexture->GetSize();
|
||||
|
||||
MOZ_ASSERT(buffer);
|
||||
// For now the only formats we get here are RGBA and BGRA, and code below is
|
||||
// assuming a bpp of 4. If we allow other formats, the code needs adjusting
|
||||
// accordingly.
|
||||
MOZ_ASSERT(BytesPerPixel(bufferTexture->GetFormat()) == 4);
|
||||
uint32_t buffer_size = size.width * size.height * 4;
|
||||
if (BytesPerPixel(bufferTexture->GetFormat()) != 4) {
|
||||
return IPC_FAIL_NO_REASON(this);
|
||||
}
|
||||
|
||||
// Assert the stride of the buffer is what webrender expects
|
||||
MOZ_ASSERT((uint32_t)(size.width * 4) == stride);
|
||||
uint32_t buffer_size = size.width * size.height * 4;
|
||||
|
||||
FlushSceneBuilds();
|
||||
FlushFrameGeneration(wr::RenderReasons::SNAPSHOT);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue