Commit 1ef6fe77 by Jamie Madill

Enable PBO asynchronous readback in Renderer11.

BUG=angle:511 Change-Id: Id795a85ec1daa396fc51f021c37fe23df3ecc065 Reviewed-on: https://chromium-review.googlesource.com/197702Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Tested-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 19811d0b
...@@ -3264,7 +3264,16 @@ void Renderer11::readPixels(gl::Framebuffer *framebuffer, GLint x, GLint y, GLsi ...@@ -3264,7 +3264,16 @@ void Renderer11::readPixels(gl::Framebuffer *framebuffer, GLint x, GLint y, GLsi
area.width = width; area.width = width;
area.height = height; area.height = height;
if (pack.pixelBuffer.get() != NULL)
{
rx::BufferStorage11 *packBufferStorage = BufferStorage11::makeBufferStorage11(pack.pixelBuffer.get()->getStorage());
PackPixelsParams packParams(area, format, type, outputPitch, pack, reinterpret_cast<ptrdiff_t>(pixels));
packBufferStorage->packPixels(colorBufferTexture, subresourceIndex, packParams);
}
else
{
readTextureData(colorBufferTexture, subresourceIndex, area, format, type, outputPitch, pack, pixels); readTextureData(colorBufferTexture, subresourceIndex, area, format, type, outputPitch, pack, pixels);
}
SafeRelease(colorBufferTexture); SafeRelease(colorBufferTexture);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment