Index: gpu/command_buffer/service/async_pixel_transfer_manager_egl.cc |
diff --git a/gpu/command_buffer/service/async_pixel_transfer_manager_egl.cc b/gpu/command_buffer/service/async_pixel_transfer_manager_egl.cc |
index 32fa4c0438d0012d0908e811e295c1ae1489f161..2bbe76b337195ab01ab308f5c2b88957e68708e3 100644 |
--- a/gpu/command_buffer/service/async_pixel_transfer_manager_egl.cc |
+++ b/gpu/command_buffer/service/async_pixel_transfer_manager_egl.cc |
@@ -729,6 +729,16 @@ bool AsyncPixelTransferManagerEGL::NeedsProcessMorePendingTransfers() { |
return false; |
} |
+void AsyncPixelTransferManagerEGL::WaitAllAsyncTexImage2D() { |
+ if (shared_state_.pending_allocations.empty()) |
+ return; |
+ |
+ AsyncPixelTransferDelegateEGL* delegate = |
+ shared_state_.pending_allocations.back().get(); |
+ if (delegate) |
+ delegate->WaitForTransferCompletion(); |
+} |
+ |
AsyncPixelTransferDelegate* |
AsyncPixelTransferManagerEGL::CreatePixelTransferDelegateImpl( |
gles2::TextureRef* ref, |