| Index: gpu/command_buffer/client/gles2_implementation.cc
|
| diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
|
| index 50b2089a59c095b14a48d549a4f1f898ed41348f..f9a54ddddc80319491b4bea6ad5a381fe4ecd293 100644
|
| --- a/gpu/command_buffer/client/gles2_implementation.cc
|
| +++ b/gpu/command_buffer/client/gles2_implementation.cc
|
| @@ -3479,6 +3479,14 @@ void GLES2Implementation::ReadPixels(
|
| return;
|
| }
|
|
|
| + if (bound_pixel_pack_buffer_) {
|
| + GLuint offset = ToGLuint(pixels);
|
| + helper_->ReadPixels(
|
| + xoffset, yoffset, width, height, format, type, 0, offset, 0, 0, false);
|
| + CheckGLError();
|
| + return;
|
| + }
|
| +
|
| if (bound_pixel_pack_transfer_buffer_id_) {
|
| GLuint offset = ToGLuint(pixels);
|
| BufferTracker::Buffer* buffer = GetBoundPixelUnpackTransferBufferIfValid(
|
|
|